forked from minhngoc25a/freetype2
Uppercase all hex digits for orthogonality.
This commit is contained in:
parent
9870d6dacf
commit
0098d5502d
|
@ -5,7 +5,7 @@
|
|||
/* FreeType API for color filtering of subpixel bitmap glyphs */
|
||||
/* (specification). */
|
||||
/* */
|
||||
/* Copyright 2006-2008, 2010, 2013 by */
|
||||
/* Copyright 2006-2008, 2010, 2013, 2014 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -56,7 +56,7 @@ FT_BEGIN_HEADER
|
|||
*
|
||||
* FreeType generates alpha coverage maps, which are linear by nature.
|
||||
* For instance, the value 0x80 in bitmap representation means that
|
||||
* (within numerical precision) 0x80/0xff fraction of that pixel is
|
||||
* (within numerical precision) 0x80/0xFF fraction of that pixel is
|
||||
* covered by the glyph's outline. The blending function for placing
|
||||
* text over a background is
|
||||
*
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/* */
|
||||
/* TrueType name ID definitions (specification only). */
|
||||
/* */
|
||||
/* Copyright 1996-2004, 2006-2008, 2012, 2013 by */
|
||||
/* Copyright 1996-2004, 2006-2008, 2012-2014 by */
|
||||
/* David Turner, Robert Wilhelm, and Werner Lemberg. */
|
||||
/* */
|
||||
/* This file is part of the FreeType project, and may only be used, */
|
||||
|
@ -470,26 +470,26 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_ARABIC_GENERAL 0x0001
|
||||
#define TT_MS_LANGID_ARABIC_SAUDI_ARABIA 0x0401
|
||||
#define TT_MS_LANGID_ARABIC_IRAQ 0x0801
|
||||
#define TT_MS_LANGID_ARABIC_EGYPT 0x0c01
|
||||
#define TT_MS_LANGID_ARABIC_EGYPT 0x0C01
|
||||
#define TT_MS_LANGID_ARABIC_LIBYA 0x1001
|
||||
#define TT_MS_LANGID_ARABIC_ALGERIA 0x1401
|
||||
#define TT_MS_LANGID_ARABIC_MOROCCO 0x1801
|
||||
#define TT_MS_LANGID_ARABIC_TUNISIA 0x1c01
|
||||
#define TT_MS_LANGID_ARABIC_TUNISIA 0x1C01
|
||||
#define TT_MS_LANGID_ARABIC_OMAN 0x2001
|
||||
#define TT_MS_LANGID_ARABIC_YEMEN 0x2401
|
||||
#define TT_MS_LANGID_ARABIC_SYRIA 0x2801
|
||||
#define TT_MS_LANGID_ARABIC_JORDAN 0x2c01
|
||||
#define TT_MS_LANGID_ARABIC_JORDAN 0x2C01
|
||||
#define TT_MS_LANGID_ARABIC_LEBANON 0x3001
|
||||
#define TT_MS_LANGID_ARABIC_KUWAIT 0x3401
|
||||
#define TT_MS_LANGID_ARABIC_UAE 0x3801
|
||||
#define TT_MS_LANGID_ARABIC_BAHRAIN 0x3c01
|
||||
#define TT_MS_LANGID_ARABIC_BAHRAIN 0x3C01
|
||||
#define TT_MS_LANGID_ARABIC_QATAR 0x4001
|
||||
#define TT_MS_LANGID_BULGARIAN_BULGARIA 0x0402
|
||||
#define TT_MS_LANGID_CATALAN_SPAIN 0x0403
|
||||
#define TT_MS_LANGID_CHINESE_GENERAL 0x0004
|
||||
#define TT_MS_LANGID_CHINESE_TAIWAN 0x0404
|
||||
#define TT_MS_LANGID_CHINESE_PRC 0x0804
|
||||
#define TT_MS_LANGID_CHINESE_HONG_KONG 0x0c04
|
||||
#define TT_MS_LANGID_CHINESE_HONG_KONG 0x0C04
|
||||
#define TT_MS_LANGID_CHINESE_SINGAPORE 0x1004
|
||||
|
||||
#if 1 /* this looks like the correct value */
|
||||
|
@ -507,7 +507,7 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_DANISH_DENMARK 0x0406
|
||||
#define TT_MS_LANGID_GERMAN_GERMANY 0x0407
|
||||
#define TT_MS_LANGID_GERMAN_SWITZERLAND 0x0807
|
||||
#define TT_MS_LANGID_GERMAN_AUSTRIA 0x0c07
|
||||
#define TT_MS_LANGID_GERMAN_AUSTRIA 0x0C07
|
||||
#define TT_MS_LANGID_GERMAN_LUXEMBOURG 0x1007
|
||||
#define TT_MS_LANGID_GERMAN_LIECHTENSTEI 0x1407
|
||||
#define TT_MS_LANGID_GREEK_GREECE 0x0408
|
||||
|
@ -520,69 +520,69 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_ENGLISH_GENERAL 0x0009
|
||||
#define TT_MS_LANGID_ENGLISH_UNITED_STATES 0x0409
|
||||
#define TT_MS_LANGID_ENGLISH_UNITED_KINGDOM 0x0809
|
||||
#define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0c09
|
||||
#define TT_MS_LANGID_ENGLISH_AUSTRALIA 0x0C09
|
||||
#define TT_MS_LANGID_ENGLISH_CANADA 0x1009
|
||||
#define TT_MS_LANGID_ENGLISH_NEW_ZEALAND 0x1409
|
||||
#define TT_MS_LANGID_ENGLISH_IRELAND 0x1809
|
||||
#define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1c09
|
||||
#define TT_MS_LANGID_ENGLISH_SOUTH_AFRICA 0x1C09
|
||||
#define TT_MS_LANGID_ENGLISH_JAMAICA 0x2009
|
||||
#define TT_MS_LANGID_ENGLISH_CARIBBEAN 0x2409
|
||||
#define TT_MS_LANGID_ENGLISH_BELIZE 0x2809
|
||||
#define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2c09
|
||||
#define TT_MS_LANGID_ENGLISH_TRINIDAD 0x2C09
|
||||
#define TT_MS_LANGID_ENGLISH_ZIMBABWE 0x3009
|
||||
#define TT_MS_LANGID_ENGLISH_PHILIPPINES 0x3409
|
||||
#define TT_MS_LANGID_ENGLISH_INDONESIA 0x3809
|
||||
#define TT_MS_LANGID_ENGLISH_HONG_KONG 0x3c09
|
||||
#define TT_MS_LANGID_ENGLISH_HONG_KONG 0x3C09
|
||||
#define TT_MS_LANGID_ENGLISH_INDIA 0x4009
|
||||
#define TT_MS_LANGID_ENGLISH_MALAYSIA 0x4409
|
||||
#define TT_MS_LANGID_ENGLISH_SINGAPORE 0x4809
|
||||
#define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040a
|
||||
#define TT_MS_LANGID_SPANISH_MEXICO 0x080a
|
||||
#define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT 0x0c0a
|
||||
#define TT_MS_LANGID_SPANISH_GUATEMALA 0x100a
|
||||
#define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140a
|
||||
#define TT_MS_LANGID_SPANISH_PANAMA 0x180a
|
||||
#define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1c0a
|
||||
#define TT_MS_LANGID_SPANISH_VENEZUELA 0x200a
|
||||
#define TT_MS_LANGID_SPANISH_COLOMBIA 0x240a
|
||||
#define TT_MS_LANGID_SPANISH_PERU 0x280a
|
||||
#define TT_MS_LANGID_SPANISH_ARGENTINA 0x2c0a
|
||||
#define TT_MS_LANGID_SPANISH_ECUADOR 0x300a
|
||||
#define TT_MS_LANGID_SPANISH_CHILE 0x340a
|
||||
#define TT_MS_LANGID_SPANISH_URUGUAY 0x380a
|
||||
#define TT_MS_LANGID_SPANISH_PARAGUAY 0x3c0a
|
||||
#define TT_MS_LANGID_SPANISH_BOLIVIA 0x400a
|
||||
#define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440a
|
||||
#define TT_MS_LANGID_SPANISH_HONDURAS 0x480a
|
||||
#define TT_MS_LANGID_SPANISH_NICARAGUA 0x4c0a
|
||||
#define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500a
|
||||
#define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540a
|
||||
#define TT_MS_LANGID_SPANISH_SPAIN_TRADITIONAL_SORT 0x040A
|
||||
#define TT_MS_LANGID_SPANISH_MEXICO 0x080A
|
||||
#define TT_MS_LANGID_SPANISH_SPAIN_INTERNATIONAL_SORT 0x0C0A
|
||||
#define TT_MS_LANGID_SPANISH_GUATEMALA 0x100A
|
||||
#define TT_MS_LANGID_SPANISH_COSTA_RICA 0x140A
|
||||
#define TT_MS_LANGID_SPANISH_PANAMA 0x180A
|
||||
#define TT_MS_LANGID_SPANISH_DOMINICAN_REPUBLIC 0x1C0A
|
||||
#define TT_MS_LANGID_SPANISH_VENEZUELA 0x200A
|
||||
#define TT_MS_LANGID_SPANISH_COLOMBIA 0x240A
|
||||
#define TT_MS_LANGID_SPANISH_PERU 0x280A
|
||||
#define TT_MS_LANGID_SPANISH_ARGENTINA 0x2C0A
|
||||
#define TT_MS_LANGID_SPANISH_ECUADOR 0x300A
|
||||
#define TT_MS_LANGID_SPANISH_CHILE 0x340A
|
||||
#define TT_MS_LANGID_SPANISH_URUGUAY 0x380A
|
||||
#define TT_MS_LANGID_SPANISH_PARAGUAY 0x3C0A
|
||||
#define TT_MS_LANGID_SPANISH_BOLIVIA 0x400A
|
||||
#define TT_MS_LANGID_SPANISH_EL_SALVADOR 0x440A
|
||||
#define TT_MS_LANGID_SPANISH_HONDURAS 0x480A
|
||||
#define TT_MS_LANGID_SPANISH_NICARAGUA 0x4C0A
|
||||
#define TT_MS_LANGID_SPANISH_PUERTO_RICO 0x500A
|
||||
#define TT_MS_LANGID_SPANISH_UNITED_STATES 0x540A
|
||||
/* The following ID blatantly violate MS specs by using a */
|
||||
/* sublanguage > 0x1F. */
|
||||
#define TT_MS_LANGID_SPANISH_LATIN_AMERICA 0xE40aU
|
||||
#define TT_MS_LANGID_FINNISH_FINLAND 0x040b
|
||||
#define TT_MS_LANGID_FRENCH_FRANCE 0x040c
|
||||
#define TT_MS_LANGID_FRENCH_BELGIUM 0x080c
|
||||
#define TT_MS_LANGID_FRENCH_CANADA 0x0c0c
|
||||
#define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100c
|
||||
#define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140c
|
||||
#define TT_MS_LANGID_FRENCH_MONACO 0x180c
|
||||
#define TT_MS_LANGID_FRENCH_WEST_INDIES 0x1c0c
|
||||
#define TT_MS_LANGID_FRENCH_REUNION 0x200c
|
||||
#define TT_MS_LANGID_FRENCH_CONGO 0x240c
|
||||
#define TT_MS_LANGID_SPANISH_LATIN_AMERICA 0xE40AU
|
||||
#define TT_MS_LANGID_FINNISH_FINLAND 0x040B
|
||||
#define TT_MS_LANGID_FRENCH_FRANCE 0x040C
|
||||
#define TT_MS_LANGID_FRENCH_BELGIUM 0x080C
|
||||
#define TT_MS_LANGID_FRENCH_CANADA 0x0C0C
|
||||
#define TT_MS_LANGID_FRENCH_SWITZERLAND 0x100C
|
||||
#define TT_MS_LANGID_FRENCH_LUXEMBOURG 0x140C
|
||||
#define TT_MS_LANGID_FRENCH_MONACO 0x180C
|
||||
#define TT_MS_LANGID_FRENCH_WEST_INDIES 0x1C0C
|
||||
#define TT_MS_LANGID_FRENCH_REUNION 0x200C
|
||||
#define TT_MS_LANGID_FRENCH_CONGO 0x240C
|
||||
/* which was formerly: */
|
||||
#define TT_MS_LANGID_FRENCH_ZAIRE TT_MS_LANGID_FRENCH_CONGO
|
||||
#define TT_MS_LANGID_FRENCH_SENEGAL 0x280c
|
||||
#define TT_MS_LANGID_FRENCH_CAMEROON 0x2c0c
|
||||
#define TT_MS_LANGID_FRENCH_COTE_D_IVOIRE 0x300c
|
||||
#define TT_MS_LANGID_FRENCH_MALI 0x340c
|
||||
#define TT_MS_LANGID_FRENCH_MOROCCO 0x380c
|
||||
#define TT_MS_LANGID_FRENCH_HAITI 0x3c0c
|
||||
/* and another violation of the spec (see 0xE40aU) */
|
||||
#define TT_MS_LANGID_FRENCH_NORTH_AFRICA 0xE40cU
|
||||
#define TT_MS_LANGID_HEBREW_ISRAEL 0x040d
|
||||
#define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040e
|
||||
#define TT_MS_LANGID_ICELANDIC_ICELAND 0x040f
|
||||
#define TT_MS_LANGID_FRENCH_SENEGAL 0x280C
|
||||
#define TT_MS_LANGID_FRENCH_CAMEROON 0x2C0C
|
||||
#define TT_MS_LANGID_FRENCH_COTE_D_IVOIRE 0x300C
|
||||
#define TT_MS_LANGID_FRENCH_MALI 0x340C
|
||||
#define TT_MS_LANGID_FRENCH_MOROCCO 0x380C
|
||||
#define TT_MS_LANGID_FRENCH_HAITI 0x3C0C
|
||||
/* and another violation of the spec (see 0xE40AU) */
|
||||
#define TT_MS_LANGID_FRENCH_NORTH_AFRICA 0xE40CU
|
||||
#define TT_MS_LANGID_HEBREW_ISRAEL 0x040D
|
||||
#define TT_MS_LANGID_HUNGARIAN_HUNGARY 0x040E
|
||||
#define TT_MS_LANGID_ICELANDIC_ICELAND 0x040F
|
||||
#define TT_MS_LANGID_ITALIAN_ITALY 0x0410
|
||||
#define TT_MS_LANGID_ITALIAN_SWITZERLAND 0x0810
|
||||
#define TT_MS_LANGID_JAPANESE_JAPAN 0x0411
|
||||
|
@ -600,27 +600,27 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_MOLDAVIAN_MOLDAVIA 0x0818
|
||||
#define TT_MS_LANGID_RUSSIAN_RUSSIA 0x0419
|
||||
#define TT_MS_LANGID_RUSSIAN_MOLDAVIA 0x0819
|
||||
#define TT_MS_LANGID_CROATIAN_CROATIA 0x041a
|
||||
#define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081a
|
||||
#define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0c1a
|
||||
#define TT_MS_LANGID_CROATIAN_CROATIA 0x041A
|
||||
#define TT_MS_LANGID_SERBIAN_SERBIA_LATIN 0x081A
|
||||
#define TT_MS_LANGID_SERBIAN_SERBIA_CYRILLIC 0x0C1A
|
||||
|
||||
#if 0 /* this used to be this value, but it looks like we were wrong */
|
||||
#define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x101a
|
||||
#define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x101A
|
||||
#else /* current sources say */
|
||||
#define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101a
|
||||
#define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141a
|
||||
#define TT_MS_LANGID_CROATIAN_BOSNIA_HERZEGOVINA 0x101A
|
||||
#define TT_MS_LANGID_BOSNIAN_BOSNIA_HERZEGOVINA 0x141A
|
||||
/* and XPsp2 Platform SDK added (2004-07-26) */
|
||||
/* Names are shortened to be significant within 40 chars. */
|
||||
#define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181a
|
||||
#define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x181a
|
||||
#define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_LATIN 0x181A
|
||||
#define TT_MS_LANGID_SERBIAN_BOSNIA_HERZ_CYRILLIC 0x181A
|
||||
#endif
|
||||
|
||||
#define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041b
|
||||
#define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041c
|
||||
#define TT_MS_LANGID_SWEDISH_SWEDEN 0x041d
|
||||
#define TT_MS_LANGID_SWEDISH_FINLAND 0x081d
|
||||
#define TT_MS_LANGID_THAI_THAILAND 0x041e
|
||||
#define TT_MS_LANGID_TURKISH_TURKEY 0x041f
|
||||
#define TT_MS_LANGID_SLOVAK_SLOVAKIA 0x041B
|
||||
#define TT_MS_LANGID_ALBANIAN_ALBANIA 0x041C
|
||||
#define TT_MS_LANGID_SWEDISH_SWEDEN 0x041D
|
||||
#define TT_MS_LANGID_SWEDISH_FINLAND 0x081D
|
||||
#define TT_MS_LANGID_THAI_THAILAND 0x041E
|
||||
#define TT_MS_LANGID_TURKISH_TURKEY 0x041F
|
||||
#define TT_MS_LANGID_URDU_PAKISTAN 0x0420
|
||||
#define TT_MS_LANGID_URDU_INDIA 0x0820
|
||||
#define TT_MS_LANGID_INDONESIAN_INDONESIA 0x0421
|
||||
|
@ -633,13 +633,13 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_CLASSIC_LITHUANIAN_LITHUANIA 0x0827
|
||||
#define TT_MS_LANGID_TAJIK_TAJIKISTAN 0x0428
|
||||
#define TT_MS_LANGID_FARSI_IRAN 0x0429
|
||||
#define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042a
|
||||
#define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042b
|
||||
#define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042c
|
||||
#define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082c
|
||||
#define TT_MS_LANGID_BASQUE_SPAIN 0x042d
|
||||
#define TT_MS_LANGID_SORBIAN_GERMANY 0x042e
|
||||
#define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042f
|
||||
#define TT_MS_LANGID_VIETNAMESE_VIET_NAM 0x042A
|
||||
#define TT_MS_LANGID_ARMENIAN_ARMENIA 0x042B
|
||||
#define TT_MS_LANGID_AZERI_AZERBAIJAN_LATIN 0x042C
|
||||
#define TT_MS_LANGID_AZERI_AZERBAIJAN_CYRILLIC 0x082C
|
||||
#define TT_MS_LANGID_BASQUE_SPAIN 0x042D
|
||||
#define TT_MS_LANGID_SORBIAN_GERMANY 0x042E
|
||||
#define TT_MS_LANGID_MACEDONIAN_MACEDONIA 0x042F
|
||||
#define TT_MS_LANGID_SUTU_SOUTH_AFRICA 0x0430
|
||||
#define TT_MS_LANGID_TSONGA_SOUTH_AFRICA 0x0431
|
||||
#define TT_MS_LANGID_TSWANA_SOUTH_AFRICA 0x0432
|
||||
|
@ -650,32 +650,32 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_GEORGIAN_GEORGIA 0x0437
|
||||
#define TT_MS_LANGID_FAEROESE_FAEROE_ISLANDS 0x0438
|
||||
#define TT_MS_LANGID_HINDI_INDIA 0x0439
|
||||
#define TT_MS_LANGID_MALTESE_MALTA 0x043a
|
||||
#define TT_MS_LANGID_MALTESE_MALTA 0x043A
|
||||
/* Added by XPsp2 Platform SDK (2004-07-26) */
|
||||
#define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043b
|
||||
#define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083b
|
||||
#define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3b
|
||||
#define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103b
|
||||
#define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143b
|
||||
#define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183b
|
||||
#define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3b
|
||||
#define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203b
|
||||
#define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243b
|
||||
#define TT_MS_LANGID_SAMI_NORTHERN_NORWAY 0x043B
|
||||
#define TT_MS_LANGID_SAMI_NORTHERN_SWEDEN 0x083B
|
||||
#define TT_MS_LANGID_SAMI_NORTHERN_FINLAND 0x0C3B
|
||||
#define TT_MS_LANGID_SAMI_LULE_NORWAY 0x103B
|
||||
#define TT_MS_LANGID_SAMI_LULE_SWEDEN 0x143B
|
||||
#define TT_MS_LANGID_SAMI_SOUTHERN_NORWAY 0x183B
|
||||
#define TT_MS_LANGID_SAMI_SOUTHERN_SWEDEN 0x1C3B
|
||||
#define TT_MS_LANGID_SAMI_SKOLT_FINLAND 0x203B
|
||||
#define TT_MS_LANGID_SAMI_INARI_FINLAND 0x243B
|
||||
/* ... and we also keep our old identifier... */
|
||||
#define TT_MS_LANGID_SAAMI_LAPONIA 0x043b
|
||||
#define TT_MS_LANGID_SAAMI_LAPONIA 0x043B
|
||||
|
||||
#if 0 /* this seems to be a previous inversion */
|
||||
#define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043c
|
||||
#define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083c
|
||||
#define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043C
|
||||
#define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083C
|
||||
#else
|
||||
#define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083c
|
||||
#define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043c
|
||||
#define TT_MS_LANGID_SCOTTISH_GAELIC_UNITED_KINGDOM 0x083C
|
||||
#define TT_MS_LANGID_IRISH_GAELIC_IRELAND 0x043C
|
||||
#endif
|
||||
|
||||
#define TT_MS_LANGID_YIDDISH_GERMANY 0x043d
|
||||
#define TT_MS_LANGID_MALAY_MALAYSIA 0x043e
|
||||
#define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083e
|
||||
#define TT_MS_LANGID_KAZAK_KAZAKSTAN 0x043f
|
||||
#define TT_MS_LANGID_YIDDISH_GERMANY 0x043D
|
||||
#define TT_MS_LANGID_MALAY_MALAYSIA 0x043E
|
||||
#define TT_MS_LANGID_MALAY_BRUNEI_DARUSSALAM 0x083E
|
||||
#define TT_MS_LANGID_KAZAK_KAZAKSTAN 0x043F
|
||||
#define TT_MS_LANGID_KIRGHIZ_KIRGHIZSTAN /* Cyrillic*/ 0x0440
|
||||
/* alias declared in Windows 2000 */
|
||||
#define TT_MS_LANGID_KIRGHIZ_KIRGHIZ_REPUBLIC \
|
||||
|
@ -693,12 +693,12 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_GUJARATI_INDIA 0x0447
|
||||
#define TT_MS_LANGID_ORIYA_INDIA 0x0448
|
||||
#define TT_MS_LANGID_TAMIL_INDIA 0x0449
|
||||
#define TT_MS_LANGID_TELUGU_INDIA 0x044a
|
||||
#define TT_MS_LANGID_KANNADA_INDIA 0x044b
|
||||
#define TT_MS_LANGID_MALAYALAM_INDIA 0x044c
|
||||
#define TT_MS_LANGID_ASSAMESE_INDIA 0x044d
|
||||
#define TT_MS_LANGID_MARATHI_INDIA 0x044e
|
||||
#define TT_MS_LANGID_SANSKRIT_INDIA 0x044f
|
||||
#define TT_MS_LANGID_TELUGU_INDIA 0x044A
|
||||
#define TT_MS_LANGID_KANNADA_INDIA 0x044B
|
||||
#define TT_MS_LANGID_MALAYALAM_INDIA 0x044C
|
||||
#define TT_MS_LANGID_ASSAMESE_INDIA 0x044D
|
||||
#define TT_MS_LANGID_MARATHI_INDIA 0x044E
|
||||
#define TT_MS_LANGID_SANSKRIT_INDIA 0x044F
|
||||
#define TT_MS_LANGID_MONGOLIAN_MONGOLIA /* Cyrillic */ 0x0450
|
||||
#define TT_MS_LANGID_MONGOLIAN_MONGOLIA_MONGOLIAN 0x0850
|
||||
#define TT_MS_LANGID_TIBETAN_CHINA 0x0451
|
||||
|
@ -732,13 +732,13 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_SINDHI_INDIA /* Arabic */ 0x0459
|
||||
#define TT_MS_LANGID_SINDHI_PAKISTAN 0x0859
|
||||
/* Missing a LCID for Sindhi in Devanagari script */
|
||||
#define TT_MS_LANGID_SYRIAC_SYRIA 0x045a
|
||||
#define TT_MS_LANGID_SINHALESE_SRI_LANKA 0x045b
|
||||
#define TT_MS_LANGID_CHEROKEE_UNITED_STATES 0x045c
|
||||
#define TT_MS_LANGID_INUKTITUT_CANADA 0x045d
|
||||
#define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045e
|
||||
#define TT_MS_LANGID_TAMAZIGHT_MOROCCO /* Arabic */ 0x045f
|
||||
#define TT_MS_LANGID_TAMAZIGHT_MOROCCO_LATIN 0x085f
|
||||
#define TT_MS_LANGID_SYRIAC_SYRIA 0x045A
|
||||
#define TT_MS_LANGID_SINHALESE_SRI_LANKA 0x045B
|
||||
#define TT_MS_LANGID_CHEROKEE_UNITED_STATES 0x045C
|
||||
#define TT_MS_LANGID_INUKTITUT_CANADA 0x045D
|
||||
#define TT_MS_LANGID_AMHARIC_ETHIOPIA 0x045E
|
||||
#define TT_MS_LANGID_TAMAZIGHT_MOROCCO /* Arabic */ 0x045F
|
||||
#define TT_MS_LANGID_TAMAZIGHT_MOROCCO_LATIN 0x085F
|
||||
/* Missing a LCID for Tifinagh script */
|
||||
#define TT_MS_LANGID_KASHMIRI_PAKISTAN /* Arabic */ 0x0460
|
||||
/* Spelled this way by XPsp2 Platform SDK (2004-07-26) */
|
||||
|
@ -758,15 +758,15 @@ FT_BEGIN_HEADER
|
|||
#define TT_MS_LANGID_FULFULDE_NIGERIA 0x0467
|
||||
#define TT_MS_LANGID_HAUSA_NIGERIA 0x0468
|
||||
#define TT_MS_LANGID_IBIBIO_NIGERIA 0x0469
|
||||
#define TT_MS_LANGID_YORUBA_NIGERIA 0x046a
|
||||
#define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046b
|
||||
#define TT_MS_LANGID_QUECHUA_ECUADOR 0x086b
|
||||
#define TT_MS_LANGID_QUECHUA_PERU 0x0c6b
|
||||
#define TT_MS_LANGID_SEPEDI_SOUTH_AFRICA 0x046c
|
||||
#define TT_MS_LANGID_YORUBA_NIGERIA 0x046A
|
||||
#define TT_MS_LANGID_QUECHUA_BOLIVIA 0x046B
|
||||
#define TT_MS_LANGID_QUECHUA_ECUADOR 0x086B
|
||||
#define TT_MS_LANGID_QUECHUA_PERU 0x0C6B
|
||||
#define TT_MS_LANGID_SEPEDI_SOUTH_AFRICA 0x046C
|
||||
/* Also spelled by XPsp2 Platform SDK (2004-07-26) */
|
||||
#define TT_MS_LANGID_SOTHO_SOUTHERN_SOUTH_AFRICA \
|
||||
TT_MS_LANGID_SEPEDI_SOUTH_AFRICA
|
||||
/* language codes 0x046d, 0x046e and 0x046f are (still) unknown. */
|
||||
/* language codes 0x046D, 0x046E and 0x046F are (still) unknown. */
|
||||
#define TT_MS_LANGID_IGBO_NIGERIA 0x0470
|
||||
#define TT_MS_LANGID_KANURI_NIGERIA 0x0471
|
||||
#define TT_MS_LANGID_OROMO_ETHIOPIA 0x0472
|
||||
|
@ -783,12 +783,12 @@ FT_BEGIN_HEADER
|
|||
/* studying). */
|
||||
#define TT_MS_LANGID_YI_CHINA 0x0478
|
||||
#define TT_MS_LANGID_PAPIAMENTU_NETHERLANDS_ANTILLES 0x0479
|
||||
/* language codes from 0x047a to 0x047f are (still) unknown. */
|
||||
/* language codes from 0x047A to 0x047F are (still) unknown. */
|
||||
#define TT_MS_LANGID_UIGHUR_CHINA 0x0480
|
||||
#define TT_MS_LANGID_MAORI_NEW_ZEALAND 0x0481
|
||||
|
||||
#if 0 /* not deemed useful for fonts */
|
||||
#define TT_MS_LANGID_HUMAN_INTERFACE_DEVICE 0x04ff
|
||||
#define TT_MS_LANGID_HUMAN_INTERFACE_DEVICE 0x04FF
|
||||
#endif
|
||||
|
||||
|
||||
|
|
|
@ -363,7 +363,7 @@
|
|||
p[x] |= p[x - 1] << ( 8 - i );
|
||||
|
||||
#if 0
|
||||
if ( p[x] == 0xff )
|
||||
if ( p[x] == 0xFF )
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -1910,7 +1910,7 @@
|
|||
rlen = ( header[0x57] << 24 ) |
|
||||
( header[0x58] << 16 ) |
|
||||
( header[0x59] << 8 ) |
|
||||
header[0x5a];
|
||||
header[0x5A];
|
||||
#endif /* 0 */
|
||||
offset = 128 + ( ( dlen + 127 ) & ~127 );
|
||||
|
||||
|
|
|
@ -182,10 +182,10 @@
|
|||
return error;
|
||||
|
||||
FT_TRACE2(( "Resource tags: %c%c%c%c\n",
|
||||
(char)( 0xff & ( tag_internal >> 24 ) ),
|
||||
(char)( 0xff & ( tag_internal >> 16 ) ),
|
||||
(char)( 0xff & ( tag_internal >> 8 ) ),
|
||||
(char)( 0xff & ( tag_internal >> 0 ) ) ));
|
||||
(char)( 0xFF & ( tag_internal >> 24 ) ),
|
||||
(char)( 0xFF & ( tag_internal >> 16 ) ),
|
||||
(char)( 0xFF & ( tag_internal >> 8 ) ),
|
||||
(char)( 0xFF & ( tag_internal >> 0 ) ) ));
|
||||
FT_TRACE3(( " : subcount=%d, suboffset=0x%04x\n",
|
||||
subcnt, rpos ));
|
||||
|
||||
|
|
|
@ -781,8 +781,8 @@
|
|||
hold = buf[end];
|
||||
buf[end] = 0;
|
||||
|
||||
/* XXX: Use encoding independent value for 0x1a */
|
||||
if ( buf[start] != '#' && buf[start] != 0x1a && end > start )
|
||||
/* XXX: Use encoding independent value for 0x1A */
|
||||
if ( buf[start] != '#' && buf[start] != 0x1A && end > start )
|
||||
{
|
||||
error = (*cb)( buf + start, (unsigned long)( end - start ), lineno,
|
||||
(void*)&cb, client_data );
|
||||
|
@ -823,17 +823,17 @@
|
|||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
||||
};
|
||||
|
||||
static const unsigned char odigits[32] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -841,7 +841,7 @@
|
|||
|
||||
static const unsigned char ddigits[32] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
|
@ -849,8 +849,8 @@
|
|||
|
||||
static const unsigned char hdigits[32] =
|
||||
{
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x03,
|
||||
0x7e, 0x00, 0x00, 0x00, 0x7e, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xFF, 0x03,
|
||||
0x7E, 0x00, 0x00, 0x00, 0x7E, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
|
|
@ -131,7 +131,7 @@
|
|||
/* head[0] && head[1] are the magic numbers; */
|
||||
/* head[2] is the version, and head[3] the blocksize */
|
||||
if ( head[0] != 0x42 ||
|
||||
head[1] != 0x5a ||
|
||||
head[1] != 0x5A ||
|
||||
head[2] != 0x68 ) /* only support bzip2 (huffman) */
|
||||
{
|
||||
error = FT_THROW( Invalid_File_Format );
|
||||
|
|
|
@ -150,8 +150,8 @@
|
|||
/* logarithms; remembering that the 16 lowest bits of the fraction */
|
||||
/* are dropped this is correct to within a factor of almost 4. */
|
||||
/* For example, 0x80.0000 * 0x80.0000 = 0x4000.0000 is 23+23 and */
|
||||
/* is flagged as possible overflow because 0xff.ffff * 0xff.ffff = */
|
||||
/* 0xffff.fe00 is also 23+23. */
|
||||
/* is flagged as possible overflow because 0xFF.FFFF * 0xFF.FFFF = */
|
||||
/* 0xFFFF.FE00 is also 23+23. */
|
||||
|
||||
logBase2 = FT_MSB( (FT_UInt32)stemWidthPer1000 ) +
|
||||
FT_MSB( (FT_UInt32)ppem );
|
||||
|
|
|
@ -188,7 +188,7 @@
|
|||
}
|
||||
|
||||
/* Read fraction part, if any. */
|
||||
if ( nib == 0xa )
|
||||
if ( nib == 0xA )
|
||||
for (;;)
|
||||
{
|
||||
/* If we entered this iteration with phase == 4, we need */
|
||||
|
|
|
@ -349,7 +349,7 @@ FT_BEGIN_HEADER
|
|||
\
|
||||
\
|
||||
for ( b = p; b < (FT_Bytes)p + len; b++ ) \
|
||||
if ( 0x40 < *b && *b < 0x7e ) \
|
||||
if ( 0x40 < *b && *b < 0x7E ) \
|
||||
FT_TRACE1(("%c", *b)) ; \
|
||||
else \
|
||||
FT_TRACE1(("\\x%02x", *b)) ; \
|
||||
|
|
|
@ -208,8 +208,8 @@
|
|||
|
||||
/* head[0] && head[1] are the magic numbers; */
|
||||
/* head[2] is the method, and head[3] the flags */
|
||||
if ( head[0] != 0x1f ||
|
||||
head[1] != 0x8b ||
|
||||
if ( head[0] != 0x1F ||
|
||||
head[1] != 0x8B ||
|
||||
head[2] != Z_DEFLATED ||
|
||||
(head[3] & FT_GZIP_RESERVED) )
|
||||
{
|
||||
|
|
|
@ -96,8 +96,8 @@
|
|||
goto Exit;
|
||||
|
||||
/* head[0] && head[1] are the magic numbers */
|
||||
if ( head[0] != 0x1f ||
|
||||
head[1] != 0x9d )
|
||||
if ( head[0] != 0x1F ||
|
||||
head[1] != 0x9D )
|
||||
error = FT_THROW( Invalid_File_Format );
|
||||
|
||||
Exit:
|
||||
|
|
|
@ -41,7 +41,7 @@
|
|||
#define LZW_CLEAR 256
|
||||
#define LZW_FIRST 257
|
||||
|
||||
#define LZW_BIT_MASK 0x1f
|
||||
#define LZW_BIT_MASK 0x1F
|
||||
#define LZW_BLOCK_MASK 0x80
|
||||
#define LZW_MASK( n ) ( ( 1U << (n) ) - 1U )
|
||||
|
||||
|
|
|
@ -179,7 +179,7 @@
|
|||
if ( header->signature != 0x50465230L || /* "PFR0" */
|
||||
header->version > 4 ||
|
||||
header->header_size < 58 ||
|
||||
header->signature2 != 0x0d0a ) /* CR/LF */
|
||||
header->signature2 != 0x0D0A ) /* CR/LF */
|
||||
{
|
||||
result = 0;
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
if ( IS_PS_SPACE( *p ) || *p OP 0x80 )
|
||||
break;
|
||||
|
||||
c = ft_char_table[*p & 0x7f];
|
||||
c = ft_char_table[*p & 0x7F];
|
||||
|
||||
if ( c < 0 || c >= base )
|
||||
break;
|
||||
|
@ -245,7 +245,7 @@
|
|||
if ( IS_PS_SPACE( *p ) || *p OP 0x80 )
|
||||
break;
|
||||
|
||||
c = ft_char_table[*p & 0x7f];
|
||||
c = ft_char_table[*p & 0x7F];
|
||||
|
||||
if ( c < 0 || c >= 10 )
|
||||
break;
|
||||
|
@ -521,7 +521,7 @@
|
|||
if ( *p OP 0x80 )
|
||||
break;
|
||||
|
||||
c = ft_char_table[*p & 0x7f];
|
||||
c = ft_char_table[*p & 0x7F];
|
||||
|
||||
if ( (unsigned)c >= 16 )
|
||||
break;
|
||||
|
|
|
@ -449,9 +449,9 @@
|
|||
fseek( new, getRandom( 0, item->len - 1 ), SEEK_SET );
|
||||
|
||||
if ( item->isbinary )
|
||||
putc( getRandom( 0, 0xff ), new );
|
||||
putc( getRandom( 0, 0xFF ), new );
|
||||
else if ( item->isascii )
|
||||
putc( getRandom( 0x20, 0x7e ), new );
|
||||
putc( getRandom( 0x20, 0x7E ), new );
|
||||
else
|
||||
{
|
||||
int hex = getRandom( 0, 15 );
|
||||
|
|
|
@ -5625,7 +5625,7 @@
|
|||
/*************************************************************************/
|
||||
/* */
|
||||
/* INSTCTRL[]: INSTruction ConTRoL */
|
||||
/* Opcode range: 0x8e */
|
||||
/* Opcode range: 0x8E */
|
||||
/* Stack: int32 int32 --> */
|
||||
/* */
|
||||
static void
|
||||
|
|
|
@ -256,89 +256,89 @@
|
|||
#define TRICK_SFNT_ID_prep 2
|
||||
|
||||
{ /* MingLiU 1995 */
|
||||
{ 0x05bcf058UL, 0x000002e4UL }, /* cvt */
|
||||
{ 0x28233bf1UL, 0x000087c4UL }, /* fpgm */
|
||||
{ 0xa344a1eaUL, 0x000001e1UL } /* prep */
|
||||
{ 0x05BCF058UL, 0x000002E4UL }, /* cvt */
|
||||
{ 0x28233BF1UL, 0x000087C4UL }, /* fpgm */
|
||||
{ 0xA344A1EAUL, 0x000001E1UL } /* prep */
|
||||
},
|
||||
{ /* MingLiU 1996- */
|
||||
{ 0x05bcf058UL, 0x000002e4UL }, /* cvt */
|
||||
{ 0x28233bf1UL, 0x000087c4UL }, /* fpgm */
|
||||
{ 0xa344a1ebUL, 0x000001e1UL } /* prep */
|
||||
{ 0x05BCF058UL, 0x000002E4UL }, /* cvt */
|
||||
{ 0x28233BF1UL, 0x000087C4UL }, /* fpgm */
|
||||
{ 0xA344A1EBUL, 0x000001E1UL } /* prep */
|
||||
},
|
||||
{ /* DFKaiShu */
|
||||
{ 0x11e5ead4UL, 0x00000350UL }, /* cvt */
|
||||
{ 0x5a30ca3bUL, 0x00009063UL }, /* fpgm */
|
||||
{ 0x13a42602UL, 0x0000007eUL } /* prep */
|
||||
{ 0x11E5EAD4UL, 0x00000350UL }, /* cvt */
|
||||
{ 0x5A30CA3BUL, 0x00009063UL }, /* fpgm */
|
||||
{ 0x13A42602UL, 0x0000007EUL } /* prep */
|
||||
},
|
||||
{ /* HuaTianKaiTi */
|
||||
{ 0xfffbfffcUL, 0x00000008UL }, /* cvt */
|
||||
{ 0x9c9e48b8UL, 0x0000bea2UL }, /* fpgm */
|
||||
{ 0xFFFBFFFCUL, 0x00000008UL }, /* cvt */
|
||||
{ 0x9C9E48B8UL, 0x0000BEA2UL }, /* fpgm */
|
||||
{ 0x70020112UL, 0x00000008UL } /* prep */
|
||||
},
|
||||
{ /* HuaTianSongTi */
|
||||
{ 0xfffbfffcUL, 0x00000008UL }, /* cvt */
|
||||
{ 0x0a5a0483UL, 0x00017c39UL }, /* fpgm */
|
||||
{ 0xFFFBFFFCUL, 0x00000008UL }, /* cvt */
|
||||
{ 0x0A5A0483UL, 0x00017C39UL }, /* fpgm */
|
||||
{ 0x70020112UL, 0x00000008UL } /* prep */
|
||||
},
|
||||
{ /* NEC fadpop7.ttf */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x40c92555UL, 0x000000e5UL }, /* fpgm */
|
||||
{ 0xa39b58e3UL, 0x0000117cUL } /* prep */
|
||||
{ 0x40C92555UL, 0x000000E5UL }, /* fpgm */
|
||||
{ 0xA39B58E3UL, 0x0000117CUL } /* prep */
|
||||
},
|
||||
{ /* NEC fadrei5.ttf */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x33c41652UL, 0x000000e5UL }, /* fpgm */
|
||||
{ 0x26d6c52aUL, 0x00000f6aUL } /* prep */
|
||||
{ 0x33C41652UL, 0x000000E5UL }, /* fpgm */
|
||||
{ 0x26D6C52AUL, 0x00000F6AUL } /* prep */
|
||||
},
|
||||
{ /* NEC fangot7.ttf */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x6db1651dUL, 0x0000019dUL }, /* fpgm */
|
||||
{ 0x6c6e4b03UL, 0x00002492UL } /* prep */
|
||||
{ 0x6DB1651DUL, 0x0000019DUL }, /* fpgm */
|
||||
{ 0x6C6E4B03UL, 0x00002492UL } /* prep */
|
||||
},
|
||||
{ /* NEC fangyo5.ttf */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x40c92555UL, 0x000000e5UL }, /* fpgm */
|
||||
{ 0xde51fad0UL, 0x0000117cUL } /* prep */
|
||||
{ 0x40C92555UL, 0x000000E5UL }, /* fpgm */
|
||||
{ 0xDE51FAD0UL, 0x0000117CUL } /* prep */
|
||||
},
|
||||
{ /* NEC fankyo5.ttf */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x85e47664UL, 0x000000e5UL }, /* fpgm */
|
||||
{ 0xa6c62831UL, 0x00001caaUL } /* prep */
|
||||
{ 0x85E47664UL, 0x000000E5UL }, /* fpgm */
|
||||
{ 0xA6C62831UL, 0x00001CAAUL } /* prep */
|
||||
},
|
||||
{ /* NEC fanrgo5.ttf */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x2d891cfdUL, 0x0000019dUL }, /* fpgm */
|
||||
{ 0xa0604633UL, 0x00001de8UL } /* prep */
|
||||
{ 0x2D891CFDUL, 0x0000019DUL }, /* fpgm */
|
||||
{ 0xA0604633UL, 0x00001DE8UL } /* prep */
|
||||
},
|
||||
{ /* NEC fangot5.ttc */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x40aa774cUL, 0x000001cbUL }, /* fpgm */
|
||||
{ 0x9b5caa96UL, 0x00001f9aUL } /* prep */
|
||||
{ 0x40AA774CUL, 0x000001CBUL }, /* fpgm */
|
||||
{ 0x9B5CAA96UL, 0x00001F9AUL } /* prep */
|
||||
},
|
||||
{ /* NEC fanmin3.ttc */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x0d3de9cbUL, 0x00000141UL }, /* fpgm */
|
||||
{ 0xd4127766UL, 0x00002280UL } /* prep */
|
||||
{ 0x0D3DE9CBUL, 0x00000141UL }, /* fpgm */
|
||||
{ 0xD4127766UL, 0x00002280UL } /* prep */
|
||||
},
|
||||
{ /* NEC FA-Gothic, 1996 */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x4a692698UL, 0x000001f0UL }, /* fpgm */
|
||||
{ 0x340d4346UL, 0x00001fcaUL } /* prep */
|
||||
{ 0x4A692698UL, 0x000001F0UL }, /* fpgm */
|
||||
{ 0x340D4346UL, 0x00001FCAUL } /* prep */
|
||||
},
|
||||
{ /* NEC FA-Minchou, 1996 */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0xcd34c604UL, 0x00000166UL }, /* fpgm */
|
||||
{ 0x6cf31046UL, 0x000022b0UL } /* prep */
|
||||
{ 0xCD34C604UL, 0x00000166UL }, /* fpgm */
|
||||
{ 0x6CF31046UL, 0x000022B0UL } /* prep */
|
||||
},
|
||||
{ /* NEC FA-RoundGothicB, 1996 */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0x5da75315UL, 0x0000019dUL }, /* fpgm */
|
||||
{ 0x40745a5fUL, 0x000022e0UL } /* prep */
|
||||
{ 0x5DA75315UL, 0x0000019DUL }, /* fpgm */
|
||||
{ 0x40745A5FUL, 0x000022E0UL } /* prep */
|
||||
},
|
||||
{ /* NEC FA-RoundGothicM, 1996 */
|
||||
{ 0x00000000UL, 0x00000000UL }, /* cvt */
|
||||
{ 0xf055fc48UL, 0x000001c2UL }, /* fpgm */
|
||||
{ 0x3900ded3UL, 0x00001e18UL } /* prep */
|
||||
{ 0xF055FC48UL, 0x000001C2UL }, /* fpgm */
|
||||
{ 0x3900DED3UL, 0x00001E18UL } /* prep */
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -72,12 +72,12 @@
|
|||
|
||||
FT_FRAME_START( 248 ),
|
||||
FT_FRAME_ULONG_LE ( magic ), /* PE00 */
|
||||
FT_FRAME_USHORT_LE ( machine ), /* 0x014c - i386 */
|
||||
FT_FRAME_USHORT_LE ( machine ), /* 0x014C - i386 */
|
||||
FT_FRAME_USHORT_LE ( number_of_sections ),
|
||||
FT_FRAME_SKIP_BYTES( 12 ),
|
||||
FT_FRAME_USHORT_LE ( size_of_optional_header ),
|
||||
FT_FRAME_SKIP_BYTES( 2 ),
|
||||
FT_FRAME_USHORT_LE ( magic32 ), /* 0x10b */
|
||||
FT_FRAME_USHORT_LE ( magic32 ), /* 0x10B */
|
||||
FT_FRAME_SKIP_BYTES( 110 ),
|
||||
FT_FRAME_ULONG_LE ( rsrc_virtual_address ),
|
||||
FT_FRAME_ULONG_LE ( rsrc_size ),
|
||||
|
@ -412,9 +412,9 @@
|
|||
pe32_header.rsrc_size ));
|
||||
|
||||
if ( pe32_header.magic != WINFNT_PE_MAGIC /* check full signature */ ||
|
||||
pe32_header.machine != 0x014c /* i386 */ ||
|
||||
pe32_header.size_of_optional_header != 0xe0 /* FIXME */ ||
|
||||
pe32_header.magic32 != 0x10b )
|
||||
pe32_header.machine != 0x014C /* i386 */ ||
|
||||
pe32_header.size_of_optional_header != 0xE0 /* FIXME */ ||
|
||||
pe32_header.magic32 != 0x10B )
|
||||
{
|
||||
FT_TRACE2(( "this file has an invalid PE header\n" ));
|
||||
error = FT_THROW( Invalid_File_Format );
|
||||
|
|
Loading…
Reference in New Issue