ttf-comic-mono-patched
LOW
maintainer Suggon
0 votes
scanned 2026-08-20 17:11:42.006138
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>
2
pkgname=ttf-comic-mono-patched
3
pkgver=1.0.0
4
pkgrel=1
5
pkgdesc='Comic Mono with corrected metadata and font weights'
6
license=('MIT')
7
arch=('any')
8
url='https://dtinth.github.io/comic-mono-font/'
9
makedepends=('git' 'fontforge')
10
provides=('comic-mono')
11
conflicts=('ttf-comic-mono-git')
12
13
_commit='95ef988207abadd99ca63f115773ee7fcbe0f420'
14
15
source=(
16
"git+https://github.com/dtinth/comic-mono-font.git#commit=${_commit}"
17
'patch_comicmono_bold.py'
18
)
19
sha256sums=(
20
'SKIP'
21
'3d036c21f10083111725f91ab78a4a704d5de9d5e312b881f5cf9dc7ca59cd37'
22
)
23
24
prepare() {
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
42
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-08-20 17:11:42 | Low | 1 |