<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jun 16, 2017 at 1:49 PM, James Richters <span dir="ltr"><<a href="mailto:james@productionautomation.net" target="_blank">james@productionautomation.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I would like to do something like:<br>
agg^.Font('%windir%\Fonts\<wbr>ConsolaB.ttf' ,45 );<br><br></blockquote><div> </div><div>You should be able to use SHGetFolderPath() with CSIDL_WINDOWS.  Not sure you can always count on Fonts being a subfolder of that, though.</div><div><br></div><div><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/windows/desktop/bb762181(v=vs.85).aspx</a> </div><div><br></div><div>You may be able to use CSIDL_FONTS or FOLDERID_Fonts as well.</div><div><br></div><div><a href="https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx">https://msdn.microsoft.com/en-us/library/windows/desktop/bb762494(v=vs.85).aspx</a><br></div><div><br></div><div>Not sure if any are defined in FPC, but should be easy to create/import if not.</div><div><br></div><div>Jeff.</div></div><br></div></div>