C# 클래스 QuickFont.QFont

파일 보기 프로젝트 열기: swax/QuickFont 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
VertexBuffers QVertexBuffer[]

공개 메소드들

메소드 설명
Begin ( ) : void
CreateTextureFontFiles ( Font font, string newFontName ) : void
CreateTextureFontFiles ( Font font, string newFontName, QFontBuilderConfiguration config ) : void
CreateTextureFontFiles ( string fileName, float size, FontStyle style, QFontBuilderConfiguration config, string newFontName ) : void
CreateTextureFontFiles ( string fileName, float size, FontStyle style, string newFontName ) : void
CreateTextureFontFiles ( string fileName, float size, QFontBuilderConfiguration config, string newFontName ) : void
CreateTextureFontFiles ( string fileName, float size, string newFontName ) : void
DrawVBOs ( ) : void
End ( ) : void
FromQFontFile ( string filePath ) : QFont
FromQFontFile ( string filePath, QFontLoaderConfiguration loaderConfig ) : QFont
FromQFontFile ( string filePath, float downSampleFactor ) : QFont
FromQFontFile ( string filePath, float downSampleFactor, QFontLoaderConfiguration loaderConfig ) : QFont
LoadVBOs ( ) : void
Measure ( ProcessedText processedText ) : SizeF

Measures the actual width and height of the block of text

Measure ( string text, QFontAlignment alignment = QFontAlignment.Left ) : SizeF
Measure ( string text, SizeF maxSize, QFontAlignment alignment ) : SizeF

Measures the actual width and height of the block of text.

PopOptions ( ) : void
Print ( ProcessedText processedText ) : void

Prints text as previously processed with a boundary and alignment.

Print ( ProcessedText processedText, System.Vector2 position ) : void
Print ( string text, QFontAlignment alignment = QFontAlignment.Left ) : void
Print ( string text, SizeF maxSize, QFontAlignment alignment ) : void

Prints text inside the given bounds.

Print ( string text, SizeF maxSize, QFontAlignment alignment, System.Vector2 position ) : void
Print ( string text, System.Vector2 position, QFontAlignment alignment = QFontAlignment.Left ) : void
PrintToVBO ( string text, QFontAlignment alignment, Vector3 position, Color color, SizeF maxSize ) : void
PrintToVBO ( string text, Vector3 position, Color color, QFontAlignment alignment = QFontAlignment.Left ) : void
ProcessText ( string text, SizeF maxSize, QFontAlignment alignment ) : ProcessedText

Creates node list object associated with the text.

PushOptions ( ) : void

Creates a clone of the current font options and pushes it onto the stack

PushOptions ( QFontRenderOptions newOptions ) : void

Pushes the specified QFont options onto the options stack

QFont ( Font font ) : System
QFont ( Font font, QFontBuilderConfiguration config ) : System
QFont ( string fileName, float size ) : System
QFont ( string fileName, float size, FontStyle style ) : System
QFont ( string fileName, float size, FontStyle style, QFontBuilderConfiguration config ) : System
QFont ( string fileName, float size, QFontBuilderConfiguration config ) : System
RefreshViewport ( ) : void

Invalidates the internally cached viewport, causing it to be reread the next time it is required. This should be called if the viewport and text is to be rendered to the new viewport.

RenderGlyph ( float x, float y, char c, bool isDropShadow ) : void
ResetVBOs ( ) : void

비공개 메소드들

메소드 설명
BuildFont ( Font font, QFontBuilderConfiguration config, string saveName ) : QFontData
CrumbledWord ( TextNode node ) : bool
InitVBOs ( ) : void
JustifyLine ( TextNode node, float targetLength ) : void

Computes the length of the next line, and whether the line is valid for justification.

LockToPixel ( System.Vector2 input ) : System.Vector2
MeasureNextlineLength ( string text ) : float
OrthogonalTransform ( float &fontScale ) : TransformViewport

When TransformToOrthogProjection is enabled, we need to get the current orthogonal transformation, the font scale, and ensure that the projection is actually orthogonal

