// Use 'name' instead of 'fontName' here because the original
// name ArialBlack for example will be replaced by Helvetica.
- this.black = (name.search(/Black/g) != -1)
+ this.black = (name.search(/Black/g) != -1);
this.loadedName = fontName.split('-')[0];
this.loading = false;
font.pos = (font.start ? font.start : 0) + header.offset;
font.pos += header.length - 2;
var numOfMetrics = int16(font.getBytes(2));
-
+
var numOfSidebearings = numGlyphs - numOfMetrics;
var numMissing = numOfSidebearings -
((hmtx.length - numOfMetrics * 4) >> 1);
if ('undefined' == typeof(properties.differences[index])) {
var mapping = properties.encoding[index] || {};
mapping.unicode = GlyphsUnicode[glyph] || index;
- properties.glyphs[glyph] = properties.encoding[index] = mapping;
+ properties.glyphs[glyph] = properties.encoding[index] =
+ mapping;
}
getToken(); // read the in 'put'
}
function fixYcckImage(bytes) {
// Inserting 'EMBED' marker after JPEG signature
- var embedMarker = new Uint8Array([0xFF, 0xEC, 0, 8,
- 0x45, 0x4D, 0x42, 0x45, 0x44, 0]);
+ var embedMarker = new Uint8Array([0xFF, 0xEC, 0, 8, 0x45, 0x4D, 0x42, 0x45,
+ 0x44, 0]);
var newBytes = new Uint8Array(bytes.length + embedMarker.length);
newBytes.set(bytes, embedMarker.length);
// copy JPEG header