resumectl 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/GLOSSARY.md +19 -0
  2. package/LICENSE +21 -0
  3. package/README.md +63 -2
  4. package/docs/adr/0001-domain-first-organization.md +32 -0
  5. package/docs/agents/domain.md +12 -0
  6. package/docs/agents/issue-tracker.md +10 -0
  7. package/docs/agents/triage-labels.md +11 -0
  8. package/docs/api.md +16 -0
  9. package/docs/configuration.md +83 -0
  10. package/docs/quality.md +36 -0
  11. package/docs/rendering.md +68 -0
  12. package/docs/sans.png +0 -0
  13. package/docs/serif.png +0 -0
  14. package/docs/setup.md +31 -0
  15. package/package.json +48 -4
  16. package/resume.config.schema.json +85 -0
  17. package/resume.config.yaml +65 -0
  18. package/skills/resumectl/SKILL.md +143 -0
  19. package/src/cli/main.ts +108 -0
  20. package/src/cli.ts +14 -0
  21. package/src/content/tex.ts +107 -0
  22. package/src/errors.ts +3 -0
  23. package/src/index.ts +22 -0
  24. package/src/project/config.ts +265 -0
  25. package/src/project/doctor.ts +76 -0
  26. package/src/project/init.ts +78 -0
  27. package/src/quality/gates.ts +113 -0
  28. package/src/quality/pdf.ts +84 -0
  29. package/src/rendering/assets.ts +4 -0
  30. package/src/rendering/compile.ts +101 -0
  31. package/src/rendering/font-metrics.ts +89 -0
  32. package/src/rendering/font-width.ts +11 -0
  33. package/src/rendering/measurements.ts +81 -0
  34. package/src/rendering/metrics/sans.json +122 -0
  35. package/src/rendering/metrics/serif.json +121 -0
  36. package/template/fonts/Inter-430.ttf +0 -0
  37. package/template/fonts/Inter-500.ttf +0 -0
  38. package/template/fonts/Inter-600.ttf +0 -0
  39. package/template/fonts/OFL-Inter.txt +93 -0
  40. package/template/resume-measure.tex +74 -0
  41. package/template/resume.cls +203 -0
