AnyCAD Rapid API 2026
Help you to create a better world!
载入中...
搜索中...
未找到
AnyCAD.Foundation.FontManager类 参考

字体管理器类 更多...

类 AnyCAD.Foundation.FontManager 继承关系图:

Public 成员函数

 FontManager (global::System.IntPtr cPtr, bool cMemoryOwn)
 仅供内部使用
 
void Dispose ()
 
string GetDefaultFont ()
 
uint GetTextureResolution ()
 
void SetTextureResolution (uint val)
 
Texture2D CreateTexture (string text, float height, string fontName)
 
Texture2D CreateTexture (string text, float height)
 
BufferGeometry CreateMesh (string text, string fontName, float fontHeight, float widthFactor, float wrapBoxWidth, float lineSpaceFactor)
 
BufferGeometry CreateMesh (string text, string fontName, float fontHeight, float widthFactor, float wrapBoxWidth)
 
BufferGeometry CreateMesh (string text, string fontName, float fontHeight, float widthFactor)
 
BufferGeometry CreateMesh (string text, string fontName, float fontHeight)
 
BufferGeometry CreateMesh (string text, string fontName)
 
BufferGeometry CreateMesh (string text)
 
BufferGeometry CreateGeometry (string text, EnumFontType fontType, EnumTextAlignment alignment, float fontHeight, string fontName, float widthFactor, float wrapBoxWidth, float lineSpaceFactor)
 
BufferGeometry CreateGeometry (string text, EnumFontType fontType, EnumTextAlignment alignment, float fontHeight, string fontName, float widthFactor, float wrapBoxWidth)
 
BufferGeometry CreateGeometry (string text, EnumFontType fontType, EnumTextAlignment alignment, float fontHeight, string fontName, float widthFactor)
 
BufferGeometry CreateGeometry (string text, EnumFontType fontType, EnumTextAlignment alignment, float fontHeight, string fontName)
 
BufferGeometry CreateGeometry (string text, EnumFontType fontType, EnumTextAlignment alignment, float fontHeight)
 
BufferGeometry CreateGeometry (string text, EnumFontType fontType, EnumTextAlignment alignment)
 
StringList AddTTCFonts (string fontPath)
 添加ttc字体文件,不支持字体重命名
 
bool AddFont (string fontName, string fontPath)
 
void SetDefaultFont (string fontName)
 

静态 Public 成员函数

static FontManager Instance ()
 
static FontManager GetInstance ()
 

详细描述

字体管理器类

单例模式管理所有字体资源,包括加载、查找、缓存等功能。 支持 TTF、SHX 等多种字体格式,提供文本到几何体的转换功能。

成员函数说明

◆ AddTTCFonts()

StringList AnyCAD.Foundation.FontManager.AddTTCFonts ( string fontPath)

添加ttc字体文件,不支持字体重命名

参数
fontPath
返回
ttc包含的ttf字体名称列表