Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Commit

Permalink
Move src/fonts/OTF/TeX to src/fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
ylemkimon committed Sep 5, 2018
1 parent 393a3ba commit 3a76616
Show file tree
Hide file tree
Showing 14 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Expand Up @@ -13,12 +13,12 @@ jobs:
cd src
cp default.cfg custom.cfg
make custom.cfg.pl
make -C fonts/OTF/TeX fonts
make -C fonts/ fonts
cd ..
rm -f fonts/*.*
cp src/fonts/OTF/TeX/ttf/*.ttf fonts
cp src/fonts/OTF/TeX/woff/*.woff fonts
cp src/fonts/OTF/TeX/woff2/*.woff2 fonts
cp src/fonts/ttf/*.ttf fonts
cp src/fonts/woff/*.woff fonts
cp src/fonts/woff2/*.woff2 fonts
tar zcf fonts.tar.gz fonts
- run:
Expand Down
12 changes: 6 additions & 6 deletions buildFonts.sh
Expand Up @@ -58,11 +58,11 @@ IMAGE="katex/fonts:DF-$(openssl sha1 Dockerfile | tail -c 9)"
TMPFILE="$(mktemp "${TMPDIR:-/tmp}/mjf.XXXXXXXX")"
FILE="$TMPFILE"
pushd "src"
if [[ ! -f fonts/OTF/TeX/Makefile ]]; then
echo "src does not look like MathJax-dev" >&2
if [[ ! -f fonts/Makefile ]]; then
echo "src does not look like katex-fonts" >&2
exit 1
fi
tar cf "$FILE" Makefile default.cfg fonts/OTF/TeX
tar cf "$FILE" Makefile default.cfg fonts
popd

# build image if missing
Expand All @@ -76,8 +76,8 @@ export SOURCE_DATE_EPOCH=${LAST_COMMIT_DATE}
tar xf MathJax-dev.tar.gz
cp default.cfg custom.cfg
make custom.cfg.pl
make -C fonts/OTF/TeX fonts
tar cf /fonts.tar ${filetypes[*]/#/fonts/OTF/TeX/}"
make -C fonts fonts
tar cf /fonts.tar ${filetypes[*]/#/fonts/}"

echo "Creating and starting docker container from image $IMAGE"
CONTAINER=$(docker create "$IMAGE" /bin/sh -c "${CMDS}")
Expand All @@ -95,7 +95,7 @@ mkdir fonts
for filetype in "${filetypes[@]}"; do
for font in "${used_fonts[@]}"; do
echo "$filetype/$font"
mv "temp/OTF/TeX/$filetype/$font".* ./fonts/
mv "temp/$filetype/$font".* ./fonts/
done
done
rm -rf temp fonts.tar
File renamed without changes.
2 changes: 1 addition & 1 deletion src/fonts/OTF/TeX/Makefile → src/fonts/Makefile
Expand Up @@ -17,7 +17,7 @@
# limitations under the License.
#

include ../../../custom.cfg
include ../custom.cfg

MFTRACE_MODIFIED=lib/mftrace-modified

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/fonts/OTF/TeX/generate_fonts.py → src/fonts/generate_fonts.py 100755 → 100644
Expand Up @@ -30,7 +30,7 @@
del font['GDEF']

# set font version from package.json
with open(os.path.join(os.path.dirname(__file__), '../../../../package.json')) as f:
with open(os.path.join(os.path.dirname(__file__), '../../package.json')) as f:
version = json.load(f)['version']

font['name'].setName(unicode('Version ' + version), 5, 3, 1, 1033)
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/fonts/OTF/TeX/makeBlacker → src/fonts/makeBlacker 100755 → 100644
Expand Up @@ -2,10 +2,10 @@

# Creates the metafont file needed for darker copies of the TeX fonts,
# and modifies mftrace to use it.
#
#
# Usage: ./makeBlacker blackness

require "../../../custom.cfg.pl";
require "../custom.cfg.pl";

$blacker = shift;
unless ($blacker) {
Expand Down
2 changes: 1 addition & 1 deletion src/fonts/OTF/TeX/makeFF → src/fonts/makeFF 100755 → 100644
Expand Up @@ -6,7 +6,7 @@
#
# Usage: ./makeFF

require "../../../custom.cfg.pl";
require "../custom.cfg.pl";

#########################################################################

Expand Down

0 comments on commit 3a76616

Please sign in to comment.