@@ -0,0 +1,101 @@
1
+ // Compile with XeLaTeX or Tectonic and retain actual paragraph geometry for later checks.
2
+ import { existsSync } from "node:fs";
3
+ import { mkdir, mkdtemp, rm } from "node:fs/promises";
4
+ import { tmpdir } from "node:os";
5
+ import { basename, dirname, join, resolve } from "node:path";
6
+ import { layoutToClassOptions, resolveConfig, type LayoutOptions } from "../project/config.ts";
7
+ import { hash, manifestPath, parseMeasurements, type BuildManifest } from "./measurements.ts";
8
+ import { resolveInputs } from "../content/tex.ts";
9
+
10
+ import { TEMPLATE_DIR, FONT_DIR } from "./assets.ts";
11
+ export { TEMPLATE_DIR, FONT_DIR } from "./assets.ts";
12
+ export interface BuildOptions { outDir?: string; layout?: LayoutOptions }
13
+ export interface BuildResult {
14
+ pdfPath: string;
15
+ logPath: string;
16
+ manifestPath: string;
17
+ output: string;
18
+ }
19
+ export class BuildError extends Error {}
20
+ export type TexEngine = "xelatex" | "tectonic";
21
+
22
+ /** XeLaTeX when installed, else Tectonic, which downloads TeX packages on first use. */
23
+ export function texEngine(): TexEngine | null {
24
+ const forced = process.env.RESUMECTL_ENGINE;
25
+ if (forced === "xelatex" || forced === "tectonic") return forced;
26
+ return Bun.which("xelatex") ? "xelatex" : Bun.which("tectonic") ? "tectonic" : null;
27
+ }
28
+ /** Whether Tectonic has built its format before; until then a build downloads about 45 MB. */
29
+ export function tectonicCacheReady(): boolean {
30
+ const result = Bun.spawnSync(["tectonic", "-X", "show", "user-cache-dir"], { stdout: "pipe", stderr: "pipe", timeout: 10_000 });
31
+ return result.exitCode === 0 && existsSync(join(dirname(result.stdout.toString().trim()), "formats"));
32
+ }
33
+
34
+ function texPathLiteral(path: string): string {
35
+ if (/[{}%#\\\r\n]/.test(path)) throw new BuildError(`path contains characters unsupported by TeX: ${path}`);
36
+ return `\\detokenize{${path}}`;
37
+ }
38
+ /** The string second argument remains supported for existing library consumers. */
39
+ export async function compile(texPath: string, options: string | BuildOptions = {}): Promise<BuildResult> {
40
+ texPath = resolve(texPath);
41
+ const opts = typeof options === "string" ? { outDir: options } : options;
42
+ if (!/\.tex$/i.test(texPath)) throw new BuildError("source must have a .tex extension");
43
+ const { config } = await resolveConfig({ texPath, configPath: opts.layout ? null : undefined, overrides: {
44
+ ...(opts.layout ? { layout: opts.layout } : {}), ...(opts.outDir ? { build: { outDir: opts.outDir } } : {}),
45
+ } });
46
+ const tex = await resolveInputs(await Bun.file(texPath).text(), texPath);
47
+ const job = basename(texPath).replace(/\.tex$/i, "");
48
+ texPathLiteral(job);
49
+ const out = resolve(config.build.outDir!);
50
+ await mkdir(out, { recursive: true });
51
+ const pdfPath = join(out, `${job}.pdf`);
52
+ const logPath = join(out, `${job}.log`);
53
+ const measurementPath = join(out, `${job}.rmlayout`);
54
+ const metadataPath = manifestPath(pdfPath);
55
+ // Neither old PDFs nor old measurements may survive a failed compile.
56
+ await Promise.all([pdfPath, metadataPath, measurementPath].map(p => rm(p, { force: true })));
57
+ const engine = texEngine();
58
+ if (!engine) throw new BuildError("no TeX engine found; install Tectonic (brew install tectonic) or TinyTeX-1, then run resumectl doctor");
59
+ const setup = `\\edef\\ResumeFontDir{${texPathLiteral(FONT_DIR + "/")}}\\def\\ResumeMeasure{1}`
60
+ + `\\def\\ResumeConfigOptions{${layoutToClassOptions(config.layout)}}`;
61
+ // Tectonic reads a file rather than TeX code; a same-named wrapper keeps the job name.
62
+ const wrapperDir = engine === "tectonic" ? await mkdtemp(join(tmpdir(), "resumectl-")) : null;
63
+ let proc: ReturnType<typeof Bun.spawnSync>;
64
+ try {
65
+ let command: string[];
66
+ if (wrapperDir) {
67
+ const wrapper = join(wrapperDir, `${job}.tex`);
68
+ await Bun.write(wrapper, `${setup}\\input{${texPathLiteral(texPath)}}\n`);
69
+ command = ["tectonic", "--chatter", "minimal", "--keep-logs", "--keep-intermediates", "-o", out,
70
+ "-Z", `search-path=${TEMPLATE_DIR}`, "-Z", `search-path=${dirname(texPath)}`, wrapper];
71
+ } else {
72
+ command = ["xelatex", "-interaction=nonstopmode", "-halt-on-error", "-no-shell-escape",
73
+ `-output-directory=${out}`, `-jobname=${job}`, `${setup}\\input{${texPathLiteral(basename(texPath))}}`];
74
+ }
75
+ proc = Bun.spawnSync(command, {
76
+ cwd: dirname(texPath),
77
+ env: { ...process.env, TEXINPUTS: `${TEMPLATE_DIR}//:${process.env.TEXINPUTS ?? ""}` },
78
+ stdout: "pipe", stderr: "pipe",
79
+ });
80
+ } finally {
81
+ if (wrapperDir) await rm(wrapperDir, { recursive: true, force: true });
82
+ }
83
+ const output = (proc.stdout!.toString() + proc.stderr!.toString()).split("\n").slice(-40).join("\n");
84
+ if (proc.exitCode !== 0 || !await Bun.file(pdfPath).exists()) {
85
+ await rm(pdfPath, { force: true });
86
+ throw new BuildError(`${engine} failed${proc.signalCode ? ` (${proc.signalCode})` : ""}\n\n${output}`);
87
+ }
88
+ if (!await Bun.file(measurementPath).exists()) throw new BuildError("the resume class did not emit layout measurements; remove any outdated local resume.cls");
89
+ const log = await Bun.file(logPath).text();
90
+ const manifest: BuildManifest = {
91
+ version: 1, sourceHash: hash(tex), pdfHash: hash(await Bun.file(pdfPath).bytes()), layout: config.layout,
92
+ bullets: parseMeasurements(await Bun.file(measurementPath).text()),
93
+ overflows: [...log.matchAll(/Overfull \\[hv]box \([^\n]+/g)].map(m => m[0]),
94
+ };
95
+ await Bun.write(metadataPath, JSON.stringify(manifest, null, 2) + "\n");
96
+ return { pdfPath, logPath, manifestPath: metadataPath, output };
97
+ }
98
+ export async function cleanIntermediates(pdfPath: string): Promise<void> {
99
+ const stem = pdfPath.replace(/\.pdf$/i, "");
100
+ await Promise.all(["aux", "log", "out", "rmlayout"].map(ext => rm(`${stem}.${ext}`, { force: true })));
101
+ }
@@ -0,0 +1,89 @@
1
+ // Minimal sfnt reader: advance widths for a set of characters, straight from a
2
+ // TrueType/OpenType file's cmap + hmtx tables. Used by scripts/gen-metrics.ts.
3
+
4
+ export interface FontMetrics {
5
+ /** Font file the table was generated from (basename only). */
6
+ source: string;
7
+ /** Advance widths in 1/1000 em, keyed by character. */
8
+ widths: Record<string, number>;
9
+ }
10
+
11
+ function tables(view: DataView): Map<string, number> {
12
+ const count = view.getUint16(4);
13
+ const out = new Map<string, number>();
14
+ for (let i = 0; i < count; i++) {
15
+ const rec = 12 + i * 16;
16
+ const tag = String.fromCharCode(...[0, 1, 2, 3].map(k => view.getUint8(rec + k)));
17
+ out.set(tag, view.getUint32(rec + 8));
18
+ }
19
+ return out;
20
+ }
21
+
22
+ /** Unicode code point → glyph id, from a format 4 or format 12 cmap subtable. */
23
+ function readCmap(view: DataView, cmap: number): (cp: number) => number {
24
+ const n = view.getUint16(cmap + 2);
25
+ let best: { format: number; offset: number } | null = null;
26
+ for (let i = 0; i < n; i++) {
27
+ const rec = cmap + 4 + i * 8;
28
+ const platform = view.getUint16(rec);
29
+ const encoding = view.getUint16(rec + 2);
30
+ const offset = cmap + view.getUint32(rec + 4);
31
+ const format = view.getUint16(offset);
32
+ const unicode = platform === 0 || (platform === 3 && (encoding === 1 || encoding === 10));
33
+ if (unicode && (format === 12 || (format === 4 && best?.format !== 12))) best = { format, offset };
34
+ }
35
+ if (!best) throw new Error("no Unicode cmap subtable");
36
+ const { format, offset } = best;
37
+
38
+ if (format === 12) {
39
+ const groups = view.getUint32(offset + 12);
40
+ return cp => {
41
+ for (let g = 0; g < groups; g++) {
42
+ const rec = offset + 16 + g * 12;
43
+ const start = view.getUint32(rec);
44
+ const end = view.getUint32(rec + 4);
45
+ if (cp >= start && cp <= end) return view.getUint32(rec + 8) + (cp - start);
46
+ }
47
+ return 0;
48
+ };
49
+ }
50
+
51
+ const segX2 = view.getUint16(offset + 6);
52
+ const ends = offset + 14;
53
+ const starts = ends + segX2 + 2;
54
+ const deltas = starts + segX2;
55
+ const ranges = deltas + segX2;
56
+ return cp => {
57
+ for (let s = 0; s < segX2; s += 2) {
58
+ if (cp > view.getUint16(ends + s)) continue;
59
+ const start = view.getUint16(starts + s);
60
+ if (cp < start) return 0;
61
+ const delta = view.getInt16(deltas + s);
62
+ const rangeOffset = view.getUint16(ranges + s);
63
+ if (rangeOffset === 0) return (cp + delta) & 0xffff;
64
+ const glyph = view.getUint16(ranges + s + rangeOffset + (cp - start) * 2);
65
+ return glyph === 0 ? 0 : (glyph + delta) & 0xffff;
66
+ }
67
+ return 0;
68
+ };
69
+ }
70
+
71
+ export async function readFontMetrics(path: string, chars: string): Promise<FontMetrics> {
72
+ const view = new DataView(await Bun.file(path).arrayBuffer());
73
+ const t = tables(view);
74
+ const head = t.get("head"), hhea = t.get("hhea"), hmtx = t.get("hmtx"), cmap = t.get("cmap");
75
+ if (head === undefined || hhea === undefined || hmtx === undefined || cmap === undefined) {
76
+ throw new Error(`${path}: missing head/hhea/hmtx/cmap table`);
77
+ }
78
+ const unitsPerEm = view.getUint16(head + 18);
79
+ const numHMetrics = view.getUint16(hhea + 34);
80
+ const glyphOf = readCmap(view, cmap);
81
+ const advance = (gid: number) => view.getUint16(hmtx + 4 * Math.min(gid, numHMetrics - 1));
82
+
83
+ const widths: Record<string, number> = {};
84
+ for (const ch of chars) {
85
+ const gid = glyphOf(ch.codePointAt(0)!);
86
+ if (gid !== 0) widths[ch] = Math.round((advance(gid) * 1000) / unitsPerEm);
87
+ }
88
+ return { source: path.split("/").pop()!, widths };
89
+ }
@@ -0,0 +1,11 @@
1
+ import serifMetrics from "./metrics/serif.json";
2
+ import sansMetrics from "./metrics/sans.json";
3
+ import type { ClassOptions } from "../content/tex.ts";
4
+
5
+ /** Legacy width estimate retained for API consumers; never used by the gates. */
6
+ export function typographicWidth(visible: string, opts: ClassOptions): number {
7
+ const table: Record<string, number> = opts.style === "sans" ? sansMetrics.widths : serifMetrics.widths;
8
+ let units = 0;
9
+ for (const ch of visible) units += (table[ch] ?? 500) + opts.tracking * 10;
10
+ return Math.round(units * opts.scale);
11
+ }
@@ -0,0 +1,81 @@
1
+ import { InputError } from "../errors.ts";
2
+ import type { LayoutOptions } from "../project/config.ts";
3
+
4
+ export interface RenderedBullet {
5
+ id: number;
6
+ section: string;
7
+ lines: number;
8
+ lineWidthPt: number;
9
+ lastLineWidthPt: number;
10
+ lastLineFill: number;
11
+ unsupported: boolean;
12
+ }
13
+ export interface BuildManifest {
14
+ version: 1;
15
+ sourceHash: string;
16
+ pdfHash: string;
17
+ layout: LayoutOptions;
18
+ bullets: RenderedBullet[];
19
+ overflows: string[];
20
+ }
21
+ export const hash = (data: string | Uint8Array) => new Bun.CryptoHasher("sha256").update(data).digest("hex");
22
+ export const manifestPath = (pdf: string) => pdf.replace(/\.pdf$/i, "") + ".resumectl.json";
23
+
24
+ /** Read positions in scaled TeX points. No font-width approximation is involved. */
25
+ export function parseMeasurements(raw: string): RenderedBullet[] {
26
+ type Paragraph = { width?: number; start?: number; end?: number; lines?: number };
27
+ const bullets = new Map<number, { section: string; unsupported: boolean; paragraphs: Map<number, Paragraph> }>();
28
+ for (const line of raw.trim().split(/\r?\n/).filter(Boolean)) {
29
+ const [tag, idText, paraText, value] = line.split("|");
30
+ const id = Number(idText);
31
+ if (!Number.isInteger(id) || id < 1) throw new InputError("invalid bullet measurement ID; rebuild the PDF");
32
+ if (tag === "B") {
33
+ if (bullets.has(id)) throw new InputError("duplicate bullet measurement ID; rebuild the PDF");
34
+ bullets.set(id, { section: line.split("|").slice(2).join("|"), unsupported: false, paragraphs: new Map() });
35
+ continue;
36
+ }
37
+ const bullet = bullets.get(id);
38
+ if (!bullet) throw new InputError("incomplete bullet measurements; rebuild the PDF");
39
+ if (tag === "U") { bullet.unsupported = true; continue; }
40
+ const paragraph = Number(paraText);
41
+ const n = Number(value);
42
+ if (!["P", "S", "E", "L"].includes(tag) || !Number.isInteger(paragraph) || paragraph < 1 || !Number.isFinite(n)) {
43
+ throw new InputError("invalid paragraph measurements; rebuild the PDF");
44
+ }
45
+ const p = bullet.paragraphs.get(paragraph) ?? {};
46
+ const key = ({ P: "width", S: "start", E: "end", L: "lines" } as const)[tag as "P" | "S" | "E" | "L"];
47
+ if (p[key] !== undefined) throw new InputError("duplicate paragraph measurement; unsupported bullet structure");
48
+ p[key] = n;
49
+ bullet.paragraphs.set(paragraph, p);
50
+ }
51
+ return [...bullets].map(([id, bullet]) => {
52
+ const paragraphs = [...bullet.paragraphs].sort(([a], [b]) => a - b).map(([, p]) => p);
53
+ if (!paragraphs.length || paragraphs.some(p => !(p.width! > 0) || !Number.isInteger(p.lines) || p.lines! < 1 || p.start === undefined || p.end === undefined)) {
54
+ throw new InputError(`bullet ${id} has no complete rendered measurements; use ordinary itemize paragraphs`);
55
+ }
56
+ const last = paragraphs.at(-1)!;
57
+ const width = last.end! - last.start!;
58
+ if (width < 0) throw new InputError(`bullet ${id} has an unsupported paragraph layout`);
59
+ return {
60
+ id, section: bullet.section, lines: paragraphs.reduce((n, p) => n + p.lines!, 0),
61
+ lineWidthPt: last.width! / 65536, lastLineWidthPt: width / 65536,
62
+ lastLineFill: width / last.width!, unsupported: bullet.unsupported,
63
+ };
64
+ });
65
+ }
66
+
67
+ export async function readManifest(pdfPath: string): Promise<BuildManifest> {
68
+ const path = manifestPath(pdfPath);
69
+ if (!await Bun.file(path).exists()) throw new InputError(`render measurements not found: ${path}; run resumectl build first`);
70
+ let value: BuildManifest;
71
+ try { value = await Bun.file(path).json(); }
72
+ catch { throw new InputError(`invalid build metadata: ${path}; rebuild the PDF`); }
73
+ if (!value || value.version !== 1 || !value.layout || typeof value.sourceHash !== "string" || typeof value.pdfHash !== "string" || !Array.isArray(value.bullets) || !Array.isArray(value.overflows)
74
+ || value.overflows.some(v => typeof v !== "string")
75
+ || value.bullets.some(b => !b || typeof b.section !== "string" || !Number.isInteger(b.id) || b.id < 1 || !Number.isInteger(b.lines) || b.lines < 1
76
+ || !Number.isFinite(b.lineWidthPt) || b.lineWidthPt <= 0 || !Number.isFinite(b.lastLineWidthPt) || b.lastLineWidthPt < 0
77
+ || !Number.isFinite(b.lastLineFill) || b.lastLineFill < 0 || typeof b.unsupported !== "boolean")) {
78
+ throw new InputError(`invalid build metadata: ${path}; rebuild the PDF`);
79
+ }
80
+ return value;
81
+ }
@@ -0,0 +1,122 @@
1
+ {
2
+ "source": "Inter-430.ttf",
3
+ "widths": {
4
+ "0": 635,
5
+ "1": 409,
6
+ "2": 612,
7
+ "3": 621,
8
+ "4": 649,
9
+ "5": 596,
10
+ "6": 623,
11
+ "7": 567,
12
+ "8": 622,
13
+ "9": 623,
14
+ " ": 277,
15
+ "!": 292,
16
+ "\"": 475,
17
+ "#": 635,
18
+ "$": 643,
19
+ "%": 985,
20
+ "&": 647,
21
+ "'": 304,
22
+ "(": 366,
23
+ ")": 366,
24
+ "*": 507,
25
+ "+": 664,
26
+ ",": 292,
27
+ "-": 461,
28
+ ".": 292,
29
+ "/": 363,
30
+ ":": 292,
31
+ ";": 306,
32
+ "<": 664,
33
+ "=": 664,
34
+ ">": 664,
35
+ "?": 516,
36
+ "@": 971,
37
+ "A": 696,
38
+ "B": 655,
39
+ "C": 731,
40
+ "D": 722,
41
+ "E": 602,
42
+ "F": 590,
43
+ "G": 747,
44
+ "H": 744,
45
+ "I": 270,
46
+ "J": 572,
47
+ "K": 677,
48
+ "L": 565,
49
+ "M": 906,
50
+ "N": 754,
51
+ "O": 765,
52
+ "P": 640,
53
+ "Q": 766,
54
+ "R": 645,
55
+ "S": 643,
56
+ "T": 648,
57
+ "U": 743,
58
+ "V": 696,
59
+ "W": 991,
60
+ "X": 688,
61
+ "Y": 684,
62
+ "Z": 632,
63
+ "[": 366,
64
+ "\\": 363,
65
+ "]": 366,
66
+ "^": 473,
67
+ "_": 458,
68
+ "`": 327,
69
+ "a": 563,
70
+ "b": 614,
71
+ "c": 573,
72
+ "d": 614,
73
+ "e": 584,
74
+ "f": 373,
75
+ "g": 615,
76
+ "h": 594,
77
+ "i": 245,
78
+ "j": 245,
79
+ "k": 552,
80
+ "l": 245,
81
+ "m": 879,
82
+ "n": 594,
83
+ "o": 601,
84
+ "p": 614,
85
+ "q": 614,
86
+ "r": 379,
87
+ "s": 531,
88
+ "t": 331,
89
+ "u": 594,
90
+ "v": 566,
91
+ "w": 821,
92
+ "x": 549,
93
+ "y": 566,
94
+ "z": 554,
95
+ "{": 431,
96
+ "|": 336,
97
+ "}": 431,
98
+ "~": 664,
99
+ "–": 500,
100
+ "—": 1000,
101
+ "·": 292,
102
+ "•": 554,
103
+ "→": 954,
104
+ "←": 954,
105
+ "↑": 841,
106
+ "↓": 841,
107
+ "↗": 776,
108
+ "×": 664,
109
+ "±": 664,
110
+ "≈": 664,
111
+ "≤": 664,
112
+ "≥": 664,
113
+ "°": 456,
114
+ "€": 668,
115
+ "£": 614,
116
+ "’": 266,
117
+ "‘": 266,
118
+ "“": 450,
119
+ "”": 450,
120
+ "…": 878
121
+ }
122
+ }
@@ -0,0 +1,121 @@
1
+ {
2
+ "source": "texgyretermes-regular.otf",
3
+ "widths": {
4
+ "0": 500,
5
+ "1": 500,
6
+ "2": 500,
7
+ "3": 500,
8
+ "4": 500,
9
+ "5": 500,
10
+ "6": 500,
11
+ "7": 500,
12
+ "8": 500,
13
+ "9": 500,
14
+ " ": 250,
15
+ "!": 333,
16
+ "\"": 408,
17
+ "#": 500,
18
+ "$": 500,
19
+ "%": 833,
20
+ "&": 778,
21
+ "'": 180,
22
+ "(": 333,
23
+ ")": 333,
24
+ "*": 500,
25
+ "+": 564,
26
+ ",": 250,
27
+ "-": 333,
28
+ ".": 250,
29
+ "/": 278,
30
+ ":": 278,
31
+ ";": 278,
32
+ "<": 564,
33
+ "=": 564,
34
+ ">": 564,
35
+ "?": 444,
36
+ "@": 921,
37
+ "A": 722,
38
+ "B": 667,
39
+ "C": 667,
40
+ "D": 722,
41
+ "E": 611,
42
+ "F": 556,
43
+ "G": 722,
44
+ "H": 722,
45
+ "I": 333,
46
+ "J": 389,
47
+ "K": 722,
48
+ "L": 611,
49
+ "M": 889,
50
+ "N": 722,
51
+ "O": 722,
52
+ "P": 556,
53
+ "Q": 722,
54
+ "R": 667,
55
+ "S": 556,
56
+ "T": 611,
57
+ "U": 722,
58
+ "V": 722,
59
+ "W": 944,
60
+ "X": 722,
61
+ "Y": 722,
62
+ "Z": 611,
63
+ "[": 333,
64
+ "\\": 278,
65
+ "]": 333,
66
+ "^": 469,
67
+ "_": 500,
68
+ "`": 333,
69
+ "a": 444,
70
+ "b": 500,
71
+ "c": 444,
72
+ "d": 500,
73
+ "e": 444,
74
+ "f": 333,
75
+ "g": 500,
76
+ "h": 500,
77
+ "i": 278,
78
+ "j": 278,
79
+ "k": 500,
80
+ "l": 278,
81
+ "m": 778,
82
+ "n": 500,
83
+ "o": 500,
84
+ "p": 500,
85
+ "q": 500,
86
+ "r": 333,
87
+ "s": 389,
88
+ "t": 278,
89
+ "u": 500,
90
+ "v": 500,
91
+ "w": 722,
92
+ "x": 500,
93
+ "y": 500,
94
+ "z": 444,
95
+ "{": 480,
96
+ "|": 200,
97
+ "}": 480,
98
+ "~": 541,
99
+ "–": 500,
100
+ "—": 1000,
101
+ "·": 250,
102
+ "•": 350,
103
+ "→": 1000,
104
+ "←": 1000,
105
+ "↑": 653,
106
+ "↓": 653,
107
+ "×": 564,
108
+ "±": 564,
109
+ "≈": 564,
110
+ "≤": 564,
111
+ "≥": 564,
112
+ "°": 400,
113
+ "€": 500,
114
+ "£": 500,
115
+ "’": 333,
116
+ "‘": 333,
117
+ "“": 444,
118
+ "”": 444,
119
+ "…": 1000
120
+ }
121
+ }
Binary file
Binary file
Binary file
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Inter Project Authors (https://github.com/rsms/inter)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ https://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.