Skip to content

Commit

Permalink
Fixing cover fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
hmemcpy committed Aug 12, 2019
1 parent 7474d6a commit 6bb0bc0
Show file tree
Hide file tree
Showing 30 changed files with 34 additions and 15 deletions.
6 changes: 5 additions & 1 deletion shell.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{ pkgs ? import <nixpkgs> {} }: with pkgs;

mkShell {
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus ]; };
FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ inconsolata-lgc libertine libertinus]; };
buildInputs = [
(texlive.combine {
inherit (texlive)
bookcover
textpos
fgruler
tcolorbox
fvextra
framed
newtx
Expand Down
43 changes: 29 additions & 14 deletions src/cover/cover-paperback-scala.tex
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
\documentclass[
% bleed is added to the final result
coverheight=9.25in,
coverwidth=6.125in, % (pagesize - spinewidth) / 2
spinewidth=1.014in,
coverwidth=6.125in, % (pagesize - spinewidth) / 2 == (13.042 - 1.042) / 2
spinewidth=1.042in,
bleedwidth=0in,
11pt,
marklength=0pt,
marklength=0in,
]{bookcover}

\usepackage{fancybox}
\usepackage{wrapfig}
\usepackage[many]{tcolorbox}
\usetikzlibrary{calc,positioning, shadings}
\usepackage[T1]{fontenc}
\usepackage{Alegreya} %% Option 'black' gives heavier bold face

\setmainfont{Alegreya Sans}[
UprightFeatures={SmallCapsFont=* SC},
ItalicFeatures={SmallCapsFont=* SC Italic},
BoldFeatures={SmallCapsFont=* SC Bold},
BoldItalicFeatures={SmallCapsFont=* SC Bold Italic},
]
\usepackage{fontspec}

% \setmainfont{AlegreyaSans-Regular}[
% BoldFont={AlegreyaSans-Bold},
% ItalicFont={AlegreyaSans-Italic},
% UprightFeatures={SmallCapsFont=AlegreyaSansSC-Regular},
% ItalicFeatures={SmallCapsFont=AlegreyaSansSC-Italic},
% BoldFeatures={SmallCapsFont=AlegreyaSansSC-Bold},
% BoldItalicFeatures={SmallCapsFont=AlegreyaSansSC-BoldItalic},
% ]
\setmainfont[
Path=fonts/,
Extension=.otf,
UprightFont=*-Regular,
ItalicFont=*-Italic,
BoldFont=*-Bold,
UprightFeatures={SmallCapsFont=*SC-Regular},
ItalicFeatures={SmallCapsFont=*SC-Italic},
BoldFeatures={SmallCapsFont=*SC-Bold},
BoldItalicFeatures={SmallCapsFont=*SC-BoldItalic},
]{AlegreyaSans}

\newcommand{\olpath}{../}
\newcommand{\whitebg}[1]{%
Expand Down Expand Up @@ -76,18 +90,19 @@
\begin{center}
\vspace{1cm}
\includegraphics[width=.8\coverwidth]{bunnies}
\begin{minipage}[t]{.8\coverwidth}
\begin{minipage}[t]{.75\coverwidth}
\input{blurb}
\vspace{.5cm}
\vspace{0.6cm}
\end{minipage}

\begin{minipage}{.85\textwidth}
\rule{\textwidth}{.5pt}

\begin{tabular}[h]{p{3.4cm} p{\textwidth}}
\vspace{5pt}
\bartosz
&
\vspace{5pt}
\vspace{10pt}
\begin{minipage}[b]{.58\coverwidth}
\fontsize{11pt}{1.4em}\selectfont\textit{Category Theory for Programmers}
is a series of blog posts by Bartosz Milewski, originally posted on bartoszmilewski.com.\\
Expand Down
Binary file added src/cover/fonts/AlegreyaSans-Black.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-BlackItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-Bold.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-BoldItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-ExtraBold.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-ExtraBoldItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-Italic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-Light.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-LightItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-Medium.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-MediumItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-Regular.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-Thin.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSans-ThinItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Black.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-BlackItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Bold.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-BoldItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-ExtraBold.otf
Binary file not shown.
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Italic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Light.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-LightItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Medium.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-MediumItalic.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Regular.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-Thin.otf
Binary file not shown.
Binary file added src/cover/fonts/AlegreyaSansSC-ThinItalic.otf
Binary file not shown.

0 comments on commit 6bb0bc0

Please sign in to comment.