Aspose::Font::Renderers::GlyphRendererBase::RenderIndependentGlyphPath 方法

GlyphRendererBase::RenderIndependentGlyphPath method

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

void Aspose::Font::Renderers::GlyphRendererBase::RenderIndependentGlyphPath(System::SharedPtr<IFont> font, System::SharedPtr<Glyphs::GlyphId> glyphId, System::SharedPtr<Glyphs::Glyph> glyph, System::SharedPtr<TransformationMatrix> glyphPlacementMatrix) override
参数类型描述
字体System::SharedPtr<IFont>包含该字形的字体。
glyphIdSystem::SharedPtr<Glyphs::GlyphId>Font 中的物理字形索引。请注意,这不是 Unicode。
字形System::SharedPtr<Glyphs::Glyph>要渲染的字形。
glyphPlacementMatrixSystem::SharedPtr<TransformationMatrix>应用于字形坐标的矩阵。

另见