public Font(Library library, Hashtable entries) {
        super(library, entries);

        // name of object  "Font"
        name = library.getName(entries, "Name");

        // Type of the font, type 0, 1, 2, 3 etc.
        subtype = library.getName(entries, "Subtype");

        // figure out type
        subTypeFormat = (subtype.equalsIgnoreCase("type0") | subtype.toLowerCase().indexOf("cid") != -1) ?
                CID_FORMAT : SIMPLE_FORMAT;

        // font name, SanSerif is used as it has a a robust CID, and it
        // is the most commonly used font family for pdfs
        basefont = "Serif";
        if (entries.containsKey("BaseFont")) {
            Object o = entries.get("BaseFont");
            if (o instanceof Name) {
                basefont = ((Name) o).getName();
            }
        }
    }