<?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[Schriftartänderung SDI]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich habe eine SDI-Anwendung und möchte nun im Dokument Text ausgeben. Ich mache das mittels pDC-TextOut(x,y, string). Nun würde ich gerne vorher bestimmen, wei der Text aussehen soll (Schriftgröße, unterstrichen, Schriftart?, ...)</p>
<p>Wie kann man das machen?</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/164748/schriftartänderung-sdi</link><generator>RSS for Node</generator><lastBuildDate>Fri, 31 Jul 2026 01:50:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/164748.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Nov 2006 11:26:48 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Schriftartänderung SDI on Sun, 12 Nov 2006 11:26:48 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>Ich habe eine SDI-Anwendung und möchte nun im Dokument Text ausgeben. Ich mache das mittels pDC-TextOut(x,y, string). Nun würde ich gerne vorher bestimmen, wei der Text aussehen soll (Schriftgröße, unterstrichen, Schriftart?, ...)</p>
<p>Wie kann man das machen?</p>
<p>chrische</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1172918</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1172918</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Sun, 12 Nov 2006 11:26:48 GMT</pubDate></item><item><title><![CDATA[Reply to Schriftartänderung SDI on Sun, 12 Nov 2006 11:55:36 GMT]]></title><description><![CDATA[<p>In dem Du einen neuen Font erstellst und diesen im DC auswählst.</p>
<p>zB so:</p>
<pre><code class="language-cpp">CFont Font;
        LOGFONT lf;
	ZeroMemory(&amp;lf,sizeof(LOGFONT));
	strcpy(lf.lfFaceName,&quot;ARIAL&quot;);
	lf.lfHeight = -150;
	lf.lfWeight = FW_BOLD;
	lf.lfUnderline = TRUE;
	lf.lfQuality = DRAFT_QUALITY;
	lf.lfPitchAndFamily = DEFAULT_PITCH;
	Font.CreatePointFontIndirect(&amp;lf,pDC);

	pDC-&gt;SelectObject(&amp;Font);
        pDC-&gt;TextOut(...);
</code></pre>
<p>geht auch mit CreatePointFont() wenn Du keine weiteren Attibute wie unterstrichen oder so benötigst.</p>
<p>Gruß Matthias</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1172931</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1172931</guid><dc:creator><![CDATA[CTecS]]></dc:creator><pubDate>Sun, 12 Nov 2006 11:55:36 GMT</pubDate></item></channel></rss>