Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.)

share|improve this question
add comment

1 Answer

up vote 5 down vote accepted

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.

share|improve this answer
    
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
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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