< prev index next >

src/java.desktop/share/native/libfreetype/include/freetype/ttnameid.h

Print this page

        

*** 1,21 **** ! /***************************************************************************/ ! /* */ ! /* ttnameid.h */ ! /* */ ! /* TrueType name ID definitions (specification only). */ ! /* */ ! /* Copyright 1996-2018 by */ ! /* David Turner, Robert Wilhelm, and Werner Lemberg. */ ! /* */ ! /* This file is part of the FreeType project, and may only be used, */ ! /* modified, and distributed under the terms of the FreeType project */ ! /* license, LICENSE.TXT. By continuing to use, modify, or distribute */ ! /* this file you indicate that you have read the license and */ ! /* understand and accept it fully. */ ! /* */ ! /***************************************************************************/ #ifndef TTNAMEID_H_ #define TTNAMEID_H_ --- 1,21 ---- ! /**************************************************************************** ! * ! * ttnameid.h ! * ! * TrueType name ID definitions (specification only). ! * ! * Copyright (C) 1996-2019 by ! * David Turner, Robert Wilhelm, and Werner Lemberg. ! * ! * This file is part of the FreeType project, and may only be used, ! * modified, and distributed under the terms of the FreeType project ! * license, LICENSE.TXT. By continuing to use, modify, or distribute ! * this file you indicate that you have read the license and ! * understand and accept it fully. ! * ! */ #ifndef TTNAMEID_H_ #define TTNAMEID_H_
*** 24,80 **** FT_BEGIN_HEADER ! /*************************************************************************/ ! /* */ ! /* <Section> */ ! /* truetype_tables */ ! /* */ ! /*************************************************************************/ ! /* */ ! /* Possible values for the `platform' identifier code in the name */ ! /* records of an SFNT `name' table. */ ! /* */ ! /*************************************************************************/ ! /*********************************************************************** * * @enum: * TT_PLATFORM_XXX * * @description: ! * A list of valid values for the `platform_id' identifier code in * @FT_CharMapRec and @FT_SfntName structures. * * @values: * TT_PLATFORM_APPLE_UNICODE :: * Used by Apple to indicate a Unicode character map and/or name entry. ! * See @TT_APPLE_ID_XXX for corresponding `encoding_id' values. Note * that name entries in this format are coded as big-endian UCS-2 * character codes _only_. * * TT_PLATFORM_MACINTOSH :: ! * Used by Apple to indicate a MacOS-specific charmap and/or name entry. ! * See @TT_MAC_ID_XXX for corresponding `encoding_id' values. Note that ! * most TrueType fonts contain an Apple roman charmap to be usable on ! * MacOS systems (even if they contain a Microsoft charmap as well). * * TT_PLATFORM_ISO :: ! * This value was used to specify ISO/IEC 10646 charmaps. It is however ! * now deprecated. See @TT_ISO_ID_XXX for a list of corresponding ! * `encoding_id' values. * * TT_PLATFORM_MICROSOFT :: * Used by Microsoft to indicate Windows-specific charmaps. See ! * @TT_MS_ID_XXX for a list of corresponding `encoding_id' values. * Note that most fonts contain a Unicode charmap using ! * (TT_PLATFORM_MICROSOFT, @TT_MS_ID_UNICODE_CS). * * TT_PLATFORM_CUSTOM :: * Used to indicate application-specific charmaps. * * TT_PLATFORM_ADOBE :: --- 24,81 ---- FT_BEGIN_HEADER ! /************************************************************************** ! * ! * @section: ! * truetype_tables ! */ ! /************************************************************************** ! * ! * Possible values for the 'platform' identifier code in the name records ! * of an SFNT 'name' table. ! * ! */ ! /************************************************************************** * * @enum: * TT_PLATFORM_XXX * * @description: ! * A list of valid values for the `platform_id` identifier code in * @FT_CharMapRec and @FT_SfntName structures. * * @values: * TT_PLATFORM_APPLE_UNICODE :: * Used by Apple to indicate a Unicode character map and/or name entry. ! * See @TT_APPLE_ID_XXX for corresponding `encoding_id` values. Note * that name entries in this format are coded as big-endian UCS-2 * character codes _only_. * * TT_PLATFORM_MACINTOSH :: ! * Used by Apple to indicate a MacOS-specific charmap and/or name ! * entry. See @TT_MAC_ID_XXX for corresponding `encoding_id` values. ! * Note that most TrueType fonts contain an Apple roman charmap to be ! * usable on MacOS systems (even if they contain a Microsoft charmap as ! * well). * * TT_PLATFORM_ISO :: ! * This value was used to specify ISO/IEC 10646 charmaps. It is ! * however now deprecated. See @TT_ISO_ID_XXX for a list of ! * corresponding `encoding_id` values. * * TT_PLATFORM_MICROSOFT :: * Used by Microsoft to indicate Windows-specific charmaps. See ! * @TT_MS_ID_XXX for a list of corresponding `encoding_id` values. * Note that most fonts contain a Unicode charmap using ! * (`TT_PLATFORM_MICROSOFT`, @TT_MS_ID_UNICODE_CS). * * TT_PLATFORM_CUSTOM :: * Used to indicate application-specific charmaps. * * TT_PLATFORM_ADOBE ::
*** 89,105 **** #define TT_PLATFORM_MICROSOFT 3 #define TT_PLATFORM_CUSTOM 4 #define TT_PLATFORM_ADOBE 7 /* artificial */ ! /*********************************************************************** * * @enum: * TT_APPLE_ID_XXX * * @description: ! * A list of valid values for the `encoding_id' for * @TT_PLATFORM_APPLE_UNICODE charmaps and name entries. * * @values: * TT_APPLE_ID_DEFAULT :: * Unicode version 1.0. --- 90,106 ---- #define TT_PLATFORM_MICROSOFT 3 #define TT_PLATFORM_CUSTOM 4 #define TT_PLATFORM_ADOBE 7 /* artificial */ ! /************************************************************************** * * @enum: * TT_APPLE_ID_XXX * * @description: ! * A list of valid values for the `encoding_id` for * @TT_PLATFORM_APPLE_UNICODE charmaps and name entries. * * @values: * TT_APPLE_ID_DEFAULT :: * Unicode version 1.0.
*** 115,126 **** * * TT_APPLE_ID_UNICODE_32 :: * Unicode 3.1 and beyond, using UTF-32. * * TT_APPLE_ID_VARIANT_SELECTOR :: ! * From Adobe, not Apple. Not a normal cmap. Specifies variations ! * on a real cmap. * * TT_APPLE_ID_FULL_UNICODE :: * Used for fallback fonts that provide complete Unicode coverage with * a type~13 cmap. */ --- 116,127 ---- * * TT_APPLE_ID_UNICODE_32 :: * Unicode 3.1 and beyond, using UTF-32. * * TT_APPLE_ID_VARIANT_SELECTOR :: ! * From Adobe, not Apple. Not a normal cmap. Specifies variations on ! * a real cmap. * * TT_APPLE_ID_FULL_UNICODE :: * Used for fallback fonts that provide complete Unicode coverage with * a type~13 cmap. */
*** 132,148 **** #define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */ #define TT_APPLE_ID_VARIANT_SELECTOR 5 /* variation selector data */ #define TT_APPLE_ID_FULL_UNICODE 6 /* used with type 13 cmaps */ ! /*********************************************************************** * * @enum: * TT_MAC_ID_XXX * * @description: ! * A list of valid values for the `encoding_id' for * @TT_PLATFORM_MACINTOSH charmaps and name entries. */ #define TT_MAC_ID_ROMAN 0 #define TT_MAC_ID_JAPANESE 1 --- 133,149 ---- #define TT_APPLE_ID_UNICODE_32 4 /* 2.0 or later, full repertoire */ #define TT_APPLE_ID_VARIANT_SELECTOR 5 /* variation selector data */ #define TT_APPLE_ID_FULL_UNICODE 6 /* used with type 13 cmaps */ ! /************************************************************************** * * @enum: * TT_MAC_ID_XXX * * @description: ! * A list of valid values for the `encoding_id` for * @TT_PLATFORM_MACINTOSH charmaps and name entries. */ #define TT_MAC_ID_ROMAN 0 #define TT_MAC_ID_JAPANESE 1
*** 178,195 **** #define TT_MAC_ID_VIETNAMESE 30 #define TT_MAC_ID_SINDHI 31 #define TT_MAC_ID_UNINTERP 32 ! /*********************************************************************** * * @enum: * TT_ISO_ID_XXX * * @description: ! * A list of valid values for the `encoding_id' for ! * @TT_PLATFORM_ISO charmaps and name entries. * * Their use is now deprecated. * * @values: * TT_ISO_ID_7BIT_ASCII :: --- 179,196 ---- #define TT_MAC_ID_VIETNAMESE 30 #define TT_MAC_ID_SINDHI 31 #define TT_MAC_ID_UNINTERP 32 ! /************************************************************************** * * @enum: * TT_ISO_ID_XXX * * @description: ! * A list of valid values for the `encoding_id` for @TT_PLATFORM_ISO ! * charmaps and name entries. * * Their use is now deprecated. * * @values: * TT_ISO_ID_7BIT_ASCII ::
*** 203,236 **** #define TT_ISO_ID_7BIT_ASCII 0 #define TT_ISO_ID_10646 1 #define TT_ISO_ID_8859_1 2 ! /*********************************************************************** * * @enum: * TT_MS_ID_XXX * * @description: ! * A list of valid values for the `encoding_id' for * @TT_PLATFORM_MICROSOFT charmaps and name entries. * * @values: * TT_MS_ID_SYMBOL_CS :: * Microsoft symbol encoding. See @FT_ENCODING_MS_SYMBOL. * * TT_MS_ID_UNICODE_CS :: ! * Microsoft WGL4 charmap, matching Unicode. See ! * @FT_ENCODING_UNICODE. * * TT_MS_ID_SJIS :: * Shift JIS Japanese encoding. See @FT_ENCODING_SJIS. * * TT_MS_ID_PRC :: * Chinese encodings as used in the People's Republic of China (PRC). ! * This means the encodings GB~2312 and its supersets GBK and ! * GB~18030. See @FT_ENCODING_PRC. * * TT_MS_ID_BIG_5 :: * Traditional Chinese as used in Taiwan and Hong Kong. See * @FT_ENCODING_BIG5. * --- 204,236 ---- #define TT_ISO_ID_7BIT_ASCII 0 #define TT_ISO_ID_10646 1 #define TT_ISO_ID_8859_1 2 ! /************************************************************************** * * @enum: * TT_MS_ID_XXX * * @description: ! * A list of valid values for the `encoding_id` for * @TT_PLATFORM_MICROSOFT charmaps and name entries. * * @values: * TT_MS_ID_SYMBOL_CS :: * Microsoft symbol encoding. See @FT_ENCODING_MS_SYMBOL. * * TT_MS_ID_UNICODE_CS :: ! * Microsoft WGL4 charmap, matching Unicode. See @FT_ENCODING_UNICODE. * * TT_MS_ID_SJIS :: * Shift JIS Japanese encoding. See @FT_ENCODING_SJIS. * * TT_MS_ID_PRC :: * Chinese encodings as used in the People's Republic of China (PRC). ! * This means the encodings GB~2312 and its supersets GBK and GB~18030. ! * See @FT_ENCODING_PRC. * * TT_MS_ID_BIG_5 :: * Traditional Chinese as used in Taiwan and Hong Kong. See * @FT_ENCODING_BIG5. *
*** 256,273 **** /* this value is deprecated */ #define TT_MS_ID_GB2312 TT_MS_ID_PRC ! /*********************************************************************** * * @enum: * TT_ADOBE_ID_XXX * * @description: ! * A list of valid values for the `encoding_id' for ! * @TT_PLATFORM_ADOBE charmaps. This is a FreeType-specific extension! * * @values: * TT_ADOBE_ID_STANDARD :: * Adobe standard encoding. * TT_ADOBE_ID_EXPERT :: --- 256,273 ---- /* this value is deprecated */ #define TT_MS_ID_GB2312 TT_MS_ID_PRC ! /************************************************************************** * * @enum: * TT_ADOBE_ID_XXX * * @description: ! * A list of valid values for the `encoding_id` for @TT_PLATFORM_ADOBE ! * charmaps. This is a FreeType-specific extension! * * @values: * TT_ADOBE_ID_STANDARD :: * Adobe standard encoding. * TT_ADOBE_ID_EXPERT ::
*** 282,299 **** #define TT_ADOBE_ID_EXPERT 1 #define TT_ADOBE_ID_CUSTOM 2 #define TT_ADOBE_ID_LATIN_1 3 ! /*********************************************************************** * * @enum: * TT_MAC_LANGID_XXX * * @description: * Possible values of the language identifier field in the name records ! * of the SFNT `name' table if the `platform' identifier code is * @TT_PLATFORM_MACINTOSH. These values are also used as return values * for function @FT_Get_CMap_Language_ID. * * The canonical source for Apple's IDs is * --- 282,299 ---- #define TT_ADOBE_ID_EXPERT 1 #define TT_ADOBE_ID_CUSTOM 2 #define TT_ADOBE_ID_LATIN_1 3 ! /************************************************************************** * * @enum: * TT_MAC_LANGID_XXX * * @description: * Possible values of the language identifier field in the name records ! * of the SFNT 'name' table if the 'platform' identifier code is * @TT_PLATFORM_MACINTOSH. These values are also used as return values * for function @FT_Get_CMap_Language_ID. * * The canonical source for Apple's IDs is *
*** 422,449 **** #define TT_MAC_LANGID_GREEK_POLYTONIC 148 #define TT_MAC_LANGID_GREELANDIC 149 #define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150 ! /*********************************************************************** * * @enum: * TT_MS_LANGID_XXX * * @description: * Possible values of the language identifier field in the name records ! * of the SFNT `name' table if the `platform' identifier code is * @TT_PLATFORM_MICROSOFT. These values are also used as return values * for function @FT_Get_CMap_Language_ID. * * The canonical source for Microsoft's IDs is * ! * https://www.microsoft.com/globaldev/reference/lcid-all.mspx , * * however, we only provide macros for language identifiers present in * the OpenType specification: Microsoft has abandoned the concept of ! * LCIDs (language code identifiers), and format~1 of the `name' table * provides a better mechanism for languages not covered here. * * More legacy values not listed in the reference can be found in the * @FT_TRUETYPE_IDS_H header file. */ --- 422,449 ---- #define TT_MAC_LANGID_GREEK_POLYTONIC 148 #define TT_MAC_LANGID_GREELANDIC 149 #define TT_MAC_LANGID_AZERBAIJANI_ROMAN_SCRIPT 150 ! /************************************************************************** * * @enum: * TT_MS_LANGID_XXX * * @description: * Possible values of the language identifier field in the name records ! * of the SFNT 'name' table if the 'platform' identifier code is * @TT_PLATFORM_MICROSOFT. These values are also used as return values * for function @FT_Get_CMap_Language_ID. * * The canonical source for Microsoft's IDs is * ! * https://docs.microsoft.com/en-us/windows/desktop/Intl/language-identifier-constants-and-strings , * * however, we only provide macros for language identifiers present in * the OpenType specification: Microsoft has abandoned the concept of ! * LCIDs (language code identifiers), and format~1 of the 'name' table * provides a better mechanism for languages not covered here. * * More legacy values not listed in the reference can be found in the * @FT_TRUETYPE_IDS_H header file. */
*** 778,795 **** #define TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES 0x0479 #define TT_MS_LANGID_UIGHUR_CHINA \ TT_MS_LANGID_UIGHUR_PRC ! /*********************************************************************** * * @enum: * TT_NAME_ID_XXX * * @description: ! * Possible values of the `name' identifier field in the name records of ! * an SFNT `name' table. These values are platform independent. */ #define TT_NAME_ID_COPYRIGHT 0 #define TT_NAME_ID_FONT_FAMILY 1 #define TT_NAME_ID_FONT_SUBFAMILY 2 --- 778,795 ---- #define TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES 0x0479 #define TT_MS_LANGID_UIGHUR_CHINA \ TT_MS_LANGID_UIGHUR_PRC ! /************************************************************************** * * @enum: * TT_NAME_ID_XXX * * @description: ! * Possible values of the 'name' identifier field in the name records of ! * an SFNT 'name' table. These values are platform independent. */ #define TT_NAME_ID_COPYRIGHT 0 #define TT_NAME_ID_FONT_FAMILY 1 #define TT_NAME_ID_FONT_SUBFAMILY 2
*** 832,849 **** /* these two values are deprecated */ #define TT_NAME_ID_PREFERRED_FAMILY TT_NAME_ID_TYPOGRAPHIC_FAMILY #define TT_NAME_ID_PREFERRED_SUBFAMILY TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY ! /*********************************************************************** * * @enum: * TT_UCR_XXX * * @description: ! * Possible bit mask values for the `ulUnicodeRangeX' fields in an SFNT ! * `OS/2' table. */ /* ulUnicodeRange1 */ /* --------------- */ --- 832,849 ---- /* these two values are deprecated */ #define TT_NAME_ID_PREFERRED_FAMILY TT_NAME_ID_TYPOGRAPHIC_FAMILY #define TT_NAME_ID_PREFERRED_SUBFAMILY TT_NAME_ID_TYPOGRAPHIC_SUBFAMILY ! /************************************************************************** * * @enum: * TT_UCR_XXX * * @description: ! * Possible bit mask values for the `ulUnicodeRangeX` fields in an SFNT ! * 'OS/2' table. */ /* ulUnicodeRange1 */ /* --------------- */
< prev index next >