ttf-comic-mono-patched

LOW
maintainer Suggon 0 votes scanned 2026-08-20 17:11:42.006138
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Suggon <maharjansagun99@protonmail.com>
2pkgname=ttf-comic-mono-patched
3pkgver=1.0.0
4pkgrel=1
5pkgdesc='Comic Mono with corrected metadata and font weights'
6license=('MIT')
7arch=('any')
8url='https://dtinth.github.io/comic-mono-font/'
9makedepends=('git' 'fontforge')
10provides=('comic-mono')
11conflicts=('ttf-comic-mono-git')
12
13_commit='95ef988207abadd99ca63f115773ee7fcbe0f420'
14
15source=(
16 "git+https://github.com/dtinth/comic-mono-font.git#commit=${_commit}"
17 'patch_comicmono_bold.py'
18)
19sha256sums=(
20 'SKIP'
21 '3d036c21f10083111725f91ab78a4a704d5de9d5e312b881f5cf9dc7ca59cd37'
22)
23
24prepare() {
25 cd "$srcdir/comic-mono-font"
26
27 # Problem 1: ComicMono-Bold's OS/2 weight is "400 Regular" -- same as the
28 # regular ComicMono. This causes `fontconfig` to pick up the "bold" variant
29 # if the system has both weights installed.
30
31 # Problem 2: ComicMono-Bold is closer to a "Medium" weight, contrary to its
32 # name. If Problem 1 is solved, it's now impossible to distinguish bold text in
33 # paragraphs with mixed styles.
34
35 # Solution: Rename ComicMono-Bold and its metadata to "Medium", and let the
36 # application itself synthesize a "Bold" variant for the family by emboldening
37 # the existing "Regular" variant.
38
39 fontforge -script "$srcdir/patch_comicmono_bold.py"
40}
41
42package() {
43 cd "$srcdir/comic-mono-font"
44
45 install -Dm644 'ComicMono.ttf' -t "${pkgdir}/usr/share/fonts/TTF"
46 install -Dm644 'ComicMono-Medium.ttf' -t "${pkgdir}/usr/share/fonts/TTF"
47 install -Dm644 'LICENSE' -t "${pkgdir}/usr/share/licenses/${pkgname%-*}"
48}
49

Scan history

Scanned at (UTC)SeverityRules
2026-08-20 17:11:42 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion