WPF源代码中OpenType字体特性有哪些具体应用?
摘要:本文记录我读 WPF 源代码的 OpenType 字体特性标签 OpenType Feature Tags 的笔记内容
本文部分内容由 AI 辅助记录和整理
在 WPF 里面,关于 Feature Tag 字体特性的定义是放在 src\Microsoft.DotNet.Wpf\src\PresentationCore\MS\Internal\FontFace\Tags.cs 文件里面,定义的枚举代码内容如下
internal enum FeatureTags
{
AccessAllAlternates = 0x61616c74, // 'aalt'
AboveBaseForms = 0x61627666, // 'abvf'
AboveBaseMarkPositioning = 0x6162766d, // 'abvm'
AboveBaseSubstitutions = 0x61627673, // 'abvs'
AlternativeFractions = 0x61667263, // 'afrc'
Akhands = 0x616b686e, // 'akhn'
BelowBaseForms = 0x626c7766, // 'blwf'
BelowBaseMarkPositioning = 0x626c776d, // 'blwm'
BelowBaseSubstitutions = 0x626c7773, // 'blws'
PetiteCapitalsFromCapitals = 0x63327063, // 'c2pc'
SmallCapitalsFromCapitals = 0x63327363, // 'c2sc'
ContextualAlternates = 0x63616c74, // 'calt'
CaseSensitiveForms = 0x63617365, // 'case'
GlyphCompositionDecomposition = 0x63636d70, // 'ccmp'
Conjunctformafterro = 0x63666172, // 'cfar'
ContextualLigatures = 0x636c6967, // 'clig'
Conjuncts = 0x636a6374, // 'cjct'
CapitalSpacing = 0x63707370, // 'cpsp'
ContextualSwash = 0x63737768, // 'cswh'
CursivePositioning = 0x63757273, // 'curs'
DefaultProcessing = 0x64666c74, // 'dflt'
Distances = 0x64697374, // 'dist'
DiscretionaryLigatures = 0x646c6967, // 'dlig'
Denominators = 0x646e6f6d, // 'dnom'
Diphthongs = 0x64706e67, /
