<?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[[erledigt] D3DFONT_DESC FaceName]]></title><description><![CDATA[<pre><code class="language-cpp">void D3D_font::default_desc()
{
	ZeroMemory( &amp;description, sizeof(description) );
	description.Height			= 0;
	description.Width			= 0;
	description.Weight			= FW_DONTCARE;
	description.MipLevels		= 1;
	description.Italic			= false;
	description.CharSet			= DEFAULT_CHARSET;
	description.OutputPrecision = OUT_DEFAULT_PRECIS;
	description.Quality			= DEFAULT_QUALITY;
	description.PitchAndFamily	= DEFAULT_PITCH | FF_DONTCARE;
}
</code></pre>
<pre><code class="language-cpp">FaceName; //ein CHAR[32]
</code></pre>
<p>kann man leer lassen, dann wird die erste passende Schrift ausgewählt.<br />
Um die zu spezifizieren, muss man erst die Fonts enumerieren, aber das steht in der MSDN wies geht.<br />
Mir reicht die Standard Schrift erstmal..</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/148510/erledigt-d3dfont_desc-facename</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 08:13:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/148510.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 27 May 2006 13:51:11 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 16:26:52 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void D3D_font::default_desc()
{
	ZeroMemory( &amp;description, sizeof(description) );
	description.Height			= 0;
	description.Width			= 0;
	description.Weight			= FW_DONTCARE;
	description.MipLevels		= 1;
	description.Italic			= false;
	description.CharSet			= DEFAULT_CHARSET;
	description.OutputPrecision = OUT_DEFAULT_PRECIS;
	description.Quality			= DEFAULT_QUALITY;
	description.PitchAndFamily	= DEFAULT_PITCH | FF_DONTCARE;
}
</code></pre>
<pre><code class="language-cpp">FaceName; //ein CHAR[32]
</code></pre>
<p>kann man leer lassen, dann wird die erste passende Schrift ausgewählt.<br />
Um die zu spezifizieren, muss man erst die Fonts enumerieren, aber das steht in der MSDN wies geht.<br />
Mir reicht die Standard Schrift erstmal..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066095</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066095</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Sat, 27 May 2006 16:26:52 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 14:31:33 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">FaceName[0] = '\0';
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1066117</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066117</guid><dc:creator><![CDATA[..........]]></dc:creator><pubDate>Sat, 27 May 2006 14:31:33 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 15:51:34 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066141</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066141</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Sat, 27 May 2006 15:51:34 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 15:09:16 GMT]]></title><description><![CDATA[<p>strcpy</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066144</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066144</guid><dc:creator><![CDATA[&amp;lt;&amp;lt;a]]></dc:creator><pubDate>Sat, 27 May 2006 15:09:16 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 15:15:06 GMT]]></title><description><![CDATA[<p>Natürlich kommt das aufs gleiche hinaus, als wenn du die Zeile weglässt!! Auf was denn auch sonst?!</p>
<pre><code class="language-cpp">lfFaceName
    Specifies a null-terminated string that specifies the typeface name of the font. The length of this string must not exceed 32 characters, including the terminating null character. The EnumFontFamilies function can be used to enumerate the typeface names of all currently available fonts. If lfFaceName is an empty string, GDI uses the first font that matches the other specified attributes.
</code></pre>
<p>Will heissen, du kannst das Feld entweder in Ruhe lassen und dann kümmert sich die GDI drum ODER du übergibst einen NULL terminierten String, der den Namen der Schriftart darstellt.</p>
<p>Was du da jetzt mit deinem Gefrickel bewerkstelligen willst, entzieht sich meiner Kenntnis. Dein Problem hat nichts mit C oder C++ zu tun, sondern eher damit, daß dir offensichtlich simple Grundlagen fehlen. Nichts hindert dich daran einen std::string ein char array oder was auch immer zu verwenden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066148</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066148</guid><dc:creator><![CDATA[Statesman]]></dc:creator><pubDate>Sat, 27 May 2006 15:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 15:16:49 GMT]]></title><description><![CDATA[<p>Mit Übergeben meine ich natürlich in den Buffer kopieren also mit strcpy (!) wie schon gesagt. Wer strcpy nicht kennt sollte keinen Schwachsinn von &quot;bösem&quot; C oder sonstigem labern, außer er will sich lächerlich machen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066150</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066150</guid><dc:creator><![CDATA[Statesman]]></dc:creator><pubDate>Sat, 27 May 2006 15:16:49 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 15:51:42 GMT]]></title><description><![CDATA[<p>...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066154</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Sat, 27 May 2006 15:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 16:06:23 GMT]]></title><description><![CDATA[<p>lol 1310-Logik dein Verhalten ist lächerlich!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066198</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066198</guid><dc:creator><![CDATA[........]]></dc:creator><pubDate>Sat, 27 May 2006 16:06:23 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 16:09:47 GMT]]></title><description><![CDATA[<p>in der anonymität lässt sichs immer gut spotten</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066205</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066205</guid><dc:creator><![CDATA[THX 1138]]></dc:creator><pubDate>Sat, 27 May 2006 16:09:47 GMT</pubDate></item><item><title><![CDATA[Reply to [erledigt] D3DFONT_DESC FaceName on Sat, 27 May 2006 16:19:21 GMT]]></title><description><![CDATA[<p>Echt peinlich. Wenn man in einem Forum schon nichts beiträgt als sinnlosen Spam kann man wenigstens seine Fragethreads stehen lassen damit andere auch was davon haben die ähnliche Probleme haben. Hier mein Tipp : Bitte lösch dich selbst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1066217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1066217</guid><dc:creator><![CDATA[Statesman]]></dc:creator><pubDate>Sat, 27 May 2006 16:19:21 GMT</pubDate></item></channel></rss>