Class WoffConverter


  • class WoffConverter
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long woffSignature  
    • Constructor Summary

      Constructors 
      Constructor Description
      WoffConverter()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static long bytesToUInt​(byte[] b, int start)  
      private static int bytesToUShort​(byte[] b, int start)  
      static byte[] convert​(byte[] woffBytes)  
      static boolean isWoffFont​(byte[] woffBytes)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WoffConverter

        WoffConverter()
    • Method Detail

      • isWoffFont

        public static boolean isWoffFont​(byte[] woffBytes)
      • convert

        public static byte[] convert​(byte[] woffBytes)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • bytesToUInt

        private static long bytesToUInt​(byte[] b,
                                        int start)
      • bytesToUShort

        private static int bytesToUShort​(byte[] b,
                                         int start)