Beispiel #1
0
        static WinGdiFont SetFont(RequestFont font)
        {
            WinGdiFont winFont = WinGdiFontSystem.GetWinGdiFont(font);

            MyWin32.SelectObject(win32MemDc.DC, winFont.CachedHFont());
            return(winFont);
        }
Beispiel #2
0
        /// <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);
        }
Beispiel #3
0
 public static ActualFont GetWinGdiFont(RequestFont f)
 {
     return(WinGdiFontSystem.GetWinGdiFont(f));
 }