2014-10-28 19:02:51 +01:00
|
|
|
#!/bin/bash
|
2014-10-28 18:48:51 +01:00
|
|
|
# Simple Script to rebuild the fonts in this package.
|
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
# Parameters
|
|
|
|
fontname="SourceSerifPro"
|
2014-10-28 18:48:51 +01:00
|
|
|
vend="adobe"
|
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
# Remove capitals from font
|
|
|
|
font=${fontname,,}
|
2014-10-28 18:48:51 +01:00
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
# Backup the hand-written package
|
2014-10-28 18:48:51 +01:00
|
|
|
mv tex/latex/$font/$font.sty tex/latex/$font/$font.sty.tmp
|
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
# Font features (font v1.014)
|
|
|
|
# aalt Access All Alternates
|
|
|
|
# case Case-Sensitive Forms
|
|
|
|
# dnom Denominators
|
|
|
|
# frac Fractions
|
|
|
|
# kern Kerning
|
|
|
|
# liga Standard Ligatures
|
|
|
|
# lnum Lining Figures
|
|
|
|
# numr Numerators
|
|
|
|
# onum Oldstyle Figures
|
|
|
|
# ordn Ordinals
|
|
|
|
# pnum Proportional Figures
|
|
|
|
# sinf Scientific Inferiors
|
|
|
|
# size Optical Size
|
|
|
|
# subs Subscript
|
|
|
|
# sups Superscript
|
|
|
|
# tnum Tabular Figures
|
|
|
|
# zero Slashed Zero
|
2014-10-28 18:48:51 +01:00
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
autoinst fonts/opentype/$vend/$font/* \
|
|
|
|
-target=. \
|
|
|
|
-vendor="$vend" \
|
|
|
|
-typeface="$font" \
|
|
|
|
-encoding=OT1,T1,LY1,TS1 \
|
|
|
|
-ts1 \
|
|
|
|
-nosmallcaps \
|
|
|
|
-superiors \
|
|
|
|
-inferiors \
|
|
|
|
-fractions \
|
|
|
|
-noswash \
|
|
|
|
-notitling \
|
|
|
|
-noornaments \
|
|
|
|
-noupdmap
|
2014-10-28 18:48:51 +01:00
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
# Move the generated file and the hand-written one back
|
2015-01-11 17:37:14 +01:00
|
|
|
mv tex/latex/$font/$fontname.sty tex/latex/$font/$font-type1-autoinst.sty
|
2014-10-28 18:48:51 +01:00
|
|
|
mv tex/latex/$font/$font.sty.tmp tex/latex/$font/$font.sty
|
|
|
|
|
2014-10-28 19:02:51 +01:00
|
|
|
# Remove empty directories
|
|
|
|
find . -type d -empty -delete
|
2015-01-11 17:37:14 +01:00
|
|
|
|