Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/work
*.log
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
zip:
rm -rf inter.zip
zip -r inter.zip inter/README inter/doc inter/enc inter/map inter/latex inter/tfm inter/vf inter/opentype inter/type1
.PHONY: build

build:
./build.sh

init:
./init.sh
80 changes: 80 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
#!/bin/bash

set -euo pipefail

SCRIPT_FILE=${BASH_SOURCE[0]}
[ -n "$SCRIPT_FILE" ] || SCRIPT_FILE=${(%):-%N} # zsh
CURDIR=$(dirname "$(realpath "$SCRIPT_FILE")")

SRC_DIR=$CURDIR/src
DIST_DIR=$CURDIR/dist
WORK_DIR=$CURDIR/work
OUT_FILE=inter.zip
if [[ "${DIST_DIR:0:2}" == "./" ]]; then
DIST_DIR=${DIST_DIR:2}
WORK_DIR=${WORK_DIR:2}
fi

cd "$CURDIR"

function fetch() {
URL=$1
DSTFILE=$2
echo "Fetching $URL"
curl '-#' --create-dirs -o "$DSTFILE" -L "$URL"
}

# Clean
rm -rf "$DIST_DIR" "$WORK_DIR" "$OUT_FILE"

# Fetch source fonts
GH_REPO=rsms/inter
RELEASE_URL=$(curl -s -L "https://api.github.com/repos/$GH_REPO/releases/latest" \
| jq -r '.assets[0].browser_download_url')
RELEASE_DEST="$WORK_DIR"/inter.zip

fetch "$RELEASE_URL" "$RELEASE_DEST"
unzip -q -j "$RELEASE_DEST" \*.otf -d "$WORK_DIR"
rm "$RELEASE_DEST"

