Skip to content

Commit f3e0e58

Browse files
committed
initial commit
WIP
0 parents  commit f3e0e58

File tree

3,708 files changed

+153074
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,708 files changed

+153074
-0
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.DS_Store
2+
venv
3+
build
4+
archive

LICENSE

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
Copyright (c) 2025, Qwerasd (Qwerasd.org),
2+
with Reserved Font Name Annotation Mono.
3+
4+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
5+
This license is copied below, and is also available with a FAQ at:
6+
https://openfontlicense.org
7+
8+
9+
-----------------------------------------------------------
10+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
11+
-----------------------------------------------------------
12+
13+
PREAMBLE
14+
The goals of the Open Font License (OFL) are to stimulate worldwide
15+
development of collaborative font projects, to support the font creation
16+
efforts of academic and linguistic communities, and to provide a free and
17+
open framework in which fonts may be shared and improved in partnership
18+
with others.
19+
20+
The OFL allows the licensed fonts to be used, studied, modified and
21+
redistributed freely as long as they are not sold by themselves. The
22+
fonts, including any derivative works, can be bundled, embedded,
23+
redistributed and/or sold with any software provided that any reserved
24+
names are not used by derivative works. The fonts and derivatives,
25+
however, cannot be released under any other type of license. The
26+
requirement for fonts to remain under this license does not apply
27+
to any document created using the fonts or their derivatives.
28+
29+
DEFINITIONS
30+
"Font Software" refers to the set of files released by the Copyright
31+
Holder(s) under this license and clearly marked as such. This may
32+
include source files, build scripts and documentation.
33+
34+
"Reserved Font Name" refers to any names specified as such after the
35+
copyright statement(s).
36+
37+
"Original Version" refers to the collection of Font Software components as
38+
distributed by the Copyright Holder(s).
39+
40+
"Modified Version" refers to any derivative made by adding to, deleting,
41+
or substituting -- in part or in whole -- any of the components of the
42+
Original Version, by changing formats or by porting the Font Software to a
43+
new environment.
44+
45+
"Author" refers to any designer, engineer, programmer, technical
46+
writer or other person who contributed to the Font Software.
47+
48+
PERMISSION & CONDITIONS
49+
Permission is hereby granted, free of charge, to any person obtaining
50+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
51+
redistribute, and sell modified and unmodified copies of the Font
52+
Software, subject to the following conditions:
53+
54+
1) Neither the Font Software nor any of its individual components,
55+
in Original or Modified Versions, may be sold by itself.
56+
57+
2) Original or Modified Versions of the Font Software may be bundled,
58+
redistributed and/or sold with any software, provided that each copy
59+
contains the above copyright notice and this license. These can be
60+
included either as stand-alone text files, human-readable headers or
61+
in the appropriate machine-readable metadata fields within text or
62+
binary files as long as those fields can be easily viewed by the user.
63+
64+
3) No Modified Version of the Font Software may use the Reserved Font
65+
Name(s) unless explicit written permission is granted by the corresponding
66+
Copyright Holder. This restriction only applies to the primary font name as
67+
presented to the users.
68+
69+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
70+
Software shall not be used to promote, endorse or advertise any
71+
Modified Version, except to acknowledge the contribution(s) of the
72+
Copyright Holder(s) and the Author(s) or with their explicit written
73+
permission.
74+
75+
5) The Font Software, modified or unmodified, in part or in whole,
76+
must be distributed entirely under this license, and must not be
77+
distributed under any other license. The requirement for fonts to
78+
remain under this license does not apply to any document created
79+
using the Font Software.
80+
81+
TERMINATION
82+
This license becomes null and void if any of the above conditions are
83+
not met.
84+
85+
DISCLAIMER
86+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
87+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
88+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
89+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
90+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
91+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
92+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
93+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
94+
OTHER DEALINGS IN THE FONT SOFTWARE.

activate.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh -e
2+
3+
cd "$(readlink -f "$(dirname "$0")")"
4+
5+
echo "Creating virtual environment..."
6+
python3 -m venv venv
7+
echo "Activating..."
8+
. ./venv/bin/activate
9+
echo ""
10+
echo "================"
11+
echo ""
12+
echo "Installing requirements..."
13+
pip3 install -r ./requirements.txt
14+
echo ""
15+
echo "================"
16+
echo ""
17+
echo "Done setting up virtual environment."
18+
echo "Use the venv in your shell by calling \`source venv/bin/activate\`, or \`. venv/bin/activate.fish\` for fish shell."
19+
echo "Deactivate with \`deactivate\`."

build.sh

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env sh
2+
3+
set -e
4+
5+
# Make sure we're starting from the root directory
6+
# of the repo where this build script is located.
7+
cd "$(readlink -f "$(dirname "$0")")"
8+
9+
# Activate python virtual environment.
10+
./activate.sh
11+
. ./venv/bin/activate
12+
13+
echo "Cleaning build dir..."
14+
mkdir -p ./build
15+
rm -rf ./build/*
16+
17+
# Process our file in to a form appropriate for building with fontmake.
18+
echo "Preparing UFOs..."
19+
fontra-workflow workflow.yaml --output-dir build
20+
# Copy the original designspace document to the build dir since for
21+
# some reason fontra-workflow strips the instance definitions from it...
22+
cp ./src/AnnotationMono.designspace ./build/AnnotationMono.designspace
23+
# Call prep script, fixes some stuff fontra messes up.
24+
python3 prepare_build.py
25+
26+
# Call fontmake to build our OTF and TTF fonts.
27+
echo "Making fonts..."
28+
29+
fontmake -f -m ./build/AnnotationMono.designspace \
30+
--filter DecomposeTransformedComponentsFilter \
31+
--filter PropagateAnchorsFilter \
32+
--fea-include-dir ./src/features/ \
33+
--output-dir ./dist/otf -o otf -i
34+
35+
fontmake -f -m ./build/AnnotationMono.designspace \
36+
--filter DecomposeTransformedComponentsFilter \
37+
--filter PropagateAnchorsFilter \
38+
--fea-include-dir ./src/features/ \
39+
--output-dir ./dist/ttf -o ttf -i
40+
41+
fontmake -f -m ./build/AnnotationMono.designspace \
42+
--filter DecomposeTransformedComponentsFilter \
43+
--filter PropagateAnchorsFilter \
44+
--fea-include-dir ./src/features/ \
45+
--output-dir ./dist/variable -o variable
46+
47+
# Fix GASP table to ensure quality rasterization in more scenarios.
48+
find ./dist/otf/*.otf -print0 | xargs -0 -I {} gftools fix-nonhinting --no-backup {} {}
49+
find ./dist/ttf/*.ttf -print0 | xargs -0 -I {} gftools fix-nonhinting --no-backup {} {}
50+
find ./dist/variable/*.ttf -print0 | xargs -0 -I {} gftools fix-nonhinting --no-backup {} {}
51+
52+
# Create woff2 fonts from our TTFs.
53+
find ./dist/ttf/*.ttf -print0 | xargs -0 -I {} woff2_compress {}
54+
mv ./dist/ttf/*.woff2 ./dist/woff2
55+
find ./dist/variable/*.ttf -print0 | xargs -0 -I {} woff2_compress {}
56+
mv ./dist/variable/*.woff2 ./dist/variable_woff2

dist/otf/Black.otf

60 KB
Binary file not shown.

dist/otf/Black_Oblique.otf

65 KB
Binary file not shown.

dist/otf/Bold.otf

57.6 KB
Binary file not shown.

dist/otf/Bold_Oblique.otf

62.6 KB
Binary file not shown.

dist/otf/DemiBold.otf

59.3 KB
Binary file not shown.

dist/otf/DemiBold_Oblique.otf

65 KB
Binary file not shown.

0 commit comments

Comments
 (0)