public static float MeasureWhitespace( PixelFarm.Drawing.IFonts gfx, PixelFarm.Drawing.Font f) { float ws; var f2 = f.InnerFont as System.Drawing.Font; if (!_fontWsCache.TryGetValue(f2, out ws)) { ws = gfx.MeasureString(new char[] { ' ' }, 0, 1, f).Width; _fontWsCache[f2] = ws; } return(ws); }
float IFonts.MeasureWhitespace(PixelFarm.Drawing.Font f) { //platform specific return(PixelFarm.Drawing.WinGdi.FontStore.MeasureWhitespace(this, f)); }
float IFonts.MeasureWhitespace(PixelFarm.Drawing.Font f) { return(FontStore.MeasureWhitespace(this, f)); }