Skip to content

Commit 6bb0bc0

Browse files
committed
Fixing cover fonts
1 parent 7474d6a commit 6bb0bc0

30 files changed

+34
-15
lines changed

shell.nix

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
{ pkgs ? import <nixpkgs> {} }: with pkgs;
22

33
mkShell {
4-
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus ]; };
4+
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus]; };
55
buildInputs = [
66
(texlive.combine {
77
inherit (texlive)
8+
bookcover
9+
textpos
10+
fgruler
11+
tcolorbox
812
fvextra
913
framed
1014
newtx

src/cover/cover-paperback-scala.tex

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,39 @@
11
\documentclass[
2+
% bleed is added to the final result
23
coverheight=9.25in,
3-
coverwidth=6.125in, % (pagesize - spinewidth) / 2
4-
spinewidth=1.014in,
4+
coverwidth=6.125in, % (pagesize - spinewidth) / 2 == (13.042 - 1.042) / 2
5+
spinewidth=1.042in,
56
bleedwidth=0in,
67
11pt,
7-
marklength=0pt,
8+
marklength=0in,
89
]{bookcover}
910

1011
\usepackage{fancybox}
1112
\usepackage{wrapfig}
1213
\usepackage[many]{tcolorbox}
1314
\usetikzlibrary{calc,positioning, shadings}
1415
\usepackage[T1]{fontenc}
15-
\usepackage{Alegreya} %% Option 'black' gives heavier bold face
16-
17-
\setmainfont{Alegreya Sans}[
18-
UprightFeatures={SmallCapsFont=* SC},
19-
ItalicFeatures={SmallCapsFont=* SC Italic},
20-
BoldFeatures={SmallCapsFont=* SC Bold},
21-
BoldItalicFeatures={SmallCapsFont=* SC Bold Italic},
22-
]
16+
\usepackage{fontspec}
17+
18+
% \setmainfont{AlegreyaSans-Regular}[
19+
% BoldFont={AlegreyaSans-Bold},
20+
% ItalicFont={AlegreyaSans-Italic},
21+
% UprightFeatures={SmallCapsFont=AlegreyaSansSC-Regular},
22+
% ItalicFeatures={SmallCapsFont=AlegreyaSansSC-Italic},
23+
% BoldFeatures={SmallCapsFont=AlegreyaSansSC-Bold},
24+
% BoldItalicFeatures={SmallCapsFont=AlegreyaSansSC-BoldItalic},
25+
% ]
26+
\setmainfont[
27+
Path=fonts/,
28+
Extension=.otf,
29+
UprightFont=*-Regular,
30+
ItalicFont=*-Italic,
31+
BoldFont=*-Bold,
32+
UprightFeatures={SmallCapsFont=*SC-Regular},
33+
ItalicFeatures={SmallCapsFont=*SC-Italic},
34+
BoldFeatures={SmallCapsFont=*SC-Bold},
35+
BoldItalicFeatures={SmallCapsFont=*SC-BoldItalic},
36+
]{AlegreyaSans}
2337

2438
\newcommand{\olpath}{../}
2539
\newcommand{\whitebg}[1]{%
@@ -76,18 +90,19 @@
7690
\begin{center}
7791
\vspace{1cm}
7892
\includegraphics[width=.8\coverwidth]{bunnies}
79-
\begin{minipage}[t]{.8\coverwidth}
93+
\begin{minipage}[t]{.75\coverwidth}
8094
\input{blurb}
81-
\vspace{.5cm}
95+
\vspace{0.6cm}
8296
\end{minipage}
8397

8498
\begin{minipage}{.85\textwidth}
8599
\rule{\textwidth}{.5pt}
86100

87101
\begin{tabular}[h]{p{3.4cm} p{\textwidth}}
102+
\vspace{5pt}
88103
\bartosz
89104
&
90-
\vspace{5pt}
105+
\vspace{10pt}
91106
\begin{minipage}[b]{.58\coverwidth}
92107
\fontsize{11pt}{1.4em}\selectfont\textit{Category Theory for Programmers}
93108
is a series of blog posts by Bartosz Milewski, originally posted on bartoszmilewski.com.\\
230 KB
Binary file not shown.
235 KB
Binary file not shown.

src/cover/fonts/AlegreyaSans-Bold.otf

231 KB
Binary file not shown.
234 KB
Binary file not shown.
230 KB
Binary file not shown.
Binary file not shown.
232 KB
Binary file not shown.
225 KB
Binary file not shown.

0 commit comments

Comments
 (0)