Beispiel #1
0
 private IntPtr createLogicalFont(string fontName, int size, NativeTextRenderer.logFontWeight weight)
 {
     // Logical font:
     NativeTextRenderer.LogFont lfont = new NativeTextRenderer.LogFont();
     lfont.lfFaceName = fontName;
     lfont.lfHeight   = -size;
     lfont.lfWeight   = (int)weight;
     return(NativeTextRenderer.CreateFontIndirect(lfont));
 }