<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">Am 01.02.2018 14:31 schrieb "Michael Van Canneyt" <<a href="mailto:michael@freepascal.org">michael@freepascal.org</a>>:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On Thu, 1 Feb 2018, Denis Kozlov wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="quoted-text">A proposal:<br>
1) Use windirs.GetWindowsSpecialDir in fpttf.pp, which already uses a more backwards compatible SHGetFolderPath().<br>
2) Optionally, improve windirs.GetWindowsSpecialDir to use a newer SHGetKnownFolderPath() when it is available.<br>
<br>
If this is suitable, I can produce a patch for both.<br>
</div></blockquote>
<br>
I would not bother with 1, since the goal is to remove the reference to a font<br>
directory on windows and use the font API of the OS.</blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">But why implement retrieving the folder multiple times? It's the purpose of the WinDirs unit after all and it can default to the newer API if it's available. </div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div></div>