Пример #1
0
 public float MeasureWhitespace(RequestFont f)
 {
     return(WinGdiTextService.MeasureWhitespace(f));
 }
Пример #2
0
 public void CalculateUserCharGlyphAdvancePos(ref TextBufferSpan textBufferSpan,
                                              RequestFont font, int[] outputGlyphAdvances, out int outputTotalW, out int outputLineHeight)
 {
     WinGdiTextService.CalculateGlyphAdvancePos(ref textBufferSpan, font, outputGlyphAdvances, out outputTotalW);
     outputLineHeight = WinGdiTextService.MeasureBlankLineHeight(font);
 }
Пример #3
0
 public float MeasureBlankLineHeight(RequestFont f)
 {
     return(WinGdiTextService.MeasureBlankLineHeight(f));
 }
Пример #4
0
 public void MeasureString(ref TextBufferSpan textBufferSpan, RequestFont font, int maxWidth, out int charFit, out int charFitWidth)
 {
     WinGdiTextService.MeasureString(textBufferSpan.GetRawCharBuffer(), textBufferSpan.start, textBufferSpan.len, font, maxWidth, out charFit, out charFitWidth);
 }
Пример #5
0
 public PixelFarm.Drawing.Size MeasureString(ref TextBufferSpan textBufferSpan, RequestFont font)
 {
     return(WinGdiTextService.MeasureString(textBufferSpan.GetRawCharBuffer(), textBufferSpan.start, textBufferSpan.len, font));
 }
Пример #6
0
 static WinGdiPlusPlatform()
 {
     PixelFarm.Agg.AggBuffMx.SetNaiveBufferImpl(new Win32AggBuffMx());
     //3. set default encoing
     WinGdiTextService.SetDefaultEncoding(System.Text.Encoding.ASCII);
 }
Пример #7
0
 public static void SetFontEncoding(System.Text.Encoding encoding)
 {
     WinGdiTextService.SetDefaultEncoding(encoding);
 }
Пример #8
0
 public float MeasureBlankLineHeight(RequestFont f) => WinGdiTextService.MeasureBlankLineHeight(f);