The short version of the 'loca' table stores offsets divided by 2.
git-svn-id: http://skia.googlecode.com/svn/trunk@6657 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
bc293c4aa4
commit
e26f2dd41a
@ -40,7 +40,7 @@ struct SkOTTableGlyph {
|
||||
void advance(uint16_t num) {
|
||||
fLocaPtr.shortOffset += num << fLocaFormat;
|
||||
fCurrentGlyphOffset = fLocaFormat ? SkEndian_SwapBE32(*fLocaPtr.longOffset)
|
||||
: SkEndian_SwapBE16(*fLocaPtr.shortOffset);
|
||||
: SkEndian_SwapBE16(*fLocaPtr.shortOffset) << 1;
|
||||
}
|
||||
const SkOTTableGlyphData* next() {
|
||||
uint32_t previousGlyphOffset = fCurrentGlyphOffset;
|
||||
|
Loading…
Reference in New Issue
Block a user