writeFixed(out, post.getItalicAngle()); writeSInt16(out, post.getUnderlinePosition()); writeSInt16(out, post.getUnderlineThickness()); writeUint32(out, post.getIsFixedPitch()); writeUint32(out, post.getMinMemType42()); writeUint32(out, post.getMaxMemType42()); writeUint32(out, post.getMinMemType1()); writeUint32(out, post.getMaxMemType1()); for (int gid : glyphIds) String name = post.getName(gid); Integer macId = WGL4Names.MAC_GLYPH_NAMES_INDICES.get(name); if (macId != null)
private void readPostScriptNames() throws IOException { Map<String, Integer> psnames = postScriptNames; if (psnames == null) { // the getter is already synchronized PostScriptTable post = getPostScript(); synchronized (lockPSNames) { psnames = postScriptNames; if (psnames == null) { String[] names = post != null ? post.getGlyphNames() : null; if (names != null) { psnames = new HashMap<>(names.length); for (int i = 0; i < names.length; i++) { psnames.put(names[i], i); } } else { psnames = new HashMap<>(); } postScriptNames = psnames; } } } }
fd.setFixedPitch(post.getIsFixedPitch() > 0 || ttf.getHorizontalHeader().getNumberOfHMetrics() == 1); fd.setItalicAngle(post.getItalicAngle());
if (post != null) name = post.getName(gid);
break; case PostScriptTable.TAG: table = new PostScriptTable(font); break; case DigitalSignatureTable.TAG:
fd.setFixedPitch(post.getIsFixedPitch() > 0 || ttf.getHorizontalHeader().getNumberOfHMetrics() == 1); fd.setItalicAngle(post.getItalicAngle());
if (post != null) name = post.getName(gid);
table = new PostScriptTable(font);
writeFixed(out, post.getItalicAngle()); writeSInt16(out, post.getUnderlinePosition()); writeSInt16(out, post.getUnderlineThickness()); writeUint32(out, post.getIsFixedPitch()); writeUint32(out, post.getMinMemType42()); writeUint32(out, post.getMaxMemType42()); writeUint32(out, post.getMinMemType1()); writeUint32(out, post.getMaxMemType1()); for (int gid : glyphIds) String name = post.getName(gid); Integer macId = WGL4Names.MAC_GLYPH_NAMES_INDICES.get(name); if (macId != null)
fd.setFixedPitch(post.getIsFixedPitch() > 0 || ttf.getHorizontalHeader().getNumberOfHMetrics() == 1); fd.setItalicAngle(post.getItalicAngle());
if (post != null) name = post.getName(gid);
private synchronized void readPostScriptNames() throws IOException { if (postScriptNames == null && getPostScript() != null) { String[] names = getPostScript().getGlyphNames(); if (names != null) { postScriptNames = new HashMap<String, Integer>(names.length); for (int i = 0; i < names.length; i++) { postScriptNames.put(names[i], i); } } else { postScriptNames = new HashMap<String, Integer>(); } } }
break; case PostScriptTable.TAG: table = new PostScriptTable(font); break; case DigitalSignatureTable.TAG:
writeFixed(out, post.getItalicAngle()); writeSInt16(out, post.getUnderlinePosition()); writeSInt16(out, post.getUnderlineThickness()); writeUint32(out, post.getIsFixedPitch()); writeUint32(out, post.getMinMemType42()); writeUint32(out, post.getMaxMemType42()); writeUint32(out, post.getMinMemType1()); writeUint32(out, post.getMaxMemType1()); for (int gid : glyphIds) String name = post.getName(gid); Integer macId = WGL4Names.MAC_GLYPH_NAMES_INDICES.get(name); if (macId != null)
private void readPostScriptNames() throws IOException { Map<String, Integer> psnames = postScriptNames; if (psnames == null) { // the getter is already synchronized PostScriptTable post = getPostScript(); synchronized (lockPSNames) { psnames = postScriptNames; if (psnames == null) { String[] names = post != null ? post.getGlyphNames() : null; if (names != null) { psnames = new HashMap<>(names.length); for (int i = 0; i < names.length; i++) { psnames.put(names[i], i); } } else { psnames = new HashMap<>(); } postScriptNames = psnames; } } } }