提交 a02c3ee7 编写于 作者: E Ebrahim Byagowi

Add or update tables specifications links

上级 b799fc80
......@@ -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;
......
......@@ -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
{
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
......@@ -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')
......
......@@ -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')
......
......@@ -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')
......
......@@ -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;
......
......@@ -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;
......
......@@ -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 {
......
......@@ -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 {
......
......@@ -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;
......
......@@ -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 {
......
......@@ -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')
......
......@@ -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
......
......@@ -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;
......
......@@ -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 <typename T>
struct _hea
{
......
......@@ -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. */
......
......@@ -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;
......
......@@ -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
......
......@@ -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
......
......@@ -1497,7 +1497,8 @@ struct PosLookup : Lookup
typedef OffsetListOf<PosLookup> PosLookupList;
/*
* GPOS -- The Glyph Positioning Table
* GPOS -- Glyph Positioning
* https://docs.microsoft.com/en-us/typography/opentype/spec/gpos
*/
struct GPOS : GSUBGPOS
......
......@@ -1287,7 +1287,8 @@ struct SubstLookup : Lookup
typedef OffsetListOf<SubstLookup> SubstLookupList;
/*
* GSUB -- The Glyph Substitution Table
* GSUB -- Glyph Substitution
* https://docs.microsoft.com/en-us/typography/opentype/spec/gsub
*/
struct GSUB : GSUBGPOS
......
......@@ -189,7 +189,8 @@ struct JstfScript
/*
* JSTF -- The Justification Table
* JSTF -- Justification
* https://docs.microsoft.com/en-us/typography/opentype/spec/jstf
*/
struct JSTF
......
......@@ -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
......
......@@ -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')
......
......@@ -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')
......
......@@ -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
......
......@@ -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
......
......@@ -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<AxisValueMap>
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;
......
......@@ -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;
......
......@@ -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')
......
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册