|
AnyCAD Rapid API 2026
Help you to create a better world!
|
字体管理器类 更多...
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 等多种字体格式,提供文本到几何体的转换功能。
| StringList AnyCAD.Foundation.FontManager.AddTTCFonts | ( | string | fontPath | ) |
添加ttc字体文件,不支持字体重命名
| fontPath |