static WinGdiFont SetFont(RequestFont font) { WinGdiFont winFont = WinGdiFontSystem.GetWinGdiFont(font); MyWin32.SelectObject(win32MemDc.DC, winFont.CachedHFont()); return(winFont); }
/// <summary> /// measure blank line height in px /// </summary> /// <param name="font"></param> /// <returns></returns> public static int MeasureBlankLineHeight(RequestFont font) { WinGdiFont winFont = WinGdiFontSystem.GetWinGdiFont(font); return((int)winFont.RecommendedLineSpacingInPixels); }
public static ActualFont GetWinGdiFont(RequestFont f) { return(WinGdiFontSystem.GetWinGdiFont(f)); }