@Override public String toString() { return "{ FamilyKind = " + getFamilyKind() + ", " + "SerifStyle = " + getSerifStyle() + ", " + "Weight = " + getWeight() + ", " + "Proportion = " + getProportion() + ", " + "Contrast = " + getContrast() + ", " + "StrokeVariation = " + getStrokeVariation() + ", " + "ArmStyle = " + getArmStyle() + ", " + "Letterform = " + getLetterform() + ", " + "Midline = " + getMidline() + ", " + "XHeight = " + getXHeight() + "}"; } }
if (panose.getFamilyKind() == info.getPanose().getFamilyKind()) if (panose.getFamilyKind() == 0 && (info.getPostScriptName().toLowerCase().contains("barcode") || info.getPostScriptName().startsWith("Code")) && if (panose.getSerifStyle() == info.getPanose().getSerifStyle()) else if (panose.getSerifStyle() >= 2 && panose.getSerifStyle() <= 5 && info.getPanose().getSerifStyle() >= 2 && info.getPanose().getSerifStyle() <= 5) else if (panose.getSerifStyle() >= 11 && panose.getSerifStyle() <= 13 && info.getPanose().getSerifStyle() >= 11 && info.getPanose().getSerifStyle() <= 13) else if (panose.getSerifStyle() != 0 && info.getPanose().getSerifStyle() != 0) int weight = info.getPanose().getWeight(); int weightClass = info.getWeightClassAsPanose(); if (Math.abs(weight - weightClass) > 2) if (panose.getWeight() == weight) else if (panose.getWeight() > 1 && weight > 1) float dist = Math.abs(panose.getWeight() - weight); match.score += 1 - dist * 0.5;
if (panose.getFamilyKind() == info.getPanose().getFamilyKind()) if (panose.getSerifStyle() == info.getPanose().getSerifStyle()) else if (panose.getSerifStyle() >= 2 && panose.getSerifStyle() <= 5 && info.getPanose().getSerifStyle() >= 2 && info.getPanose().getSerifStyle() <= 5) else if (panose.getSerifStyle() >= 11 && panose.getSerifStyle() <= 13 && info.getPanose().getSerifStyle() >= 11 && info.getPanose().getSerifStyle() <= 13) else if (panose.getSerifStyle() != 0 && info.getPanose().getSerifStyle() != 0) int weight = info.getPanose().getWeight(); int weightClass = info.getWeightClassAsPanose(); if (Math.abs(weight - weightClass) > 2) if (panose.getWeight() == weight) else if (panose.getWeight() > 1 && weight > 1) float dist = Math.abs(panose.getWeight() - weight); match.score += 1 - dist * 0.5;
@Override Object[][] getFlagBits() { PDPanoseClassification pc = new PDPanose(bytes).getPanose(); return new Object[][]{ {2, "Family Kind", pc.getFamilyKind(), getFamilyKindValue(pc.getFamilyKind())}, {3, "Serif Style", pc.getSerifStyle(), getSerifStyleValue(pc.getSerifStyle())}, {4, "Weight", pc.getWeight(), getWeightValue(pc.getWeight())}, {5, "Proportion", pc.getProportion(), getProportionValue(pc.getProportion())}, {6, "Contrast", pc.getContrast(), getContrastValue(pc.getContrast())}, {7, "Stroke Variation", pc.getStrokeVariation(), getStrokeVariationValue(pc.getStrokeVariation())}, {8, "Arm Style", pc.getArmStyle(), getArmStyleValue(pc.getArmStyle())}, {9, "Letterform", pc.getLetterform(), getLetterformValue(pc.getLetterform())}, {10, "Midline", pc.getMidline(), getMidlineValue(pc.getMidline())}, {11, "X-height", pc.getXHeight(), getXHeightValue(pc.getXHeight())}, }; }
if (panose.getFamilyKind() == info.getPanose().getFamilyKind()) if (panose.getFamilyKind() == 0 && (info.getPostScriptName().toLowerCase().contains("barcode") || info.getPostScriptName().startsWith("Code")) && if (panose.getSerifStyle() == info.getPanose().getSerifStyle()) else if (panose.getSerifStyle() >= 2 && panose.getSerifStyle() <= 5 && info.getPanose().getSerifStyle() >= 2 && info.getPanose().getSerifStyle() <= 5) else if (panose.getSerifStyle() >= 11 && panose.getSerifStyle() <= 13 && info.getPanose().getSerifStyle() >= 11 && info.getPanose().getSerifStyle() <= 13) else if (panose.getSerifStyle() != 0 && info.getPanose().getSerifStyle() != 0) int weight = info.getPanose().getWeight(); int weightClass = info.getWeightClassAsPanose(); if (Math.abs(weight - weightClass) > 2) if (panose.getWeight() == weight) else if (panose.getWeight() > 1 && weight > 1) float dist = Math.abs(panose.getWeight() - weight); match.score += 1 - dist * 0.5;
@Override public String toString() { return "{ FamilyKind = " + getFamilyKind() + ", " + "SerifStyle = " + getSerifStyle() + ", " + "Weight = " + getWeight() + ", " + "Proportion = " + getProportion() + ", " + "Contrast = " + getContrast() + ", " + "StrokeVariation = " + getStrokeVariation() + ", " + "ArmStyle = " + getArmStyle() + ", " + "Letterform = " + getLetterform() + ", " + "Midline = " + getMidline() + ", " + "XHeight = " + getXHeight() + "}"; } }
@Override public String toString() { return "{ FamilyKind = " + getFamilyKind() + ", " + "SerifStyle = " + getSerifStyle() + ", " + "Weight = " + getWeight() + ", " + "Proportion = " + getProportion() + ", " + "Contrast = " + getContrast() + ", " + "StrokeVariation = " + getStrokeVariation() + ", " + "ArmStyle = " + getArmStyle() + ", " + "Letterform = " + getLetterform() + ", " + "Midline = " + getMidline() + ", " + "XHeight = " + getXHeight() + "}"; } }