GlyphRendererBase.RenderIndependentGlyphPath

GlyphRendererBase.RenderIndependentGlyphPath method

使用独立的字形路径渲染字形。RenderGlyph() 函数族在渲染时会更改字形路径,这会导致需要再次重新加载该字形。此函数使用字形路径的副本且不更改原始字形路径,因此同一字形可以多次重复使用。此函数版本旨在与字形缓存一起使用。

public void RenderIndependentGlyphPath(IFont font, GlyphId glyphId, Glyph glyph, 
    TransformationMatrix glyphPlacementMatrix)
参数类型描述
字体IFont包含该字形的字体。
glyphIdGlyphId字体内部的物理字形索引。请注意,这不是 Unicode。
字形字形待渲染的字形。
glyphPlacementMatrixTransformationMatrix应用于字形坐标的矩阵。

另见