When using multiple sans-serif fonts in one document, it is necessary to know the internal name of a font to use it, as described here: How do I use a particular font for a small section of text in my document?

Unfortunately, I was not able to determine the internal name for the Source Sans Pro font (package: sourcesanspro). So my question is: what is the internal name for this font?

To be more precise:

  1. I use pdflatex.

  2. I would like to do something like:


    where I need to know, what "xyz" would be.

  • do you mean the latex family name (for pdftex) or the actual internal font name of the font for use with fontspec? (the latex family names like phv for helvetica are not a property of the font just of the tex macros) Commented Nov 4, 2016 at 13:31
  • Are you using xeLaTeX and fontspec? The name of the font family is Source Sans Pro, the name of the font files are SourceSansPro-Regular.ttf, SourceSansPro-Bold.ttf, &c.
    – Bernard
    Commented Nov 4, 2016 at 13:32
  • Thanks for the first comments! I edited my original question to be more precise. Commented Nov 4, 2016 at 13:34

3 Answers 3


The font family can be derived without analyzing the source code. LaTeX stores the current family name in macro \f@family. Thus, generate a short test document that uses the font as you need it. Check the package options of sourcesanspro. Then the value of \f@family is output:

\textsf{Family of Source Sans Pro: \textcolor{red}{\f@family}}



you need the family name, looking at


you will see the names are all of the form


where the part after the - depends on the options you specified for the styles of numbers to use, etc.

A line like


in one of those files is declaring T1 encoded font in family SourceSansPro-TLF bold italic variant.


Looking at the .fd files, you have 4 font families:

  • SourceSansPro-LF: with proportional lining figures,
  • SourceSansPro-OsF: with proportional old-style figures,
  • SourceSansPro-TLF: with tabular lining figures,
  • SourceSansPro-OsF: with tabular old-style figures,

and two smaller font families:

  • SourceSansPro-Numr: with numerator figures,
  • SourceSansPro-Sup: with superior figures (for exponents; recommended for footnote numbers, for instance).

All thses families are much simpler to use with fontspec, since you only have one Open Type family, and you call for a specific \fontfeature.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .