Class Woff2Dec


  • class Woff2Dec
    extends java.lang.Object
    • Constructor Detail

      • Woff2Dec

        Woff2Dec()
    • Method Detail

      • withSign

        private static int withSign​(int flag,
                                    int baseval)
      • tripletDecode

        private static int tripletDecode​(byte[] data,
                                         int flags_in_offset,
                                         int in_offset,
                                         int in_size,
                                         int n_points,
                                         Woff2Common.Point[] result)
      • storePoints

        private static int storePoints​(int n_points,
                                       Woff2Common.Point[] points,
                                       int n_contours,
                                       int instruction_length,
                                       byte[] dst,
                                       int dst_size)
      • computeBbox

        private static void computeBbox​(int n_points,
                                        Woff2Common.Point[] points,
                                        byte[] dst)
      • pad4

        private static void pad4​(Woff2Out out)
      • storeLoca

        private static int storeLoca​(int[] loca_values,
                                     int index_format,
                                     Woff2Out out)
      • readNumHMetrics

        private static short readNumHMetrics​(byte[] data,
                                             int offset,
                                             int data_length)
      • reconstructTransformedHmtx

        private static int reconstructTransformedHmtx​(byte[] transformed_buf,
                                                      int transformed_offset,
                                                      int transformed_size,
                                                      int num_glyphs,
                                                      int num_hmetrics,
                                                      short[] x_mins,
                                                      Woff2Out out)
      • woff2Uncompress

        private static void woff2Uncompress​(byte[] dst_buf,
                                            int dst_offset,
                                            int dst_length,
                                            byte[] src_buf,
                                            int src_offset,
                                            int src_length)
      • readTableDirectory

        private static void readTableDirectory​(Buffer file,
                                               Woff2Common.Table[] tables,
                                               int num_tables)
      • storeOffsetTable

        private static int storeOffsetTable​(byte[] result,
                                            int offset,
                                            int flavor,
                                            int num_tables)
      • storeTableEntry

        private static int storeTableEntry​(byte[] result,
                                           int offset,
                                           int tag)
      • computeOffsetToFirstTable

        private static int computeOffsetToFirstTable​(Woff2Dec.Woff2Header hdr)
      • readWoff2Header

        private static void readWoff2Header​(byte[] data,
                                            int length,
                                            Woff2Dec.Woff2Header hdr)
      • computeWoff2FinalSize

        public static int computeWoff2FinalSize​(byte[] data,
                                                int length)
      • convertWoff2ToTtf

        public static void convertWoff2ToTtf​(byte[] data,
                                             int length,
                                             Woff2Out out)