@Override public float getHeight(int code) throws IOException { // todo: really we want the BBox, (for text extraction:) return (ttf.getHorizontalHeader().getAscender() + -ttf.getHorizontalHeader().getDescender()) / ttf.getUnitsPerEm(); // todo: shouldn't this be the yMax/yMin? }
HorizontalHeaderTable h = ttf.getHorizontalHeader(); HorizontalMetricsTable hm = ttf.getHorizontalMetrics(); InputStream is = ttf.getOriginalData();
HorizontalHeaderTable hh = font.getHorizontalHeader(); if (hh == null)
public void read(TrueTypeFont ttf, TTFDataStream data) throws IOException HorizontalHeaderTable hHeader = ttf.getHorizontalHeader(); numHMetrics = hHeader.getNumberOfHMetrics(); int numGlyphs = ttf.getNumberOfGlyphs();
DataOutputStream out = new DataOutputStream(bos); HorizontalHeaderTable h = ttf.getHorizontalHeader(); writeFixed(out, h.getVersion()); writeSInt16(out, h.getAscender());
@Override public float getHeight(int code) throws IOException { // todo: really we want the BBox, (for text extraction:) return (ttf.getHorizontalHeader().getAscender() + -ttf.getHorizontalHeader().getDescender()) / ttf.getUnitsPerEm(); // todo: shouldn't this be the yMax/yMin? }
@Override public float getHeight(int code) throws IOException { // todo: really we want the BBox, (for text extraction:) return (ttf.getHorizontalHeader().getAscender() + -ttf.getHorizontalHeader().getDescender()) / ttf.getUnitsPerEm(); // todo: shouldn't this be the yMax/yMin? }
ttf.getHorizontalHeader().getNumberOfHMetrics() == 1); HorizontalHeaderTable hHeader = ttf.getHorizontalHeader(); fd.setAscent(hHeader.getAscender() * scaling); fd.setDescent(hHeader.getDescender() * scaling);
HorizontalHeaderTable hh = font.getHorizontalHeader(); if (hh == null)
HorizontalHeaderTable h = ttf.getHorizontalHeader(); HorizontalMetricsTable hm = ttf.getHorizontalMetrics(); InputStream is = ttf.getOriginalData();
HorizontalHeaderTable h = ttf.getHorizontalHeader(); HorizontalMetricsTable hm = ttf.getHorizontalMetrics(); InputStream is = ttf.getOriginalData();
HorizontalHeaderTable hh = font.getHorizontalHeader(); if (hh == null)
public void read(TrueTypeFont ttf, TTFDataStream data) throws IOException HorizontalHeaderTable hHeader = ttf.getHorizontalHeader(); numHMetrics = hHeader.getNumberOfHMetrics(); int numGlyphs = ttf.getNumberOfGlyphs();
HorizontalHeaderTable hHeader = ttf.getHorizontalHeader(); numHMetrics = hHeader.getNumberOfHMetrics(); int numGlyphs = ttf.getNumberOfGlyphs();
DataOutputStream out = new DataOutputStream(bos); HorizontalHeaderTable h = ttf.getHorizontalHeader(); writeFixed(out, h.getVersion()); writeSInt16(out, h.getAscender());
DataOutputStream out = new DataOutputStream(bos); HorizontalHeaderTable h = ttf.getHorizontalHeader(); writeFixed(out, h.getVersion()); writeSInt16(out, h.getAscender());
ttf.getHorizontalHeader().getNumberOfHMetrics() == 1); HorizontalHeaderTable hHeader = ttf.getHorizontalHeader(); fd.setAscent(hHeader.getAscender() * scaling); fd.setDescent(hHeader.getDescender() * scaling);
ttf.getHorizontalHeader().getNumberOfHMetrics() == 1); HorizontalHeaderTable hHeader = ttf.getHorizontalHeader(); fd.setAscent(hHeader.getAscender() * scaling); fd.setDescent(hHeader.getDescender() * scaling);