mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 00:32:59 +00:00
[cff] Fix the case of HB_OT_TAG_cff(1|2) macros
Should be upper case like other HB_OT_TAG_* macros of upper case tables.
This commit is contained in:
parent
8df5cdbcda
commit
b6516f3bbf
3 changed files with 8 additions and 8 deletions
|
@ -44,7 +44,7 @@ namespace CFF {
|
|||
* CFF -- Compact Font Format (CFF)
|
||||
* https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5176.CFF.pdf
|
||||
*/
|
||||
#define HB_OT_TAG_cff1 HB_TAG('C','F','F',' ')
|
||||
#define HB_OT_TAG_CFF1 HB_TAG('C','F','F',' ')
|
||||
|
||||
#define CFF_UNDEF_SID CFF_UNDEF_CODE
|
||||
|
||||
|
@ -1019,7 +1019,7 @@ using namespace CFF;
|
|||
|
||||
struct cff1
|
||||
{
|
||||
static constexpr hb_tag_t tableTag = HB_OT_TAG_cff1;
|
||||
static constexpr hb_tag_t tableTag = HB_OT_TAG_CFF1;
|
||||
|
||||
bool sanitize (hb_sanitize_context_t *c) const
|
||||
{
|
||||
|
|
|
@ -38,7 +38,7 @@ namespace CFF {
|
|||
* CFF2 -- Compact Font Format (CFF) Version 2
|
||||
* https://docs.microsoft.com/en-us/typography/opentype/spec/cff2
|
||||
*/
|
||||
#define HB_OT_TAG_cff2 HB_TAG('C','F','F','2')
|
||||
#define HB_OT_TAG_CFF2 HB_TAG('C','F','F','2')
|
||||
|
||||
typedef CFFIndex<HBUINT32> CFF2Index;
|
||||
template <typename Type> struct CFF2IndexOf : CFFIndexOf<HBUINT32, Type> {};
|
||||
|
@ -379,7 +379,7 @@ using namespace CFF;
|
|||
|
||||
struct cff2
|
||||
{
|
||||
static constexpr hb_tag_t tableTag = HB_OT_TAG_cff2;
|
||||
static constexpr hb_tag_t tableTag = HB_OT_TAG_CFF2;
|
||||
|
||||
bool sanitize (hb_sanitize_context_t *c) const
|
||||
{
|
||||
|
|
|
@ -96,8 +96,8 @@ static hb_tag_t known_tables[] {
|
|||
HB_OT_TAG_BASE,
|
||||
HB_OT_TAG_CBDT,
|
||||
HB_OT_TAG_CBLC,
|
||||
HB_OT_TAG_cff1,
|
||||
HB_OT_TAG_cff2,
|
||||
HB_OT_TAG_CFF1,
|
||||
HB_OT_TAG_CFF2,
|
||||
HB_OT_TAG_cmap,
|
||||
HB_OT_TAG_COLR,
|
||||
HB_OT_TAG_CPAL,
|
||||
|
@ -457,8 +457,8 @@ _subset_table (hb_subset_plan_t *plan,
|
|||
case HB_OT_TAG_MATH: return _subset<const OT::MATH> (plan, buf);
|
||||
|
||||
#ifndef HB_NO_SUBSET_CFF
|
||||
case HB_OT_TAG_cff1: return _subset<const OT::cff1> (plan, buf);
|
||||
case HB_OT_TAG_cff2: return _subset<const OT::cff2> (plan, buf);
|
||||
case HB_OT_TAG_CFF1: return _subset<const OT::cff1> (plan, buf);
|
||||
case HB_OT_TAG_CFF2: return _subset<const OT::cff2> (plan, buf);
|
||||
case HB_OT_TAG_VORG: return _subset<const OT::VORG> (plan, buf);
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue