VegaRise.NET
Back to DOM

FontTypeHintValuesEnum

Definition

Namespace
DOM.Enums
Assembly
DOM.dll

Specifies a hint used by consumers when choosing a font at render time.

Remarks

Used by . The hint is informational and helps the renderer pick a script-appropriate font, especially in mixed-script documents. Font.Hint

Examples

csharp
1// 1. Default hint
2var font = new Font { Hint = FontTypeHintValues.Default };
3
csharp
1// 2. East Asian hint
2var font = new Font { Hint = FontTypeHintValues.eastAsia };
3
csharp
1// 3. Complex-script hint
2var font = new Font { Hint = FontTypeHintValues.cs };
3
csharp
1// 4. Set hint based on script
2font.Hint = isCjk ? FontTypeHintValues.eastAsia : FontTypeHintValues.Default;
3

Fields

cs

Complex script hint.

Default

Default (script-agnostic) hint.

eastAsia

East Asian script hint.

VegaRise.NET

Sign In

Welcome back. Please sign in to your account.

Forgot password?
or

Don't have an account? Create an account

By signing in, you agree to our Terms of Service and Privacy Policy.