Skip to content

Commit

Permalink
[font] reorder fields to better group variable tables
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitkugler authored Apr 3, 2024
1 parent e398ddb commit cb52840
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions font/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,15 +148,6 @@ type Font struct {
post post // optional
svg svg // optional

// Optional, only present in variable fonts

fvar fvar // optional
hvar *tables.HVAR // optional
vvar *tables.VVAR // optional
avar tables.Avar
mvar mvar
gvar gvar

glyf tables.Glyf
hmtx tables.Hmtx
vmtx tables.Vmtx
Expand All @@ -167,6 +158,15 @@ type Font struct {
names tables.Name
head tables.Head

// Optional, only present in variable fonts

fvar fvar // optional
hvar *tables.HVAR // optional
vvar *tables.VVAR // optional
avar tables.Avar
mvar mvar
gvar gvar

// Advanced layout tables.

GDEF tables.GDEF // An absent table has a nil GlyphClassDef
Expand Down

0 comments on commit cb52840

Please sign in to comment.