diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-03 22:45:10 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-12-03 22:45:10 +0000 |
commit | e26f2dd41a6e6a98d3f1287f38b7ffd4685401e3 (patch) | |
tree | 308d675a67c0987377005d1df82535a5148b6306 /src/sfnt/SkOTTable_glyf.h | |
parent | bc293c4aa432bc75b34f6719ccf7c838420e7bfe (diff) |
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
Diffstat (limited to 'src/sfnt/SkOTTable_glyf.h')
-rw-r--r-- | src/sfnt/SkOTTable_glyf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sfnt/SkOTTable_glyf.h b/src/sfnt/SkOTTable_glyf.h index a52fd06fe6..30c99f62fa 100644 --- a/src/sfnt/SkOTTable_glyf.h +++ b/src/sfnt/SkOTTable_glyf.h @@ -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; |