PrintOrMeasure ( ProcessedText processedText, bool measureOnly ) : SizeF
PrintOrMeasure ( string text, QFontAlignment alignment, bool measureOnly ) : SizeF
QFont ( ) : System
QFont ( QFontData fontData ) : System
RenderDropShadow ( float x, float y, char c, QFontGlyph nonShadowGlyph ) : void
RenderWord ( float x, float y, TextNode node ) : void
SkipTrailingSpace ( TextNode node, float lengthSoFar, float boundWidth ) : bool

Checks whether to skip trailing space on line because the next word does not fit. We only check one space - the assumption is that if there is more than one, it is a deliberate attempt to insert spaces.

TextNodeLineLength ( TextNode node, float maxLength ) : float

Computes the length of the next line, and whether the line is valid for justification.

TransformMeasureFromViewport ( SizeF input ) : SizeF
TransformPositionToViewport ( Vector2 input ) : Vector2
TransformWidthToViewport ( float input ) : float

메소드 상세

Begin() 공개 정적인 메소드

public static Begin ( ) : void
리턴 void

CreateTextureFontFiles() 공개 정적인 메소드

public static CreateTextureFontFiles ( Font font, string newFontName ) : void
font System.Drawing.Font
newFontName string
리턴 void

CreateTextureFontFiles() 공개 정적인 메소드

public static CreateTextureFontFiles ( Font font, string newFontName, QFontBuilderConfiguration config ) : void
font System.Drawing.Font
newFontName string
config QFontBuilderConfiguration
리턴 void

CreateTextureFontFiles() 공개 정적인 메소드

public static CreateTextureFontFiles ( string fileName, float size, FontStyle style, QFontBuilderConfiguration config, string newFontName ) : void
fileName string
size float
style FontStyle
config QFontBuilderConfiguration
newFontName string
리턴 void

CreateTextureFontFiles() 공개 정적인 메소드

public static CreateTextureFontFiles ( string fileName, float size, FontStyle style, string newFontName ) : void
fileName string
size float
style FontStyle
newFontName string
리턴 void

CreateTextureFontFiles() 공개 정적인 메소드

public static CreateTextureFontFiles ( string fileName, float size, QFontBuilderConfiguration config, string newFontName ) : void
fileName string
size float
config QFontBuilderConfiguration
newFontName string
리턴 void

CreateTextureFontFiles() 공개 정적인 메소드

public static CreateTextureFontFiles ( string fileName, float size, string newFontName ) : void
fileName string
size float
newFontName string
리턴 void

DrawVBOs() 공개 메소드

public DrawVBOs ( ) : void
리턴 void

End() 공개 정적인 메소드

public static End ( ) : void
리턴 void

FromQFontFile() 공개 정적인 메소드

public static FromQFontFile ( string filePath ) : QFont
filePath string
리턴 QFont

FromQFontFile() 공개 정적인 메소드

public static FromQFontFile ( string filePath, QFontLoaderConfiguration loaderConfig ) : QFont
filePath string
loaderConfig QFontLoaderConfiguration
리턴 QFont

FromQFontFile() 공개 정적인 메소드

public static FromQFontFile ( string filePath, float downSampleFactor ) : QFont
filePath string
downSampleFactor float
리턴 QFont

FromQFontFile() 공개 정적인 메소드

public static FromQFontFile ( string filePath, float downSampleFactor, QFontLoaderConfiguration loaderConfig ) : QFont
filePath string
downSampleFactor float
loaderConfig QFontLoaderConfiguration
리턴 QFont

LoadVBOs() 공개 메소드

public LoadVBOs ( ) : void
리턴 void

Measure() 공개 메소드

Measures the actual width and height of the block of text
public Measure ( ProcessedText processedText ) : SizeF
processedText ProcessedText
리턴 System.Drawing.SizeF

Measure() 공개 메소드

public Measure ( string text, QFontAlignment alignment = QFontAlignment.Left ) : SizeF
text string
alignment QFontAlignment
리턴 System.Drawing.SizeF

Measure() 공개 메소드

Measures the actual width and height of the block of text.
public Measure ( string text, SizeF maxSize, QFontAlignment alignment ) : SizeF
text string
maxSize System.Drawing.SizeF
alignment QFontAlignment
리턴 System.Drawing.SizeF

