[fpc-pascal] Implementing AggPas with PtcGraph
james at productionautomation.net
Fri Jun 16 23:32:14 CEST 2017
>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 from here:
under “Getting special folders (My documents, Desktop, local application data, etc)”
Here is how I was able to get it to work. I’m wondering if there is a better way to define my variables. I tried just making Font2Use a string but it didn’t compile;
Font2Use,FontPath: Array[0..MaxPathLen] of Char; //Allocate memory
writeln('Fonts: ' + FontPath);
agg^.Font(font2use ,45 );
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal