I know the font has support for the greek language. Are those characters accessible in pdfLateX?
MWE
\documentclass{article}
\usepackage[utf8]{inputenx}
\usepackage[english,greek]{babel}
\usepackage[default]{sourcesanspro}
\usepackage[T1]{fontenc}
\begin{document}
α a $\alpha$
\end{document}
gives me the following error (caused by the greek
option for babel
):
miktex-makemf: The grtm source file could not be found.
Running hbf2gf.exe...
hbf2gf (CJK ver. 4.8.3)
Couldn't find `grtm.cfg'
miktex-maketfm: No creation rule for font grtm10.
! Font LGR/ptm/m/n/10=grtm10 at 10.0pt not loadable: Metric (TFM) file not foun
d.
<to be read again>
relax
l.2 \select@language{greek}
EDIT:
Errata corrige: the following code does not print any letter in Source Sans.
I've mistaken upright greek CM for Source Sans...
Note that
\documentclass{article}
\usepackage[utf8]{inputenx}
\usepackage[default]{sourcesanspro}
\usepackage[LGR]{fontenc}% changed the encoding
\begin{document}
α a $\alpha$
\end{document}
prints the greek letters (the first two in Source Sans, the third one in CM), but the "a" is now an alpha, too.
fontspec
, as far as I know. Generating the font metric files for Greek, together with the.fd
files for Greek support is not conceptually difficult, but requires time and expertise in usage ofotftotfm
.sansmath
. I've been able to write them by using\usepackage[LGR]{fontenc}
, but this causes the "a" to be read as an alpha.