PopOptions() 공개 메소드

public PopOptions ( ) : void
리턴 void

Print() 공개 메소드

Prints text as previously processed with a boundary and alignment.
public Print ( ProcessedText processedText ) : void
processedText ProcessedText
리턴 void

Print() 공개 메소드

public Print ( ProcessedText processedText, System.Vector2 position ) : void
processedText ProcessedText
position System.Vector2
리턴 void

Print() 공개 메소드

public Print ( string text, QFontAlignment alignment = QFontAlignment.Left ) : void
text string
alignment QFontAlignment
리턴 void

Print() 공개 메소드

Prints text inside the given bounds.
public Print ( string text, SizeF maxSize, QFontAlignment alignment ) : void
text string
maxSize System.Drawing.SizeF
alignment QFontAlignment
리턴 void

Print() 공개 메소드

public Print ( string text, SizeF maxSize, QFontAlignment alignment, System.Vector2 position ) : void
text string
maxSize System.Drawing.SizeF
alignment QFontAlignment
position System.Vector2
리턴 void

Print() 공개 메소드

public Print ( string text, System.Vector2 position, QFontAlignment alignment = QFontAlignment.Left ) : void
text string
position System.Vector2
alignment QFontAlignment
리턴 void

PrintToVBO() 공개 메소드

public PrintToVBO ( string text, QFontAlignment alignment, Vector3 position, Color color, SizeF maxSize ) : void
text string
alignment QFontAlignment
position Vector3
color Color
maxSize System.Drawing.SizeF
리턴 void

PrintToVBO() 공개 메소드

public PrintToVBO ( string text, Vector3 position, Color color, QFontAlignment alignment = QFontAlignment.Left ) : void
text string
position Vector3
color Color
alignment QFontAlignment
리턴 void

ProcessText() 공개 메소드

Creates node list object associated with the text.
public ProcessText ( string text, SizeF maxSize, QFontAlignment alignment ) : ProcessedText
text string
maxSize System.Drawing.SizeF
alignment QFontAlignment
리턴 ProcessedText

PushOptions() 공개 메소드

Creates a clone of the current font options and pushes it onto the stack
public PushOptions ( ) : void
리턴 void

PushOptions() 공개 메소드

Pushes the specified QFont options onto the options stack
public PushOptions ( QFontRenderOptions newOptions ) : void
newOptions QFontRenderOptions
리턴 void

QFont() 공개 메소드

public QFont ( Font font ) : System
font System.Drawing.Font
리턴 System

QFont() 공개 메소드

public QFont ( Font font, QFontBuilderConfiguration config ) : System
font System.Drawing.Font
config QFontBuilderConfiguration
리턴 System

QFont() 공개 메소드

public QFont ( string fileName, float size ) : System
fileName string
size float
리턴 System

QFont() 공개 메소드

public QFont ( string fileName, float size, FontStyle style ) : System
fileName string
size float
style FontStyle
리턴 System

QFont() 공개 메소드

public QFont ( string fileName, float size, FontStyle style, QFontBuilderConfiguration config ) : System
fileName string
size float
style FontStyle
config QFontBuilderConfiguration
리턴 System

QFont() 공개 메소드

public QFont ( string fileName, float size, QFontBuilderConfiguration config ) : System
fileName string
size float
config QFontBuilderConfiguration
리턴 System

RefreshViewport() 공개 정적인 메소드

Invalidates the internally cached viewport, causing it to be reread the next time it is required. This should be called if the viewport and text is to be rendered to the new viewport.
public static RefreshViewport ( ) : void
리턴 void

RenderGlyph() 공개 메소드

public RenderGlyph ( float x, float y, char c, bool isDropShadow ) : void
x float
y float
c char
isDropShadow bool
리턴 void

ResetVBOs() 공개 메소드

public ResetVBOs ( ) : void
리턴 void

프로퍼티 상세

VertexBuffers 공개적으로 프로퍼티

public QVertexBuffer[] VertexBuffers
리턴 QVertexBuffer[]