From 0a29b78a6c729faecde2716836e9a461401733aa Mon Sep 17 00:00:00 2001 From: Qwerasd Date: Thu, 12 Dec 2024 20:38:26 -0500 Subject: [PATCH] clarify naming convention --- src/font/opentype/head.zig | 2 ++ src/font/opentype/hhea.zig | 2 ++ src/font/opentype/os2.zig | 4 ++++ src/font/opentype/post.zig | 2 ++ 4 files changed, 10 insertions(+) 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),