10

This question led to a new package:
fontbook

Is there a package to generate a font collection book/catalogue from all fonts in the system (fc-list) or by selecting a list of fonts?

Ideally, it would print a small example, and list the features of the font (specially, the OTF features such as ligatures, small caps, etc.)

5

Since I haven't found anything, I've begun making one myself. The layout is quite simple. It is based on XeTeX/fontspec and uses only two macros:

\newcommand{\sampletext}[2][]{%
 {\par\csname#2\endcsname \csname#1\endcsname
 #2 #1\\
 Dans l'affliction éphémère qui m'accable, je teste
 la police d'affichage qui est affichée sur cette page 1 2 3 4 5.
 }
}


\newcommand{\printfont}[3][\empty]{%
   \fontspec[#1]{#2}
   \section*{#2 #1 --- Licence: #3}
   \ifx#1\empty
     \addcontentsline{toc}{section}{#2}
   \else
     \addcontentsline{toc}{subsection}{#1}
   \fi

   \sampletext{huge}
   \sampletext{LARGE}
   \sampletext{Large}
   \sampletext{large}
   \sampletext{normalsize}
   \sampletext{small}
   \sampletext{footnotesize}
   \sampletext{scriptsize}
   \sampletext{tiny}
   \sampletext[scshape]{large}
   \sampletext[itshape]{large}
   \sampletext[bfseries]{large}
   \pagebreak
}

The full project can be found on github. A new fontbook package is on its way to the CTAN.

Contributions are most welcome.

  • please provide an example how to use \printfont. – Friendly Ghost Jul 6 '11 at 5:13
  • 1
    @Friendly Ghost: see fontbook.pdf in the github project, as well as fontbook-freefonts.tex for an example. – ℝaphink Jul 6 '11 at 7:56
  • + 1 It is very useful reference. Thanks. – Friendly Ghost Jul 6 '11 at 11:08
  • Let me know if there's features you'd like to see in this package. – ℝaphink Jul 6 '11 at 11:28
  • That was quick. – Emre Jul 7 '11 at 17:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.