/** * Parses a TrueType font from a byte buffer */ public static TrueTypeFont parseFont (ByteBuffer inBuf) { int type = inBuf.getInt (); short numTables = inBuf.getShort (); short searchRange = inBuf.getShort (); short entrySelector = inBuf.getShort (); short rangeShift = inBuf.getShort (); TrueTypeFont font = new TrueTypeFont (type); parseDirectories (inBuf, numTables, font); return font; }
/** * Parses a TrueType font from a byte buffer */ public static TrueTypeFont parseFont (ByteBuffer inBuf) { int type = inBuf.getInt (); short numTables = inBuf.getShort (); short searchRange = inBuf.getShort (); short entrySelector = inBuf.getShort (); short rangeShift = inBuf.getShort (); TrueTypeFont font = new TrueTypeFont (type); parseDirectories (inBuf, numTables, font); return font; }
/** * Parses a TrueType font from a byte buffer */ public static TrueTypeFont parseFont (ByteBuffer inBuf) { int type = inBuf.getInt (); short numTables = inBuf.getShort (); short searchRange = inBuf.getShort (); short entrySelector = inBuf.getShort (); short rangeShift = inBuf.getShort (); TrueTypeFont font = new TrueTypeFont (type); parseDirectories (inBuf, numTables, font); return font; }