1 /* 2 * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * This code is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 only, as 7 * published by the Free Software Foundation. Oracle designates this 8 * particular file as subject to the "Classpath" exception as provided 9 * by Oracle in the LICENSE file that accompanied this code. 10 * 11 * This code is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 14 * version 2 for more details (a copy is included in the LICENSE file that 15 * accompanied this code). 16 * 17 * You should have received a copy of the GNU General Public License version 18 * 2 along with this work; if not, write to the Free Software Foundation, 19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 20 * 21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 22 * or visit www.oracle.com if you need additional information or have any 23 * questions. 24 */ 25 26 package com.sun.javafx.font; 27 28 public interface FontConstants { 29 /* useful tags */ 30 public static final int ttcfTag = 0x74746366; // 'ttcf' - TTC file 31 public static final int v1ttTag = 0x00010000; // 'v1tt' - Version 1 TT font 32 public static final int trueTag = 0x74727565; // 'true' - Version 2 TT font 33 public static final int ottoTag = 0x4f54544f; // 'otto' - OpenType CFF font 34 public static final int woffTag = 0x774F4646; // 'wOFF' - WOFF File Format 35 public static final int cmapTag = 0x636D6170; // 'cmap' 36 public static final int headTag = 0x68656164; // 'head' 37 public static final int hheaTag = 0x68686561; // 'hhea' 38 public static final int hmtxTag = 0x686D7478; // 'hmtx' 39 public static final int maxpTag = 0x6D617870; // 'maxp' 40 public static final int nameTag = 0x6E616D65; // 'name' 41 public static final int os_2Tag = 0x4F532F32; // 'OS/2' 42 public static final int postTag = 0x706F7374; // 'post' 43 44 /* sizes, in bytes, of TT/TTC header records */ 45 public static final int TTCHEADERSIZE = 12; 46 public static final int DIRECTORYHEADERSIZE = 12; 47 public static final int DIRECTORYENTRYSIZE = 16; 48 49 /* WOFF headers recored */ 50 public static final int WOFFHEADERSIZE = 44; 51 public static final int WOFFDIRECTORYENTRYSIZE = 20; 52 }