3 instantiations of WindowsFont
System.Windows.Forms (3)
misc\GDI\WindowsFont.cs (3)
244return new WindowsFont(familyName, font.SizeInPoints, font.Style, font.GdiCharSet, fontQuality); 284WindowsFont wf = new WindowsFont( lf, /*createHandle*/ false ); 380return new WindowsFont( this.logFont, true );
49 references to WindowsFont
System.Windows.Forms (49)
misc\GDI\DeviceContext.cs (2)
533selectedFont = g.font.Target as WindowsFont; 536WindowsFont previousFont = selectedFont;
misc\GDI\DeviceContext2.cs (8)
45WindowsFont selectedFont; 53public WindowsFont ActiveFont { 180public WindowsFont Font 189WindowsFont font = MeasurementDCInfo.LastUsedFont; 209return WindowsFont.FromHdc( this.Hdc ); 255public IntPtr SelectFont( WindowsFont font ) 269WindowsFont previousFont = selectedFont; 343public bool IsFontOnContextStack(WindowsFont wf)
misc\GDI\DeviceContexts.cs (1)
78internal static bool IsFontInUse(WindowsFont wf) {
misc\GDI\MeasurementDCInfo.cs (4)
43internal static WindowsFont LastUsedFont 63internal static IntNativeMethods.DRAWTEXTPARAMS GetTextMargins(WindowsGraphics wg, WindowsFont font) { 110public WindowsFont LastUsedFont; 114internal void UpdateFont(WindowsFont font)
misc\GDI\WindowsFont.cs (8)
222public static WindowsFont FromFont(Font font) 228public static WindowsFont FromFont(Font font, WindowsFontQuality fontQuality) 253public static WindowsFont FromHdc( IntPtr hdc ) 268public static WindowsFont FromHfont( IntPtr hFont ) 279public static WindowsFont FromHfont( IntPtr hFont, bool takeOwnership ) 284WindowsFont wf = new WindowsFont( lf, /*createHandle*/ false ); 339WindowsFont winFont = font as WindowsFont;
misc\GDI\WindowsGraphics2.cs (15)
138public void DrawText(string text, WindowsFont font, Point pt, Color foreColor) 147public void DrawText(string text, WindowsFont font, Point pt, Color foreColor, Color backColor) 156public void DrawText(string text, WindowsFont font, Point pt, Color foreColor, IntTextFormatFlags flags) 165public void DrawText(string text, WindowsFont font, Point pt, Color foreColor, Color backColor, IntTextFormatFlags flags) 174public void DrawText(string text, WindowsFont font, Rectangle bounds, Color foreColor) 182public void DrawText(string text, WindowsFont font, Rectangle bounds, Color foreColor, Color backColor) 190public void DrawText(string text, WindowsFont font, Rectangle bounds, Color color, IntTextFormatFlags flags) 201public void DrawText(string text, WindowsFont font, Rectangle bounds, Color foreColor, Color backColor, IntTextFormatFlags flags) 308public float GetOverhangPadding( WindowsFont font ) 313WindowsFont tmpfont = font; 333public IntNativeMethods.DRAWTEXTPARAMS GetTextMargins(WindowsFont font) 376public Size GetTextExtent(string text, WindowsFont font) 407public Size MeasureText(string text, WindowsFont font) 417public Size MeasureText(string text, WindowsFont font, Size proposedSize) 440public Size MeasureText(string text, WindowsFont font, Size proposedSize, IntTextFormatFlags flags)
misc\GDI\WindowsGraphicsCacheManager.cs (11)
53private static List<KeyValuePair<Font, WindowsFont>> windowsFontCache; 79private static List<KeyValuePair<Font, WindowsFont>> WindowsFontCache 86windowsFontCache = new List<KeyValuePair<Font, WindowsFont>>(CacheSize); 134public static WindowsFont GetWindowsFont(Font font) 142public static WindowsFont GetWindowsFont(Font font, WindowsFontQuality fontQuality) 164WindowsFont wf = WindowsFontCache[index].Value; 182WindowsFont winFont = WindowsFont.FromFont(font, fontQuality); 183KeyValuePair<Font, WindowsFont> newEntry = new KeyValuePair<Font, WindowsFont>(font, winFont); 194WindowsFont wfont = null;