diff --git a/src/font/opentype/head.zig b/src/font/opentype/head.zig index ff5da7eaa..e5be7a352 100644 --- a/src/font/opentype/head.zig +++ b/src/font/opentype/head.zig @@ -6,6 +6,8 @@ const sfnt = @import("sfnt.zig"); /// /// References: /// - https://learn.microsoft.com/en-us/typography/opentype/spec/head +/// +/// Field names are in camelCase to match names in spec. pub const Head = extern struct { /// Major version number of the font header table — set to 1. majorVersion: sfnt.uint16 align(1), diff --git a/src/font/opentype/hhea.zig b/src/font/opentype/hhea.zig index 8f224e1bb..300f29c7a 100644 --- a/src/font/opentype/hhea.zig +++ b/src/font/opentype/hhea.zig @@ -6,6 +6,8 @@ const sfnt = @import("sfnt.zig"); /// /// References: /// - https://learn.microsoft.com/en-us/typography/opentype/spec/hhea +/// +/// Field names are in camelCase to match names in spec. pub const Hhea = extern struct { /// Major version number of the horizontal header table — set to 1. majorVersion: sfnt.uint16 align(1), diff --git a/src/font/opentype/os2.zig b/src/font/opentype/os2.zig index 9bd57fc37..809962d45 100644 --- a/src/font/opentype/os2.zig +++ b/src/font/opentype/os2.zig @@ -43,6 +43,8 @@ pub const FSSelection = packed struct(sfnt.uint16) { /// /// References: /// - https://learn.microsoft.com/en-us/typography/opentype/spec/os2 +/// +/// Field names are in camelCase to match names in spec. pub const OS2v5 = extern struct { version: sfnt.uint16 align(1), xAvgCharWidth: sfnt.FWORD align(1), @@ -198,6 +200,8 @@ pub const OS2v0 = extern struct { /// /// References: /// - https://learn.microsoft.com/en-us/typography/opentype/spec/os2 +/// +/// Field names are in camelCase to match names in spec. pub const OS2 = struct { /// The version number for the OS/2 table: 0x0000 to 0x0005. /// diff --git a/src/font/opentype/post.zig b/src/font/opentype/post.zig index e2c98bca1..ca0891583 100644 --- a/src/font/opentype/post.zig +++ b/src/font/opentype/post.zig @@ -9,6 +9,8 @@ const sfnt = @import("sfnt.zig"); /// /// References: /// - https://learn.microsoft.com/en-us/typography/opentype/spec/post +/// +/// Field names are in camelCase to match names in spec. pub const Post = extern struct { version: sfnt.Version16Dot16 align(1),