# Create LaTeX font families
TEXMF="$DIST_DIR/texmf"
autoinst \
-logfile="$WORK_DIR/autoinst.log" \
-vendor=public -typeface=inter \
-sanserif \
-target="$TEXMF" "$WORK_DIR"/*.otf

# Adapt directory structure for CTAN package
mkdir "$DIST_DIR"/{doc,enc,latex,map,opentype,tfm,type1,vf}
ln -s -r "$TEXMF/fonts/enc/dvips/inter"/* "$DIST_DIR/enc"
ln -s -r "$TEXMF/fonts/map/dvips/inter"/* "$DIST_DIR/map"
ln -s -r "$TEXMF/fonts/tfm/public/inter"/* "$DIST_DIR/tfm"
ln -s -r "$TEXMF/fonts/type1/public/inter"/* "$DIST_DIR/type1"
ln -s -r "$TEXMF/fonts/vf/public/inter"/* "$DIST_DIR/vf"

# Replace autoinst style file by our own
rm "$TEXMF/tex/latex/inter/Inter.sty"
cp "$SRC_DIR/inter.sty" "$TEXMF/tex/latex/inter"
ln -s -r "$TEXMF/tex/latex/inter"/* "$DIST_DIR/latex"

OTF_DEST="$TEXMF/fonts/opentype/public/inter/"
mkdir -p "$OTF_DEST"
cp -r "$WORK_DIR"/*.otf "$OTF_DEST"
ln -s -r "$OTF_DEST"/* "$DIST_DIR/opentype"

# Copy sources (documentation, licenses, etc.)
mkdir -p "$DIST_DIR/texmf/doc/fonts/inter"
cp -r "$SRC_DIR/doc"/* "$TEXMF/doc/fonts/inter"
ln -s -r "$TEXMF/doc/fonts/inter"/* "$DIST_DIR/doc"

cp "$SRC_DIR/README" "$TEXMF/doc/fonts/inter"
cp "$SRC_DIR/README" "$DIST_DIR"

# Create ZIP files for distribution
pushd "$DIST_DIR/texmf" >/dev/null
zip -q -r inter.tds.zip .
popd >/dev/null

REL_DIST_PATH=$(realpath --relative-to="$CURDIR" "$DIST_DIR")
zip -q -r "$OUT_FILE" "$REL_DIST_PATH" -x "$REL_DIST_PATH/texmf/*"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
52 changes: 52 additions & 0 deletions dist/texmf/doc/fonts/inter/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
This is the README for the inter package, version 2021/04/16.

This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Inter Sans family of fonts (version 3.015),
designed by Rasmus Andersson. Inter is a typeface specially
designed for user interfaces with focus on high legibility
of small-to-medium sized text on computer screens. The
family features a tall x-height to aid in readability of
mixed-case and lower-case text.

To use, add

\usepackage{inter}

to the preamble of your document. These will activate Inter
as the sans-serif text font. To activate it as the main text
font, use

\usepackage[sfdefault]{inter}

LuaLaTeX and xeLaTeX users who might prefer type1 fonts or
who wish to avoid fontspec may use the type1 option.

Options scaled=<number> or scale=<number> may be used to
scale the fonts.

The default figure style is proportional-lining, but the
tabular (or t) option will change the default to tabular
(monospaced) figures.

Font encodings supported are OT1, T1, TS1, and LY1.

The semibold, extrabold and heavy options activate those
series as the default bold series. The medium, light,
extralight and thin options activate those series as the
default regular series.

Commands \intertabular, and \interproportional allow for
localized use of non-default figures. Superior numbers are
available using \sufigures. Commands \interthin, \interlight
etc. allow for localized use of those series.

The original OpenType fonts were obtained from

https://github.com/rsms/inter/

and are licensed under the SIL Open Font License, version
1.1; the text may be found in the doc directory. The type1
versions were created using cfftot1. The support files were
created using autoinst and are licensed under the terms of
the LaTeX Project Public License. The maintainer of this
package is Carl-Clemens Ebinger at post(at)ebinger(dot)cc.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_bal5qfh23c262ohkpn4btx7ukf
% Encoding created by otftotfm on Tue Dec 22 13:12:11 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:03 2022
% Command line follows encoding
/AutoEnc_bal5qfh23c262ohkpn4btx7ukf [
%00
Expand Down Expand Up @@ -54,10 +54,11 @@
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
] def
% Command line: 'otftotfm --automatic --encoding=fontools_ts1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=TEX TEXT COMPANION SYMBOLS 1---TS1 --feature=pnum Inter
% Desktop/Inter-BlackItalic.otf Inter-BlackItalic-lf-ts1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=TEX TEXT COMPANION SYMBOLS 1---TS1
% --feature=pnum /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf
% Inter-Black-lf-ts1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_doz5y6g3iwqptgztohvf23kote
% Encoding created by otftotfm on Tue Dec 22 13:12:10 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:03 2022
% Command line follows encoding
/AutoEnc_doz5y6g3iwqptgztohvf23kote [
%00
Expand Down Expand Up @@ -54,10 +54,10 @@
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
] def
% Command line: 'otftotfm --automatic --encoding=fontools_ot1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=TEX TEXT --feature=kern --feature=pnum Inter
% Desktop/Inter-BlackItalic.otf Inter-BlackItalic-lf-ot1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=TEX TEXT --feature=kern --feature=pnum
% /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf Inter-Black-lf-ot1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_g6if7q2nhml6mnjw2vxtczinpc
% Encoding created by otftotfm on Tue Dec 22 13:12:11 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:02 2022
% Command line follows encoding
/AutoEnc_g6if7q2nhml6mnjw2vxtczinpc [
%00
Expand Down Expand Up @@ -54,11 +54,11 @@
/uni00F8 /uni00F9 /uni00FA /uni00FB /uni00FC /uni00FD /uni00FE /uni00DF
] def
% Command line: 'otftotfm --automatic --encoding=fontools_t1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=EXTENDED TEX FONT ENCODING - LATIN --feature=sups
% --ligkern=* {KL} * Inter Desktop/Inter-BlackItalic.otf
% Inter-BlackItalic-sup-t1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=EXTENDED TEX FONT ENCODING - LATIN
% --feature=sups --ligkern=* {KL} *
% /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf Inter-Black-sup-t1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_ggbt67mjif4qed3pzmcoka3l2h
% Encoding created by otftotfm on Tue Dec 22 13:12:11 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:03 2022
% Command line follows encoding
/AutoEnc_ggbt67mjif4qed3pzmcoka3l2h [
%00
Expand Down Expand Up @@ -54,10 +54,10 @@
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
] def
% Command line: 'otftotfm --automatic --encoding=fontools_ot1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=TEX TEXT --feature=kern --feature=tnum Inter
% Desktop/Inter-BlackItalic.otf Inter-BlackItalic-tlf-ot1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=TEX TEXT --feature=kern --feature=tnum
% /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf Inter-Black-tlf-ot1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_hx3dc4ekv77mhfksxlr6jdgunf
% Encoding created by otftotfm on Tue Dec 22 13:12:11 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:02 2022
% Command line follows encoding
/AutoEnc_hx3dc4ekv77mhfksxlr6jdgunf [
%00
Expand Down Expand Up @@ -54,10 +54,11 @@
/.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef /.notdef
] def
% Command line: 'otftotfm --automatic --encoding=fontools_ot1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=TEX TEXT --feature=sups --ligkern=* {KL} * Inter
% Desktop/Inter-BlackItalic.otf Inter-BlackItalic-sup-ot1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=TEX TEXT --feature=sups --ligkern=*
% {KL} * /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf
% Inter-Black-sup-ot1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_nkgz7yfomqbkhsmmb5xzc23rmg
% Encoding created by otftotfm on Tue Dec 22 13:12:11 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:03 2022
% Command line follows encoding
/AutoEnc_nkgz7yfomqbkhsmmb5xzc23rmg [
%00
Expand Down Expand Up @@ -54,11 +54,11 @@
/uni00F8 /uni00F9 /uni00FA /uni00FB /uni00FC /uni00FD /uni00FE /uni00DF
] def
% Command line: 'otftotfm --automatic --encoding=fontools_t1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=EXTENDED TEX FONT ENCODING - LATIN --feature=kern
% --feature=tnum Inter Desktop/Inter-BlackItalic.otf
% Inter-BlackItalic-tlf-t1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=EXTENDED TEX FONT ENCODING - LATIN
% --feature=kern --feature=tnum
% /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf Inter-Black-tlf-t1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_rjznlt323ikn35ezlyaqhuqmpb
% Encoding created by otftotfm on Tue Dec 22 13:12:11 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:02 2022
% Command line follows encoding
/AutoEnc_rjznlt323ikn35ezlyaqhuqmpb [
%00
Expand Down Expand Up @@ -54,10 +54,11 @@
/uni00F8 /uni00F9 /uni00FA /uni00FB /uni00FC /uni00FD /uni00FE /uni00FF
] def
% Command line: 'otftotfm --automatic --encoding=fontools_ly1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=TEX TYPEWRITER AND WINDOWS ANSI --feature=sups --ligkern=*
% {KL} * Inter Desktop/Inter-BlackItalic.otf Inter-BlackItalic-sup-ly1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=TEX TYPEWRITER AND WINDOWS ANSI
% --feature=sups --ligkern=* {KL} *
% /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf Inter-Black-sup-ly1'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
% THIS FILE WAS AUTOMATICALLY GENERATED -- DO NOT EDIT

%%AutoEnc_y2idd3tesmwtnjpfqsgelsiqvg
% Encoding created by otftotfm on Tue Dec 22 13:12:10 2020
% Encoding created by otftotfm on Sat Apr 30 04:26:03 2022
% Command line follows encoding
/AutoEnc_y2idd3tesmwtnjpfqsgelsiqvg [
%00
Expand Down Expand Up @@ -54,11 +54,11 @@
/uni00F8 /uni00F9 /uni00FA /uni00FB /uni00FC /uni00FD /uni00FE /uni00FF
] def
% Command line: 'otftotfm --automatic --encoding=fontools_ly1
% --tfm-directory=texmf.0.0.2/fonts/tfm/public/inter
% --vf-directory=texmf.0.0.2/fonts/vf/public/inter
% --type1-directory=texmf.0.0.2/fonts/type1/public/inter
% --encoding-directory=texmf.0.0.2/fonts/enc/dvips/inter
% --map-file=texmf.0.0.2/fonts/map/dvips/inter/Inter.map --no-updmap --force
% --coding-scheme=TEX TYPEWRITER AND WINDOWS ANSI --feature=kern
% --feature=pnum Inter Desktop/Inter-BlackItalic.otf
% Inter-BlackItalic-lf-ly1'
% --tfm-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/tfm/public/inter
% --vf-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/vf/public/inter
% --type1-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/type1/public/inter
% --encoding-directory=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/enc/dvips/inter
% --map-file=/home/hugo/coding/CTAN_Inter/dist/texmf/fonts/map/dvips/inter/Inter.map
% --no-updmap --force --coding-scheme=TEX TYPEWRITER AND WINDOWS ANSI
% --feature=kern --feature=pnum
% /home/hugo/coding/CTAN_Inter/work/Inter-Black.otf Inter-Black-lf-ly1'
Loading