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 subfolder of that, though. https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx You may be able to use CSIDL_FONTS or FOLDERID_Fonts as well. https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx Not sure if any are defined in FPC, but should be easy to create/import if not. Jeff.
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal