Changeset 262 for trunk/poppler/freetype2/src/autofit/afcjk.c
- Timestamp:
- Jan 17, 2009, 10:45:05 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/poppler/freetype2/src/autofit/afcjk.c
r251 r262 5 5 /* Auto-fitter hinting routines for CJK script (body). */ 6 6 /* */ 7 /* Copyright 2006, 2007 by*/7 /* Copyright 2006, 2007, 2008 by */ 8 8 /* David Turner, Robert Wilhelm, and Werner Lemberg. */ 9 9 /* */ … … 1254 1254 af_cjk_align_serif_edge( hints, before, edge ); 1255 1255 else 1256 edge->pos = before->pos + 1257 FT_MulDiv( edge->fpos - before->fpos, 1258 after->pos - before->pos, 1259 after->fpos - before->fpos ); 1256 { 1257 if ( after->fpos == before->fpos ) 1258 edge->pos = before->pos; 1259 else 1260 edge->pos = before->pos + 1261 FT_MulDiv( edge->fpos - before->fpos, 1262 after->pos - before->pos, 1263 after->fpos - before->fpos ); 1264 } 1260 1265 } 1261 1266 } … … 1437 1442 { 1438 1443 #if 0 1439 { 0x0100, 0xFFFF}, /* why this? */1444 { 0x0100UL, 0xFFFFUL }, /* why this? */ 1440 1445 #endif 1441 { 0x2E80, 0x2EFF }, /* CJK Radicals Supplement*/1442 { 0x2F00, 0x2FDF }, /* Kangxi Radicals*/1443 { 0x3000, 0x303F }, /* CJK Symbols and Punctuation*/1444 { 0x3040, 0x309F }, /* Hiragana*/1445 { 0x30A0, 0x30FF }, /* Katakana*/1446 { 0x3100, 0x312F }, /* Bopomofo*/1447 { 0x3130, 0x318F }, /* Hangul Compatibility Jamo*/1448 { 0x31A0, 0x31BF }, /* Bopomofo Extended*/1449 { 0x31C0, 0x31EF }, /* CJK Strokes*/1450 { 0x31F0, 0x31FF }, /* Katakana Phonetic Extensions*/1451 { 0x3200, 0x32FF }, /* Enclosed CJK Letters and Months*/1452 { 0x3300, 0x33FF }, /* CJK Compatibility*/1453 { 0x3400, 0x4DBF }, /* CJK Unified Ideographs Extension A*/1454 { 0x4DC0, 0x4DFF }, /* Yijing Hexagram Symbols*/1455 { 0x4E00, 0x9FFF }, /* CJK Unified Ideographs*/1456 { 0xF900, 0xFAFF }, /* CJK Compatibility Ideographs*/1457 { 0xFE30, 0xFE4F }, /* CJK Compatibility Forms*/1458 { 0xFF00, 0xFFEF }, /* Halfwidth and Fullwidth Forms*/1459 { 0x20000 , 0x2A6DF }, /* CJK Unified Ideographs Extension B*/1460 { 0x2F800 , 0x2FA1F },/* CJK Compatibility Ideographs Supplement */1461 { 0, 0}1446 { 0x2E80UL, 0x2EFFUL }, /* CJK Radicals Supplement */ 1447 { 0x2F00UL, 0x2FDFUL }, /* Kangxi Radicals */ 1448 { 0x3000UL, 0x303FUL }, /* CJK Symbols and Punctuation */ 1449 { 0x3040UL, 0x309FUL }, /* Hiragana */ 1450 { 0x30A0UL, 0x30FFUL }, /* Katakana */ 1451 { 0x3100UL, 0x312FUL }, /* Bopomofo */ 1452 { 0x3130UL, 0x318FUL }, /* Hangul Compatibility Jamo */ 1453 { 0x31A0UL, 0x31BFUL }, /* Bopomofo Extended */ 1454 { 0x31C0UL, 0x31EFUL }, /* CJK Strokes */ 1455 { 0x31F0UL, 0x31FFUL }, /* Katakana Phonetic Extensions */ 1456 { 0x3200UL, 0x32FFUL }, /* Enclosed CJK Letters and Months */ 1457 { 0x3300UL, 0x33FFUL }, /* CJK Compatibility */ 1458 { 0x3400UL, 0x4DBFUL }, /* CJK Unified Ideographs Extension A */ 1459 { 0x4DC0UL, 0x4DFFUL }, /* Yijing Hexagram Symbols */ 1460 { 0x4E00UL, 0x9FFFUL }, /* CJK Unified Ideographs */ 1461 { 0xF900UL, 0xFAFFUL }, /* CJK Compatibility Ideographs */ 1462 { 0xFE30UL, 0xFE4FUL }, /* CJK Compatibility Forms */ 1463 { 0xFF00UL, 0xFFEFUL }, /* Halfwidth and Fullwidth Forms */ 1464 { 0x20000UL, 0x2A6DFUL }, /* CJK Unified Ideographs Extension B */ 1465 { 0x2F800UL, 0x2FA1FUL }, /* CJK Compatibility Ideographs Supplement */ 1466 { 0UL, 0UL } 1462 1467 }; 1463 1468
Note: See TracChangeset
for help on using the changeset viewer.