Fix merge with symbol font fix (part 2)
This commit is contained in:
parent
7cad586e63
commit
31d8d13ba2
@ -1957,10 +1957,9 @@ var Font = (function FontClosure() {
|
|||||||
// Moving all symbolic font glyphs into 0xF000 - 0xF0FF range.
|
// Moving all symbolic font glyphs into 0xF000 - 0xF0FF range.
|
||||||
if (this.isSymbolicFont) {
|
if (this.isSymbolicFont) {
|
||||||
for (var i = 0, ii = glyphs.length; i < ii; i++) {
|
for (var i = 0, ii = glyphs.length; i < ii; i++) {
|
||||||
var cid = i + 1;
|
var code = glyphs[i].unicode & 0xFF;
|
||||||
var code = glyphs[i].unicode;
|
var fontCharCode = kSymbolicFontGlyphOffset | code;
|
||||||
code = kSymbolicFontGlyphOffset | (code & 0xFF);
|
glyphs[i].unicode = toFontChar[code] = fontCharCode;
|
||||||
glyphs[i].unicode = toFontChar[cid] = code;
|
|
||||||
}
|
}
|
||||||
this.useToFontChar = true;
|
this.useToFontChar = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user