From a02c3ee70f4ca9de1fd55f1d8d535f6bd0d32606 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Thu, 12 Apr 2018 13:38:19 +0430 Subject: [PATCH] Add or update tables specifications links --- src/hb-aat-fmtx-table.hh | 9 ++++----- src/hb-aat-gcid-table.hh | 8 ++++---- src/hb-aat-layout-ankr-table.hh | 8 ++++---- src/hb-aat-layout-bsln-table.hh | 10 +++++----- src/hb-aat-layout-feat-table.hh | 10 +++++----- src/hb-aat-layout-kerx-table.hh | 4 ++++ src/hb-aat-layout-morx-table.hh | 4 ++++ src/hb-aat-layout-trak-table.hh | 4 ++++ src/hb-aat-ltag-table.hh | 10 +++++----- src/hb-ot-color-cbdt-table.hh | 24 ++++++++++++------------ src/hb-ot-color-colr-table.hh | 6 +++--- src/hb-ot-color-cpal-table.hh | 6 +++--- src/hb-ot-color-sbix-table.hh | 11 ++++++----- src/hb-ot-color-svg-table.hh | 3 ++- src/hb-ot-glyf-table.hh | 4 ++-- src/hb-ot-hdmx-table.hh | 11 ++++++----- src/hb-ot-head-table.hh | 10 +++++----- src/hb-ot-hhea-table.hh | 15 ++++++++------- src/hb-ot-hmtx-table.hh | 14 +++++++------- src/hb-ot-kern-table.hh | 10 ++++++---- src/hb-ot-layout-base-table.hh | 3 ++- src/hb-ot-layout-gdef-table.hh | 3 ++- src/hb-ot-layout-gpos-table.hh | 3 ++- src/hb-ot-layout-gsub-table.hh | 3 ++- src/hb-ot-layout-jstf-table.hh | 3 ++- src/hb-ot-math-table.hh | 3 ++- src/hb-ot-maxp-table.hh | 3 ++- src/hb-ot-name-table.hh | 4 ++-- src/hb-ot-os2-table.hh | 3 +-- src/hb-ot-post-table.hh | 8 ++++---- src/hb-ot-var-avar-table.hh | 14 ++++++++------ src/hb-ot-var-fvar-table.hh | 15 ++++++++------- src/hb-ot-var-hvar-table.hh | 7 ++++--- src/hb-ot-var-mvar-table.hh | 4 ++-- 34 files changed, 142 insertions(+), 115 deletions(-) diff --git a/src/hb-aat-fmtx-table.hh b/src/hb-aat-fmtx-table.hh index 6fabf3c5..a9185c37 100644 --- a/src/hb-aat-fmtx-table.hh +++ b/src/hb-aat-fmtx-table.hh @@ -27,17 +27,16 @@ #include "hb-aat-layout-common-private.hh" +/* + * fmtx -- Font Metrics + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6fmtx.html + */ #define HB_AAT_TAG_fmtx HB_TAG('f','m','t','x') namespace AAT { -/* - * fmtx -- Font metrics - * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6fmtx.html - */ - struct fmtx { static const hb_tag_t tableTag = HB_AAT_TAG_fmtx; diff --git a/src/hb-aat-gcid-table.hh b/src/hb-aat-gcid-table.hh index d0c45df3..01c2c5c3 100644 --- a/src/hb-aat-gcid-table.hh +++ b/src/hb-aat-gcid-table.hh @@ -27,15 +27,15 @@ #include "hb-aat-layout-common-private.hh" +/* + * gcid -- Glyphs CIDs + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gcid.html + */ #define HB_AAT_TAG_gcid HB_TAG('g','c','i','d') namespace AAT { -/* - * gcid -- Glyphs CIDs - * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gcid.html - */ struct gcid { diff --git a/src/hb-aat-layout-ankr-table.hh b/src/hb-aat-layout-ankr-table.hh index b3ff925d..dc6582b6 100644 --- a/src/hb-aat-layout-ankr-table.hh +++ b/src/hb-aat-layout-ankr-table.hh @@ -27,16 +27,16 @@ #include "hb-aat-layout-common-private.hh" +/* + * ankr -- Anchor Point + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ankr.html + */ #define HB_AAT_TAG_ankr HB_TAG('a','n','k','r') namespace AAT { -/* - * ankr -- Anchor point - */ - struct Anchor { inline bool sanitize (hb_sanitize_context_t *c) const diff --git a/src/hb-aat-layout-bsln-table.hh b/src/hb-aat-layout-bsln-table.hh index 3b9e4fea..a35b4483 100644 --- a/src/hb-aat-layout-bsln-table.hh +++ b/src/hb-aat-layout-bsln-table.hh @@ -27,11 +27,16 @@ #include "hb-aat-layout-common-private.hh" +/* + * bsln -- Baseline + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6bsln.html + */ #define HB_AAT_TAG_bsln HB_TAG('b','s','l','n') namespace AAT { + struct BaselineTableFormat0Part { inline bool sanitize (hb_sanitize_context_t *c) const @@ -108,11 +113,6 @@ struct BaselineTableFormat3Part DEFINE_SIZE_MIN (68); }; -/* - * bsln -- Baseline table - * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6bsln.html - */ - struct bsln { static const hb_tag_t tableTag = HB_AAT_TAG_bsln; diff --git a/src/hb-aat-layout-feat-table.hh b/src/hb-aat-layout-feat-table.hh index 63355470..e7329fe1 100644 --- a/src/hb-aat-layout-feat-table.hh +++ b/src/hb-aat-layout-feat-table.hh @@ -27,11 +27,16 @@ #include "hb-aat-layout-common-private.hh" +/* + * feat -- Feature Name + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6feat.html + */ #define HB_AAT_TAG_feat HB_TAG('f','e','a','t') namespace AAT { + struct SettingName { inline bool sanitize (hb_sanitize_context_t *c) const @@ -86,11 +91,6 @@ struct FeatureName DEFINE_SIZE_STATIC (12); }; -/* - * feat -- Feature name - * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6feat.html - */ - struct feat { static const hb_tag_t tableTag = HB_AAT_TAG_feat; diff --git a/src/hb-aat-layout-kerx-table.hh b/src/hb-aat-layout-kerx-table.hh index bee102dd..756faeff 100644 --- a/src/hb-aat-layout-kerx-table.hh +++ b/src/hb-aat-layout-kerx-table.hh @@ -31,6 +31,10 @@ #include "hb-open-type-private.hh" #include "hb-aat-layout-common-private.hh" +/* + * kerx -- Extended Kerning + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6kerx.html + */ #define HB_AAT_TAG_kerx HB_TAG('k','e','r','x') diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index ad3e41c0..f785e726 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -30,6 +30,10 @@ #include "hb-open-type-private.hh" #include "hb-aat-layout-common-private.hh" +/* + * morx -- Extended Glyph Metamorphosis + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6morx.html + */ #define HB_AAT_TAG_morx HB_TAG('m','o','r','x') diff --git a/src/hb-aat-layout-trak-table.hh b/src/hb-aat-layout-trak-table.hh index d720b0cf..a4714883 100644 --- a/src/hb-aat-layout-trak-table.hh +++ b/src/hb-aat-layout-trak-table.hh @@ -31,6 +31,10 @@ #include "hb-aat-layout-common-private.hh" #include "hb-open-type-private.hh" +/* + * trak -- Tracking + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6trak.html + */ #define HB_AAT_TAG_trak HB_TAG('t','r','a','k') diff --git a/src/hb-aat-ltag-table.hh b/src/hb-aat-ltag-table.hh index 6d6cb716..0796c671 100644 --- a/src/hb-aat-ltag-table.hh +++ b/src/hb-aat-ltag-table.hh @@ -27,11 +27,16 @@ #include "hb-aat-layout-common-private.hh" +/* + * ltag -- Language Tag + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ltag.html + */ #define HB_AAT_TAG_ltag HB_TAG('l','t','a','g') namespace AAT { + struct FTStringRange { inline bool sanitize (hb_sanitize_context_t *c, const void *base) const @@ -49,11 +54,6 @@ struct FTStringRange DEFINE_SIZE_STATIC (4); }; -/* - * ltag -- Language tags - * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6ltag.html - */ - struct ltag { static const hb_tag_t tableTag = HB_AAT_TAG_ltag; diff --git a/src/hb-ot-color-cbdt-table.hh b/src/hb-ot-color-cbdt-table.hh index 76893b0a..528d144a 100644 --- a/src/hb-ot-color-cbdt-table.hh +++ b/src/hb-ot-color-cbdt-table.hh @@ -29,6 +29,18 @@ #include "hb-open-type-private.hh" +/* + * CBLC -- Color Bitmap Location + * https://docs.microsoft.com/en-us/typography/opentype/spec/cblc + * https://docs.microsoft.com/en-us/typography/opentype/spec/eblc + * CBDT -- Color Bitmap Data + * https://docs.microsoft.com/en-us/typography/opentype/spec/cbdt + * https://docs.microsoft.com/en-us/typography/opentype/spec/ebdt + */ +#define HB_OT_TAG_CBLC HB_TAG('C','B','L','C') +#define HB_OT_TAG_CBDT HB_TAG('C','B','D','T') + + namespace OT { struct SmallGlyphMetrics @@ -322,13 +334,6 @@ struct GlyphBitmapDataFormat19 DEFINE_SIZE_ARRAY(4, data); }; - -/* - * CBLC -- Color Bitmap Location Table - */ - -#define HB_OT_TAG_CBLC HB_TAG('C','B','L','C') - struct CBLC { friend struct CBDT; @@ -372,11 +377,6 @@ struct CBLC DEFINE_SIZE_ARRAY(8, sizeTables); }; -/* - * CBDT -- Color Bitmap Data Table - */ -#define HB_OT_TAG_CBDT HB_TAG('C','B','D','T') - struct CBDT { static const hb_tag_t tableTag = HB_OT_TAG_CBDT; diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 5308b5a1..6e280a3d 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -28,12 +28,12 @@ #include "hb-open-type-private.hh" /* - * Color Palette - * http://www.microsoft.com/typography/otspec/colr.htm + * COLR -- Color + * https://docs.microsoft.com/en-us/typography/opentype/spec/colr */ - #define HB_OT_TAG_COLR HB_TAG('C','O','L','R') + namespace OT { diff --git a/src/hb-ot-color-cpal-table.hh b/src/hb-ot-color-cpal-table.hh index 0b69c6cb..cb98f7d6 100644 --- a/src/hb-ot-color-cpal-table.hh +++ b/src/hb-ot-color-cpal-table.hh @@ -79,12 +79,12 @@ typedef enum { /*< flags >*/ /* - * Color Palette - * http://www.microsoft.com/typography/otspec/cpal.htm + * CPAL -- Color Palette + * https://docs.microsoft.com/en-us/typography/opentype/spec/cpal */ - #define HB_OT_TAG_CPAL HB_TAG('C','P','A','L') + namespace OT { diff --git a/src/hb-ot-color-sbix-table.hh b/src/hb-ot-color-sbix-table.hh index 6c9b0052..7dea6140 100644 --- a/src/hb-ot-color-sbix-table.hh +++ b/src/hb-ot-color-sbix-table.hh @@ -27,8 +27,14 @@ #include "hb-open-type-private.hh" +/* + * sbix -- Standard Bitmap Graphics + * https://docs.microsoft.com/en-us/typography/opentype/spec/sbix + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6sbix.html + */ #define HB_OT_TAG_sbix HB_TAG('s','b','i','x') + namespace OT { @@ -76,11 +82,6 @@ struct SBIXStrike DEFINE_SIZE_STATIC (8); }; -/* - * sbix -- Standard Bitmap Graphics Table - * https://docs.microsoft.com/en-us/typography/opentype/spec/sbix - */ - struct sbix { static const hb_tag_t tableTag = HB_OT_TAG_sbix; diff --git a/src/hb-ot-color-svg-table.hh b/src/hb-ot-color-svg-table.hh index 139a012b..1357b788 100644 --- a/src/hb-ot-color-svg-table.hh +++ b/src/hb-ot-color-svg-table.hh @@ -28,12 +28,13 @@ #include "hb-open-type-private.hh" /* - * The SVG (Scalable Vector Graphics) table + * SVG -- SVG (Scalable Vector Graphics) * https://docs.microsoft.com/en-us/typography/opentype/spec/svg */ #define HB_OT_TAG_SVG HB_TAG('S','V','G',' ') + namespace OT { diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 4eb2ad18..3e8b5eb4 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -38,8 +38,8 @@ namespace OT { /* * loca -- Index to Location + * https://docs.microsoft.com/en-us/typography/opentype/spec/loca */ - #define HB_OT_TAG_loca HB_TAG('l','o','c','a') @@ -63,8 +63,8 @@ struct loca /* * glyf -- TrueType Glyph Data + * https://docs.microsoft.com/en-us/typography/opentype/spec/glyf */ - #define HB_OT_TAG_glyf HB_TAG('g','l','y','f') diff --git a/src/hb-ot-hdmx-table.hh b/src/hb-ot-hdmx-table.hh index c0b22b28..4ad78d2e 100644 --- a/src/hb-ot-hdmx-table.hh +++ b/src/hb-ot-hdmx-table.hh @@ -29,15 +29,16 @@ #include "hb-open-type-private.hh" -namespace OT { - - /* - * hdmx - Horizontal Device Metric + * hdmx -- Horizontal Device Metrics + * https://docs.microsoft.com/en-us/typography/opentype/spec/hdmx */ - #define HB_OT_TAG_hdmx HB_TAG('h','d','m','x') + +namespace OT { + + struct DeviceRecord { struct SubsetView diff --git a/src/hb-ot-head-table.hh b/src/hb-ot-head-table.hh index 1d458404..965e30a0 100644 --- a/src/hb-ot-head-table.hh +++ b/src/hb-ot-head-table.hh @@ -31,16 +31,16 @@ #include "hb-open-type-private.hh" - -namespace OT { - - /* * head -- Font Header + * https://docs.microsoft.com/en-us/typography/opentype/spec/head */ - #define HB_OT_TAG_head HB_TAG('h','e','a','d') + +namespace OT { + + struct head { friend struct OffsetTable; diff --git a/src/hb-ot-hhea-table.hh b/src/hb-ot-hhea-table.hh index 97952b4e..efb42b61 100644 --- a/src/hb-ot-hhea-table.hh +++ b/src/hb-ot-hhea-table.hh @@ -29,18 +29,19 @@ #include "hb-open-type-private.hh" - -namespace OT { - - /* - * hhea -- The Horizontal Header Table - * vhea -- The Vertical Header Table + * hhea -- Horizontal Header + * https://docs.microsoft.com/en-us/typography/opentype/spec/hhea + * vhea -- Vertical Header + * https://docs.microsoft.com/en-us/typography/opentype/spec/vhea */ - #define HB_OT_TAG_hhea HB_TAG('h','h','e','a') #define HB_OT_TAG_vhea HB_TAG('v','h','e','a') + +namespace OT { + + template struct _hea { diff --git a/src/hb-ot-hmtx-table.hh b/src/hb-ot-hmtx-table.hh index 2af9a5cc..bfc3e6a2 100644 --- a/src/hb-ot-hmtx-table.hh +++ b/src/hb-ot-hmtx-table.hh @@ -32,19 +32,19 @@ #include "hb-ot-os2-table.hh" #include "hb-ot-var-hvar-table.hh" - -namespace OT { - - /* - * hmtx -- The Horizontal Metrics Table - * vmtx -- The Vertical Metrics Table + * hmtx -- Horizontal Metrics + * https://docs.microsoft.com/en-us/typography/opentype/spec/hmtx + * vmtx -- Vertical Metrics + * https://docs.microsoft.com/en-us/typography/opentype/spec/vmtx */ - #define HB_OT_TAG_hmtx HB_TAG('h','m','t','x') #define HB_OT_TAG_vmtx HB_TAG('v','m','t','x') +namespace OT { + + struct LongMetric { UFWORD advance; /* Advance width/height. */ diff --git a/src/hb-ot-kern-table.hh b/src/hb-ot-kern-table.hh index 4d379eaa..ec331698 100644 --- a/src/hb-ot-kern-table.hh +++ b/src/hb-ot-kern-table.hh @@ -29,15 +29,17 @@ #include "hb-open-type-private.hh" -namespace OT { - - /* * kern -- Kerning + * https://docs.microsoft.com/en-us/typography/opentype/spec/kern + * https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6kern.html */ - #define HB_OT_TAG_kern HB_TAG('k','e','r','n') + +namespace OT { + + struct hb_glyph_pair_t { hb_codepoint_t left; diff --git a/src/hb-ot-layout-base-table.hh b/src/hb-ot-layout-base-table.hh index 20b8bd76..33dce890 100644 --- a/src/hb-ot-layout-base-table.hh +++ b/src/hb-ot-layout-base-table.hh @@ -36,7 +36,8 @@ namespace OT { #define NOT_INDEXED ((unsigned int) -1) /* - * BASE -- The BASE Table + * BASE -- Baseline + * https://docs.microsoft.com/en-us/typography/opentype/spec/base */ struct BaseCoordFormat1 diff --git a/src/hb-ot-layout-gdef-table.hh b/src/hb-ot-layout-gdef-table.hh index 2d6c66e6..60a8d3ad 100644 --- a/src/hb-ot-layout-gdef-table.hh +++ b/src/hb-ot-layout-gdef-table.hh @@ -333,7 +333,8 @@ struct MarkGlyphSets /* - * GDEF -- The Glyph Definition Table + * GDEF -- Glyph Definition + * https://docs.microsoft.com/en-us/typography/opentype/spec/gdef */ struct GDEF diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 46ffcc66..62517077 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1497,7 +1497,8 @@ struct PosLookup : Lookup typedef OffsetListOf PosLookupList; /* - * GPOS -- The Glyph Positioning Table + * GPOS -- Glyph Positioning + * https://docs.microsoft.com/en-us/typography/opentype/spec/gpos */ struct GPOS : GSUBGPOS diff --git a/src/hb-ot-layout-gsub-table.hh b/src/hb-ot-layout-gsub-table.hh index 5f67aed2..059f663d 100644 --- a/src/hb-ot-layout-gsub-table.hh +++ b/src/hb-ot-layout-gsub-table.hh @@ -1287,7 +1287,8 @@ struct SubstLookup : Lookup typedef OffsetListOf SubstLookupList; /* - * GSUB -- The Glyph Substitution Table + * GSUB -- Glyph Substitution + * https://docs.microsoft.com/en-us/typography/opentype/spec/gsub */ struct GSUB : GSUBGPOS diff --git a/src/hb-ot-layout-jstf-table.hh b/src/hb-ot-layout-jstf-table.hh index adbaad64..7fabdebb 100644 --- a/src/hb-ot-layout-jstf-table.hh +++ b/src/hb-ot-layout-jstf-table.hh @@ -189,7 +189,8 @@ struct JstfScript /* - * JSTF -- The Justification Table + * JSTF -- Justification + * https://docs.microsoft.com/en-us/typography/opentype/spec/jstf */ struct JSTF diff --git a/src/hb-ot-math-table.hh b/src/hb-ot-math-table.hh index 571ce01b..5fef2d28 100644 --- a/src/hb-ot-math-table.hh +++ b/src/hb-ot-math-table.hh @@ -678,7 +678,8 @@ struct MathVariants /* - * MATH -- The MATH Table + * MATH -- Mathematical typesetting + * https://docs.microsoft.com/en-us/typography/opentype/spec/math */ struct MATH diff --git a/src/hb-ot-maxp-table.hh b/src/hb-ot-maxp-table.hh index 881dedad..92720746 100644 --- a/src/hb-ot-maxp-table.hh +++ b/src/hb-ot-maxp-table.hh @@ -34,7 +34,8 @@ namespace OT { /* - * maxp -- The Maximum Profile Table + * maxp -- Maximum Profile + * https://docs.microsoft.com/en-us/typography/opentype/spec/maxp */ #define HB_OT_TAG_maxp HB_TAG('m','a','x','p') diff --git a/src/hb-ot-name-table.hh b/src/hb-ot-name-table.hh index eb013337..bff85df2 100644 --- a/src/hb-ot-name-table.hh +++ b/src/hb-ot-name-table.hh @@ -34,9 +34,9 @@ namespace OT { /* - * name -- The Naming Table + * name -- Naming + * https://docs.microsoft.com/en-us/typography/opentype/spec/name */ - #define HB_OT_TAG_name HB_TAG('n','a','m','e') diff --git a/src/hb-ot-os2-table.hh b/src/hb-ot-os2-table.hh index 6cb8d494..93c0fff2 100644 --- a/src/hb-ot-os2-table.hh +++ b/src/hb-ot-os2-table.hh @@ -34,9 +34,8 @@ namespace OT { /* * OS/2 and Windows Metrics - * http://www.microsoft.com/typography/otspec/os2.htm + * https://docs.microsoft.com/en-us/typography/opentype/spec/os2 */ - #define HB_OT_TAG_os2 HB_TAG('O','S','/','2') struct os2 diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index c5ad6654..12e4cc92 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -38,16 +38,16 @@ #define NUM_FORMAT1_NAMES 258 -namespace OT { - - /* * post -- PostScript + * https://docs.microsoft.com/en-us/typography/opentype/spec/post */ - #define HB_OT_TAG_post HB_TAG('p','o','s','t') +namespace OT { + + struct postV2Tail { inline bool sanitize (hb_sanitize_context_t *c) const diff --git a/src/hb-ot-var-avar-table.hh b/src/hb-ot-var-avar-table.hh index e305a67c..feaa525e 100644 --- a/src/hb-ot-var-avar-table.hh +++ b/src/hb-ot-var-avar-table.hh @@ -29,6 +29,14 @@ #include "hb-open-type-private.hh" +/* + * avar -- Axis Variations + * https://docs.microsoft.com/en-us/typography/opentype/spec/avar + */ + +#define HB_OT_TAG_avar HB_TAG('a','v','a','r') + + namespace OT { @@ -88,12 +96,6 @@ struct SegmentMaps : ArrayOf DEFINE_SIZE_ARRAY (2, array); }; -/* - * avar — Axis Variations Table - */ - -#define HB_OT_TAG_avar HB_TAG('a','v','a','r') - struct avar { static const hb_tag_t tableTag = HB_OT_TAG_avar; diff --git a/src/hb-ot-var-fvar-table.hh b/src/hb-ot-var-fvar-table.hh index 17ff0e51..82d29968 100644 --- a/src/hb-ot-var-fvar-table.hh +++ b/src/hb-ot-var-fvar-table.hh @@ -29,6 +29,14 @@ #include "hb-open-type-private.hh" +/* + * fvar -- Font Variations + * https://docs.microsoft.com/en-us/typography/opentype/spec/fvar + */ + +#define HB_OT_TAG_fvar HB_TAG('f','v','a','r') + + namespace OT { @@ -75,13 +83,6 @@ struct AxisRecord DEFINE_SIZE_STATIC (20); }; - -/* - * fvar — Font Variations Table - */ - -#define HB_OT_TAG_fvar HB_TAG('f','v','a','r') - struct fvar { static const hb_tag_t tableTag = HB_OT_TAG_fvar; diff --git a/src/hb-ot-var-hvar-table.hh b/src/hb-ot-var-hvar-table.hh index e20131b1..2b384db7 100644 --- a/src/hb-ot-var-hvar-table.hh +++ b/src/hb-ot-var-hvar-table.hh @@ -89,10 +89,11 @@ struct DeltaSetIndexMap /* - * HVAR -- The Horizontal Metrics Variations Table - * VVAR -- The Vertical Metrics Variations Table + * HVAR -- Horizontal Metrics Variations + * https://docs.microsoft.com/en-us/typography/opentype/spec/hvar + * VVAR -- Vertical Metrics Variations + * https://docs.microsoft.com/en-us/typography/opentype/spec/vvar */ - #define HB_OT_TAG_HVAR HB_TAG('H','V','A','R') #define HB_OT_TAG_VVAR HB_TAG('V','V','A','R') diff --git a/src/hb-ot-var-mvar-table.hh b/src/hb-ot-var-mvar-table.hh index e8357685..dfde782f 100644 --- a/src/hb-ot-var-mvar-table.hh +++ b/src/hb-ot-var-mvar-table.hh @@ -51,9 +51,9 @@ struct VariationValueRecord /* - * MVAR -- Metrics Variations Table + * MVAR -- Metrics Variations + * https://docs.microsoft.com/en-us/typography/opentype/spec/mvar */ - #define HB_OT_TAG_MVAR HB_TAG('M','V','A','R') struct MVAR -- GitLab