<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Truetype Fontname ermitteln]]></title><description><![CDATA[<p>Für meine umfangreiche Truetype-Fontsammlung wollte ich mir ein WinApi-Tool schreiben, das ganze Schriftverzeichnisse lesen und jede Schriftart mit einem Mustertext ausdrucken soll. Das Einlesen funktioniert dank FindFirstFile / FindNextFile einwandfrei. Auch das Hinzufügen des Font geht mit AddFontResource (TrueTypeFileName). Das Problem aber ist, das ich den Font nicht mit CreateFontIndirect() selektieren kann, weil ich den Namen des Fonts nicht kenne.</p>
<p>Frage: Mit welchem API-Aufruf kann ich aus dem Dateinamen den Schriftartnamen ermitteln?</p>
<p>Beispiel: Dateiname: TT0648M_.TTF - Fontname: Charter BT</p>
<p>FontView zeigt diese Informationen und zusätzlich auch noch Copyright 1990-1992 Bitstream Inc. All rights reserved. und weitere Infos.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/16740/truetype-fontname-ermitteln</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 05:20:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/16740.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 31 Mar 2003 00:01:00 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 00:01:00 GMT]]></title><description><![CDATA[<p>Für meine umfangreiche Truetype-Fontsammlung wollte ich mir ein WinApi-Tool schreiben, das ganze Schriftverzeichnisse lesen und jede Schriftart mit einem Mustertext ausdrucken soll. Das Einlesen funktioniert dank FindFirstFile / FindNextFile einwandfrei. Auch das Hinzufügen des Font geht mit AddFontResource (TrueTypeFileName). Das Problem aber ist, das ich den Font nicht mit CreateFontIndirect() selektieren kann, weil ich den Namen des Fonts nicht kenne.</p>
<p>Frage: Mit welchem API-Aufruf kann ich aus dem Dateinamen den Schriftartnamen ermitteln?</p>
<p>Beispiel: Dateiname: TT0648M_.TTF - Fontname: Charter BT</p>
<p>FontView zeigt diese Informationen und zusätzlich auch noch Copyright 1990-1992 Bitstream Inc. All rights reserved. und weitere Infos.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93184</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93184</guid><dc:creator><![CDATA[Rolf Schneider]]></dc:creator><pubDate>Mon, 31 Mar 2003 00:01:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 00:28:00 GMT]]></title><description><![CDATA[<p>Ich hab mal ein wenig in meiner Windows SDK-Hilfe rumgesucht und eine Struktur gefunden, die nette Informationen enthält: FontDirEntry. Nur leider gibt es keine Funktion, die diese Struktur irgendwie füllt. Mir scheint, du musst bei <a href="http://www.wotsit.org" rel="nofollow">www.wotsit.org</a> selber nachschauen, wie so eine TTF-Datei aufgebaut ist. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/93185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93185</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Mon, 31 Mar 2003 00:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 00:36:00 GMT]]></title><description><![CDATA[<p>Ich hab da noch was in der Hilfe gefunden, was du evtl. noch vergessen hast:</p>
<blockquote>
<p>In the case of TrueType fonts, an additional step is sometimes necessary before the font can be installed in the font table. Some font manufacturers ship only the TrueType font-data files (identified by the .TTF extension). Before Windows can load these fonts, it requires a corresponding header file (identified by the .FOT extension). To create this header file, an application must call the CreateScalableFontResource function and pass the name of the font-data file as the third parameter. When this header file is created, an application can install the font by calling the AddFontResource function and passing the name of the new header file.</p>
</blockquote>
<p>Schau dir also nochmal die Funktion CreateScalableFontResource() an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93186</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93186</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Mon, 31 Mar 2003 00:36:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 01:07:00 GMT]]></title><description><![CDATA[<p>Die Funktion CreateScalableFontResource liefert gemäß MSDN nicht die benötigten Informationen. Jetzt werde ich mal bei <a href="http://www.wotsit.org" rel="nofollow">www.wotsit.org</a> mal schaun, vielleicht hilft mir das ja weiter.</p>
<p>Trotzdem danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93187</guid><dc:creator><![CDATA[Rolf Schneider]]></dc:creator><pubDate>Mon, 31 Mar 2003 01:07:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 01:09:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von &lt;Rolf Schneider&gt;:<br />
<strong>Die Funktion CreateScalableFontResource liefert gemäß MSDN nicht die benötigten Informationen.</strong></p>
</blockquote>
<p>Das ist klar, aber du brauchst sie, um dein True Type Font zu installieren. AddFontResource() reicht nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93188</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93188</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Mon, 31 Mar 2003 01:09:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 01:29:00 GMT]]></title><description><![CDATA[<p>Doch, AddFontResource() reicht. Wenn mein Programm auf diesem Wege ein Fontverzeichnis eingelesen hat, stehen diese Schriften z.B. unter Word zur Verfügung, bis ich sie mit RemoveFontResource() wieder kicke.</p>
<p>Mit EnumFonts kann ich das ebenfalls überprüfen, geht auch. Für meine gedruckte Liste muß ich die Schriften aber einzeln in den Ausgabe-DC selektieren und da brauche ich eben den Namen (also so, wie ihn Word angibt)!!!</p>
<p>Das zu Windows gehörende Programm FontView.exe (starten mit Dobbelklick auf eine .TTF-Datei) ermittelt doch auch die Infos - Zauberei?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93189</guid><dc:creator><![CDATA[Rolf Schneider]]></dc:creator><pubDate>Mon, 31 Mar 2003 01:29:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 01:48:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von &lt;Rolf Schneider&gt;:<br />
<strong>Doch, AddFontResource() reicht. Wenn mein Programm auf diesem Wege ein Fontverzeichnis eingelesen hat, stehen diese Schriften z.B. unter Word zur Verfügung, bis ich sie mit RemoveFontResource() wieder kicke.</strong></p>
</blockquote>
<p>Dann lies dir den von mir zitierten Text oben nochmal genau durch. Aber wenn du das Risiko eingehen willst, dass dein Programm bei einigen Schriftarten nicht funktionukkelt.... bitteschön. Mir egal!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93190</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Mon, 31 Mar 2003 01:48:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 02:02:00 GMT]]></title><description><![CDATA[<p>google nach &quot;der ansi-c programmierer&quot; und schick ne mail zu dem thema, da kriegst ne brauchbare lösung!</p>
<p><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/358">@webfritzi</a>: du liegst voll daneben, der fehler liegt in der M$-fontbeschreibung!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93191</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93191</guid><dc:creator><![CDATA[aber hallo]]></dc:creator><pubDate>Mon, 31 Mar 2003 02:02:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Mon, 31 Mar 2003 02:23:00 GMT]]></title><description><![CDATA[<blockquote>
<p>Original erstellt von &lt;aber hallo&gt;:<br />
<strong><a class="plugin-mentions-user plugin-mentions-a" href="https://www.c-plusplus.net/forum/uid/358">@webfritzi</a>: du liegst voll daneben, der fehler liegt in der M$-fontbeschreibung!</strong></p>
</blockquote>
<p>Wenn du meinst... Dann lieg aber nicht ICH daneben, sondern M$. Ich vertraue gemeinhin der SDK-Dokumentation. Naja, ist mir wie gesagt eh egal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/93192</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/93192</guid><dc:creator><![CDATA[WebFritzi]]></dc:creator><pubDate>Mon, 31 Mar 2003 02:23:00 GMT</pubDate></item><item><title><![CDATA[Reply to Truetype Fontname ermitteln on Wed, 05 Jan 2005 07:43:19 GMT]]></title><description><![CDATA[<p>Hat zwischenzeitlich jemand eine Lösung dafür gefunden?</p>
<p>Gruß<br />
wiwi77</p>
]]></description><link>https://www.c-plusplus.net/forum/post/687171</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/687171</guid><dc:creator><![CDATA[wiwi77]]></dc:creator><pubDate>Wed, 05 Jan 2005 07:43:19 GMT</pubDate></item></channel></rss>