rhwp 0.9.1

HWP/HWPX document engine for Rust applications, WebAssembly, and CLI automation
Documentation
// Generated by scripts/generate_core14_metrics.py; do not edit.
// Adobe AFM values, in 1/1000 em. Inputs, copyrights and license:
// data/font-metrics/adobe-core14/{*.afm,MustRead.html}.
// Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated.
// All Rights Reserved. Helvetica is a trademark of Linotype-Hell AG
// and/or its subsidiaries.

// Helvetica.afm SHA-256: da33f1870474c8e68bfe3e2353ff107ab6c6eea1f9836ce2aaf1e1a07b17982f
static CORE14_0_WIDTHS: [u16; 95] = [
    278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556,
    556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584, 584, 556, 1015, 667, 667, 722, 722, 667,
    611, 778, 722, 278, 500, 667, 556, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667,
    667, 611, 278, 278, 278, 469, 556, 333, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500,
    222, 833, 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334, 584,
];
static CORE14_0_RANGES: [LatinRange; 1] = [LatinRange {
    start: 0x20,
    end: 0x7e,
    widths: &CORE14_0_WIDTHS,
}];
// Helvetica-Bold.afm SHA-256: b880d96baf56d0cc059f258f60b4d764ef49b555ab9db294b959c0016dee41f2
static CORE14_1_WIDTHS: [u16; 95] = [
    278, 333, 474, 556, 556, 889, 722, 238, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556,
    556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584, 584, 611, 975, 722, 722, 722, 722, 667,
    611, 778, 722, 278, 556, 722, 611, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667,
    667, 611, 333, 278, 333, 584, 556, 333, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556,
    278, 889, 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389, 584,
];
static CORE14_1_RANGES: [LatinRange; 1] = [LatinRange {
    start: 0x20,
    end: 0x7e,
    widths: &CORE14_1_WIDTHS,
}];
// Helvetica-Oblique.afm SHA-256: b4609b71b660a392ac09df35060271a876c2ce66617dd83bf826f742bb9d9721
static CORE14_2_WIDTHS: [u16; 95] = [
    278, 278, 355, 556, 556, 889, 667, 191, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556,
    556, 556, 556, 556, 556, 556, 556, 278, 278, 584, 584, 584, 556, 1015, 667, 667, 722, 722, 667,
    611, 778, 722, 278, 500, 667, 556, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667,
    667, 611, 278, 278, 278, 469, 556, 333, 556, 556, 500, 556, 556, 278, 556, 556, 222, 222, 500,
    222, 833, 556, 556, 556, 556, 333, 500, 278, 556, 500, 722, 500, 500, 500, 334, 260, 334, 584,
];
static CORE14_2_RANGES: [LatinRange; 1] = [LatinRange {
    start: 0x20,
    end: 0x7e,
    widths: &CORE14_2_WIDTHS,
}];
// Helvetica-BoldOblique.afm SHA-256: 69984a35ca26973a39f261cf83e0d367ea2e6517c590b0b030d4d4a219d9c269
static CORE14_3_WIDTHS: [u16; 95] = [
    278, 333, 474, 556, 556, 889, 722, 238, 333, 333, 389, 584, 278, 333, 278, 278, 556, 556, 556,
    556, 556, 556, 556, 556, 556, 556, 333, 333, 584, 584, 584, 611, 975, 722, 722, 722, 722, 667,
    611, 778, 722, 278, 556, 722, 611, 833, 722, 778, 667, 778, 722, 667, 611, 722, 667, 944, 667,
    667, 611, 333, 278, 333, 584, 556, 333, 556, 611, 556, 611, 556, 333, 611, 611, 278, 278, 556,
    278, 889, 611, 611, 611, 611, 389, 556, 333, 611, 556, 778, 556, 556, 500, 389, 280, 389, 584,
];
static CORE14_3_RANGES: [LatinRange; 1] = [LatinRange {
    start: 0x20,
    end: 0x7e,
    widths: &CORE14_3_WIDTHS,
}];
static CORE14_FONT_METRICS: [FontMetric; 7] = [
    FontMetric {
        name: "Helvetica",
        bold: false,
        italic: false,
        em_size: 1000,
        latin_ranges: &CORE14_0_RANGES,
        hangul: None,
    },
    FontMetric {
        name: "Helvetica",
        bold: true,
        italic: false,
        em_size: 1000,
        latin_ranges: &CORE14_1_RANGES,
        hangul: None,
    },
    FontMetric {
        name: "Helvetica-Bold",
        bold: true,
        italic: false,
        em_size: 1000,
        latin_ranges: &CORE14_1_RANGES,
        hangul: None,
    },
    FontMetric {
        name: "Helvetica",
        bold: false,
        italic: true,
        em_size: 1000,
        latin_ranges: &CORE14_2_RANGES,
        hangul: None,
    },
    FontMetric {
        name: "Helvetica-Oblique",
        bold: false,
        italic: true,
        em_size: 1000,
        latin_ranges: &CORE14_2_RANGES,
        hangul: None,
    },
    FontMetric {
        name: "Helvetica",
        bold: true,
        italic: true,
        em_size: 1000,
        latin_ranges: &CORE14_3_RANGES,
        hangul: None,
    },
    FontMetric {
        name: "Helvetica-BoldOblique",
        bold: true,
        italic: true,
        em_size: 1000,
        latin_ranges: &CORE14_3_RANGES,
        hangul: None,
    },
];