Win32API質問箱 Build18
■ このスレッドは過去ログ倉庫に格納されています
0586デフォルトの名無しさん
NGNGhttp://www.codeproject.com/cs/media/measurestring.asp
> I found this technique through a GDI+ KB article (Q307208) at http://support.microsoft.com/default.aspx?scid=kb;EN-US;q307208
> Summary: to measure a string without resolution dependent effects and 1/6 em gaps you must use a GenericTypographic StringFormat.
> Something like:
> sfmt = StringFormat.GenericTypographic;
> size = graphics.MeasureString( m_Text, m_ActiveFont, 1000, sfmt );
> Although the article doesn't say it, I believe the GenericTypographic StringFormat sets some internal bits that are not available through the API any other way, at least I haven't found them (and I've been trying).
■ このスレッドは過去ログ倉庫に格納されています