Font names collection
FontFace
01 Syntax
Microsoft.VisualBasic.Imaging.FontFace
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| PointSizeScale | 1 | fix for dpi bugs on unix mono platform when create a font object. |
| IsInstalled | 1 | 检查当前的操作系统之中是否安装有指定名称的字体 |
| GetFontName | 1 | 由于字体名称的大小写敏感,所以假若是html css之类的渲染的话,由于可能会是小写的字体名称会导致无法 正确的加载所需要的字体,所以可以使用这个函数来消除这种由于大小写敏感而带来的bug |
| MeasureString | 1 | A common shared method for measure text drawing size in gdi+ environment. |
| SVGPointSize | 1 |
03 Properties
| Name | Overloads | Summary |
|---|---|---|
| InstalledFontFamilies | 1 |
04 Fields
| Name | Overloads | Summary |
|---|---|---|
| MicrosoftYaHei | 2 | 微软雅黑字体的名称 |
| MicrosoftYaHeiUI | 1 | |
| Ubuntu | 1 | |
| SegoeUI | 1 | |
| Arial | 1 | |
| BookmanOldStyle | 1 | |
| Calibri | 1 | |
| Cambria | 1 | |
| CambriaMath | 1 | |
| Consolas | 1 | |
| CourierNew | 1 | |
| NSimSun | 1 | |
| SimSun | 1 | |
| Verdana | 1 | |
| Tahoma | 1 | |
| TimesNewRoman | 1 |
05 Members
PointSizeScale(
Single, Single)fix for dpi bugs on unix mono platform when create a font object.
Parameters
| Name | Type | Description |
|---|---|---|
pointSize | Single | - |
dpiResolution | Single | - |
IsInstalled(
String)检查当前的操作系统之中是否安装有指定名称的字体
Parameters
| Name | Type | Description |
|---|---|---|
name | String | - |
GetFontName(
String, String)由于字体名称的大小写敏感,所以假若是html css之类的渲染的话,由于可能会是小写的字体名称会导致无法 正确的加载所需要的字体,所以可以使用这个函数来消除这种由于大小写敏感而带来的bug
Parameters
| Name | Type | Description |
|---|---|---|
name$ | String | - |
default | String | 默认使用Windows10的默认字体 |
MeasureString(
String, Font)A common shared method for measure text drawing size in gdi+ environment.
Parameters
| Name | Type | Description |
|---|---|---|
s | String | - |
font | Font | - |
MicrosoftYaHei
微软雅黑字体的名称
MicrosoftYaHei
MicrosoftYaHeiUI
Ubuntu
SegoeUI
Arial
BookmanOldStyle
Calibri
Cambria
CambriaMath
Consolas
CourierNew
NSimSun
SimSun
Verdana
Tahoma
TimesNewRoman
InstalledFontFamilies
SVGPointSize(
Single, Single)