检查可用的字体样式和形状

检查可用的字体样式和形状

我正在使用usefont{<encoding>}{<family>}{<series>}{<shape>}如下命令这里,我将它与 Lato 字体一起使用\usefont{T1}{fla}{l}{n}

我的问题是如何检查系统中安装的字体支持哪些系列和形状。具体来说,我可以输入哪些字母{series}{shape}

fc-list | grep lato给出以下列表。我如何将这些名称引用到 中的字母\usefont

/usr/share/fonts/truetype/lato/Lato-Medium.ttf: Lato,Lato Medium:style=Medium,Regular
/usr/share/fonts/truetype/lato/Lato-SemiboldItalic.ttf: Lato,Lato Semibold:style=Semibold Italic,Italic
/usr/share/fonts/truetype/lato/Lato-LightItalic.ttf: Lato,Lato Light:style=Light Italic,Italic
/usr/share/fonts/truetype/lato/Lato-Italic.ttf: Lato:style=Italic
/usr/share/fonts/truetype/lato/Lato-MediumItalic.ttf: Lato,Lato Medium:style=Medium Italic,Italic
/usr/share/fonts/truetype/lato/Lato-Black.ttf: Lato,Lato Black:style=Black,Regular
/usr/share/fonts/truetype/lato/Lato-Light.ttf: Lato,Lato Light:style=Light,Regular
/usr/share/fonts/truetype/lato/Lato-Regular.ttf: Lato:style=Regular
/usr/share/fonts/truetype/lato/Lato-ThinItalic.ttf: Lato,Lato Thin:style=Thin Italic,Italic
/usr/share/fonts/truetype/lato/Lato-HairlineItalic.ttf: Lato,Lato Hairline:style=Hairline Italic,Italic
/usr/share/fonts/truetype/lato/Lato-Thin.ttf: Lato,Lato Thin:style=Thin,Regular
/usr/share/fonts/truetype/lato/Lato-BoldItalic.ttf: Lato:style=Bold Italic
/usr/share/fonts/truetype/lato/Lato-Bold.ttf: Lato:style=Bold
/usr/share/fonts/truetype/lato/Lato-Heavy.ttf: Lato,Lato Heavy:style=Heavy,Regular
/usr/share/fonts/truetype/lato/Lato-Semibold.ttf: Lato,Lato Semibold:style=Semibold,Regular
/usr/share/fonts/truetype/lato/Lato-HeavyItalic.ttf: Lato,Lato Heavy:style=Heavy Italic,Italic
/usr/share/fonts/truetype/lato/Lato-BlackItalic.ttf: Lato,Lato Black:style=Black Italic,Italic
/usr/share/fonts/truetype/lato/Lato-Hairline.ttf: Lato,Lato Hairline:style=Hairline,Regular

答案1

最初,我误解了您的请求。

我建议看看https://latex-project.org/guides/fntguide.pdf了解<encoding>, <family>, <series>,<shape>

“Lato” 是一种 True Type 字体,我认为其编码是 EU1,而不是 T1。该系列是“Lato”

从上述文件中:

The most common values for the font series are:
m Medium
b Bold
bx Bold extended
sb Semi-bold
c Condensed

The most common values for the font shape are:
n Normal (that is ‘upright’ or ‘roman’)
it Italic
sl Slanted (or ‘oblique’)
sc Caps and small caps

相关内容