C# 클래스 PixelFarm.Drawing.WinGdi.WinGdiTextService

파일 보기 프로젝트 열기: prepare/HTML-Renderer 1 사용 예제들

공개 메소드들

메소드 설명
CalculateGlyphAdvancePos ( char str, int startAt, int len, RequestFont font, int glyphXAdvances ) : void
GetWinGdiFont ( RequestFont f ) : ActualFont
MeasureString ( char buff, int startAt, int len, RequestFont font ) : Size
MeasureString ( char buff, int startAt, int len, RequestFont font, float maxWidth, int &charFit, int &charFitWidth ) : Size

Measure the width and height of string str when drawn on device context HDC using the given font font.
Restrict the width of the string and get the number of characters able to fit in the restriction and the width those characters take.

MeasureWhitespace ( RequestFont f ) : float
SetDefaultEncoding ( Encoding en ) : void

비공개 메소드들

메소드 설명
MeasureCharWidths ( IntPtr hFont, int &charWidths, NativeTextWin32 &abcSizes ) : void
SetFont ( RequestFont font ) : WinGdiFont
WinGdiTextService ( ) : System

메소드 상세

CalculateGlyphAdvancePos() 공개 정적인 메소드

public static CalculateGlyphAdvancePos ( char str, int startAt, int len, RequestFont font, int glyphXAdvances ) : void
str char
startAt int
len int
font PixelFarm.Drawing.RequestFont
glyphXAdvances int
리턴 void

GetWinGdiFont() 공개 정적인 메소드

public static GetWinGdiFont ( RequestFont f ) : ActualFont
f PixelFarm.Drawing.RequestFont
리턴 PixelFarm.Drawing.Fonts.ActualFont

MeasureString() 공개 정적인 메소드

public static MeasureString ( char buff, int startAt, int len, RequestFont font ) : Size
buff char
startAt int
len int
font PixelFarm.Drawing.RequestFont
리턴 Size

MeasureString() 공개 정적인 메소드

Measure the width and height of string str when drawn on device context HDC using the given font font.
Restrict the width of the string and get the number of characters able to fit in the restriction and the width those characters take.
public static MeasureString ( char buff, int startAt, int len, RequestFont font, float maxWidth, int &charFit, int &charFitWidth ) : Size
buff char
startAt int
len int
font PixelFarm.Drawing.RequestFont the font to measure string with
maxWidth float the max width to render the string in
charFit int the number of characters that will fit under restriction
charFitWidth int
리턴 Size

MeasureWhitespace() 공개 정적인 메소드

public static MeasureWhitespace ( RequestFont f ) : float
f PixelFarm.Drawing.RequestFont
리턴 float

SetDefaultEncoding() 공개 정적인 메소드

public static SetDefaultEncoding ( Encoding en ) : void
en System.Text.Encoding
리턴 void