ICU-5282 SimpleFontInstance::getGlyphAdvance: don't check for combining characters; depends on normalization.
X-SVN-Rev: 19909
This commit is contained in:
parent
fa8b239341
commit
6fd80adca8
@ -53,11 +53,15 @@ const void *SimpleFontInstance::getFontTable(LETag tableTag) const
|
||||
|
||||
void SimpleFontInstance::getGlyphAdvance(LEGlyphID glyph, LEPoint &advance) const
|
||||
{
|
||||
#if 0
|
||||
if (u_getCombiningClass((UChar32) glyph) == 0) {
|
||||
advance.fX = xUnitsToPoints(2048);
|
||||
} else {
|
||||
advance.fX = 0;
|
||||
}
|
||||
#else
|
||||
advance.fX = xUnitsToPoints(2048);
|
||||
#endif
|
||||
|
||||
advance.fY = 0;
|
||||
}
|
||||
|
6
icu4c/source/test/testdata/letest.xml
vendored
6
icu4c/source/test/testdata/letest.xml
vendored
@ -8,7 +8,7 @@
|
||||
UNLESS YOU REALLY KNOW WHAT YOU'RE DOING.
|
||||
|
||||
file name: letest.xml
|
||||
generated on: 04/26/2006 10:33:35 AM Hawaiian Standard Time
|
||||
generated on: 07/27/2006 03:04:41 PM Hawaiian Standard Time
|
||||
generated by: gendata.cpp
|
||||
-->
|
||||
|
||||
@ -76,10 +76,10 @@
|
||||
301.875000, 0.000000, 311.859375, -0.011719, 311.343750, 0.000000, 317.343750, 0.000000,
|
||||
326.812500, 0.000000, 336.644531, 0.263672, 336.281250, 0.000000, 336.281250, 0.000000,
|
||||
347.156250, 0.000000, 347.156250, 0.000000, 346.353516, 0.275391, 347.156250, 0.000000,
|
||||
355.125000, 0.000000, 355.125000, 0.000000, 355.263672, 0.263672, 355.125000, 0.000000,
|
||||
355.125000, 0.000000, 355.125000, 0.000000, 354.263672, 0.263672, 355.125000, 0.000000,
|
||||
361.125000, 0.000000, 368.824219, -0.011719, 372.000000, 0.000000, 378.515625, 0.000000,
|
||||
379.875000, 0.000000, 390.750000, 0.000000, 390.750000, 0.000000, 389.947266, 0.275391,
|
||||
390.750000, 0.000000, 398.718750, 0.000000, 398.718750, 0.000000, 398.857422, 0.263672,
|
||||
390.750000, 0.000000, 398.718750, 0.000000, 398.718750, 0.000000, 397.857422, 0.263672,
|
||||
398.718750, 0.000000, 404.718750, 0.000000, 414.187500, 0.000000, 423.656250, 0.000000,
|
||||
430.769531, 0.263672, 431.625000, 0.000000, 439.593750, 0.000000, 443.250000, 0.000000,
|
||||
449.250000, 0.000000, 458.859375, -0.011719, 458.718750, 0.000000, 468.328125, -0.011719,
|
||||
|
Loading…
Reference in New Issue
Block a user