How simple can we get? http://wiki.freepascal.org/self-hosted
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
I've been able to use windows fonts with aggpas with the following code:
agg^.Font('ConsolaB.ttf' ,45 );
agg^.Text(300 ,100 ,'Text Here' );
and it works fine if I copy the font to the same folder as my program. I'm
wondering how I can just use standard windows fonts without copying them.
On Fri, Jun 16, 2017 at 1:49 PM, James Richters <
ja...@productionautomation.net> wrote:
>
> I would like to do something like:
> agg^.Font('%windir%\Fonts\ConsolaB.ttf' ,45 );
>
>
You should be able to use SHGetFolderPath() with CSIDL_WINDOWS. Not sure
you can always count on Fonts being a subfo
>You may be able to use CSIDL_FONTS or FOLDERID_Fonts as well.
Thank you for pointing me in the right direction. I was able to get
CSIDL_FONTS to work. Getting the actual fonts folder is a better idea than
assuming it’s in a \Fonts directory
I found an example on how to obtain the path