In XeLaTeX, it is possible to directly embed Unicode fonts via \newfontfamily\name_to_use{font name}
.
So I can, for example, write: \newfontfamily\dej{DejaVu Sans}
, and later write \dej{unicode symbol from the font}
- this will compile in XeLaTeX.
However I can't find a way to tell XeLaTeX to use the light series of DejaVu Sans. For example, If I type \newfontfamily\dej{DejaVu Sans Light} (or even just L with or without space)}
, it says font not found
- despite it being installed on my system.
Moreover, I thought that this may be a font series, so I tried \newfontfamily\dej[ln (and ln)]{DejaVu Sans}
. Still does not work.
How do I set the light series of DejaVu Sans for particular Unicode symbols in my TeX file to be compiled with XeLaTeX?
DejaVu Sans Light
orDejaVu Sans ExtraLight
? I found ExtraLight font from dejavu-fonts.org/wiki/Download.\newfontfamily\dej{DejaVuSans-ExtraLight}
worked for me.