我正在寻找包含字形的免费衬线字体U+202F NARROW NO-BREAK SPACE(即不间断的细空间)。
Palatino风格的字体就可以了。我已经检查了TeX Gyre Pagella,但不间断的薄空间字形失败了。
我正在寻找包含字形的免费衬线字体U+202F NARROW NO-BREAK SPACE(即不间断的细空间)。
Palatino风格的字体就可以了。我已经检查了TeX Gyre Pagella,但不间断的薄空间字形失败了。
在FileFormat.info «The Digital Rosetta Stone» 上,我找到了一个方便的unicode 字符搜索引擎。
在结果页面上,单击支持 U+202F 的字体链接,就可以了。
衬线字体包括:
要确定哪些本地安装的字体在使用Fontconfig的Linux 和 BSD 等开源系统上包含特定字形,fc-list可以使用以下命令:
fc-list ':charset=202f'
202f您要查找的字符的代码点在哪里。
要检查系统上字体中可用的字形,有很多方法。
要在 Mac 上的 GUI 中手动执行此操作,您可以使用字符查看器,您可以在其中按 Unicode 代码点进行搜索(在您的情况下,U+202F在搜索框中键入)。
您还可以安装命令行工具来搜索 Mac、Linux 或 Windows 上的所有字体。例如,您可以使用ttx“将二进制字体文件(.otf、.ttf 等)转换为 TTX XML 格式的命令”并在其输出中搜索您的字符。
brew install fonttools在 Mac 上,如果您已经有Homebrew ,则可以安装它。在 Debian 系统或其他衍生产品(如 Ubuntu)上,您可以apt install fonttools.
然后,您可以使用 grep 输出以在字体文件中查找您的字符,如下所示:
ttx -o - -t cmap "/path/to/some_font.ttf" | grep '0x202f' >/dev/null
您可以将其包装在一个循环中以检查所有字体文件。我的 Linux 系统上的以下命令在我的字体目录中搜索字体,使用 ttx 打印出 XML 版本,然后搜索想要的字符。如果找到代码点,它将获取字体名称otfinfo并使用文件名打印它:
find /usr/share/fonts -iname "*.otf" -o -iname "*.ttf" | while read f; do ttx -o - -t cmap "$f" | grep '0x202f' >/dev/null && printf "%-35s %s\n" $(otfinfo -p "$f") "$f"; done | sort
或者多行相同,使其(稍微)更具可读性:
find /usr/share/fonts -iname "*.otf" -o -iname "*.ttf" \
| while read f; do
ttx -o - -t cmap "$f" \
| grep '0x202f' >/dev/null \
&& printf "%-35s %s\n" $(otfinfo -p "$f") "$f"
done \
| sort
这是您的U+202F角色在我的系统上的输出:
AbyssinicaSIL /usr/share/fonts/truetype/abyssinica/AbyssinicaSIL-R.ttf
Consolas-BoldItalic /usr/share/fonts/truetype/consolas-win7/consolaz.ttf
Consolas-Bold /usr/share/fonts/truetype/consolas-win7/consolab.ttf
Consolas-Italic /usr/share/fonts/truetype/consolas-win7/consolai.ttf
Consolas /usr/share/fonts/truetype/consolas-win7/consola.ttf
DejaVuSans-BoldOblique /usr/share/fonts/truetype/dejavu/DejaVuSans-BoldOblique.ttf
DejaVuSans-Bold /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
DejaVuSansCondensed-BoldOblique /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-BoldOblique.ttf
DejaVuSansCondensed-Bold /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Bold.ttf
DejaVuSansCondensed-Oblique /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed-Oblique.ttf
DejaVuSansCondensed /usr/share/fonts/truetype/dejavu/DejaVuSansCondensed.ttf
DejaVuSans-ExtraLight /usr/share/fonts/truetype/dejavu/DejaVuSans-ExtraLight.ttf
DejaVuSansMono-BoldOblique /usr/share/fonts/truetype/dejavu/DejaVuSansMono-BoldOblique.ttf
DejaVuSansMono-Bold /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Bold.ttf
DejaVuSansMono-Oblique /usr/share/fonts/truetype/dejavu/DejaVuSansMono-Oblique.ttf
DejaVuSansMono /usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
DejaVuSans-Oblique /usr/share/fonts/truetype/dejavu/DejaVuSans-Oblique.ttf
DejaVuSans /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
DejaVuSerif-BoldItalic /usr/share/fonts/truetype/dejavu/DejaVuSerif-BoldItalic.ttf
DejaVuSerif-Bold /usr/share/fonts/truetype/dejavu/DejaVuSerif-Bold.ttf
DejaVuSerifCondensed-BoldItalic /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-BoldItalic.ttf
DejaVuSerifCondensed-Bold /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Bold.ttf
DejaVuSerifCondensed-Italic /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed-Italic.ttf
DejaVuSerifCondensed /usr/share/fonts/truetype/dejavu/DejaVuSerifCondensed.ttf
DejaVuSerif-Italic /usr/share/fonts/truetype/dejavu/DejaVuSerif-Italic.ttf
DejaVuSerif /usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf
FontAwesome /usr/share/fonts/truetype/font-awesome/fontawesome-webfont.ttf
FreeMonoBoldOblique /usr/share/fonts/truetype/freefont/FreeMonoBoldOblique.ttf
FreeMonoBold /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf
FreeMonoOblique /usr/share/fonts/truetype/freefont/FreeMonoOblique.ttf
FreeMono /usr/share/fonts/truetype/freefont/FreeMono.ttf
FreeSansBoldOblique /usr/share/fonts/truetype/freefont/FreeSansBoldOblique.ttf
FreeSansBold /usr/share/fonts/truetype/freefont/FreeSansBold.ttf
FreeSansOblique /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
FreeSans /usr/share/fonts/truetype/freefont/FreeSans.ttf
FreeSerifBoldItalic /usr/share/fonts/truetype/freefont/FreeSerifBoldItalic.ttf
FreeSerifBold /usr/share/fonts/truetype/freefont/FreeSerifBold.ttf
FreeSerifItalic /usr/share/fonts/truetype/freefont/FreeSerifItalic.ttf
FreeSerif /usr/share/fonts/truetype/freefont/FreeSerif.ttf
Lato-BlackItalic /usr/share/fonts/truetype/lato/Lato-BlackItalic.ttf
Lato-Black /usr/share/fonts/truetype/lato/Lato-Black.ttf
Lato-BoldItalic /usr/share/fonts/truetype/lato/Lato-BoldItalic.ttf
Lato-Bold /usr/share/fonts/truetype/lato/Lato-Bold.ttf
Lato-HairlineItalic /usr/share/fonts/truetype/lato/Lato-HairlineItalic.ttf
Lato-Hairline /usr/share/fonts/truetype/lato/Lato-Hairline.ttf
Lato-HeavyItalic /usr/share/fonts/truetype/lato/Lato-HeavyItalic.ttf
Lato-Heavy /usr/share/fonts/truetype/lato/Lato-Heavy.ttf
Lato-Italic /usr/share/fonts/truetype/lato/Lato-Italic.ttf
Lato-LightItalic /usr/share/fonts/truetype/lato/Lato-LightItalic.ttf
Lato-Light /usr/share/fonts/truetype/lato/Lato-Light.ttf
Lato-MediumItalic /usr/share/fonts/truetype/lato/Lato-MediumItalic.ttf
Lato-Medium /usr/share/fonts/truetype/lato/Lato-Medium.ttf
Lato-Regular /usr/share/fonts/truetype/lato/Lato-Regular.ttf
Lato-SemiboldItalic /usr/share/fonts/truetype/lato/Lato-SemiboldItalic.ttf
Lato-Semibold /usr/share/fonts/truetype/lato/Lato-Semibold.ttf
Lato-ThinItalic /usr/share/fonts/truetype/lato/Lato-ThinItalic.ttf
Lato-Thin /usr/share/fonts/truetype/lato/Lato-Thin.ttf
Symbola /usr/share/fonts/truetype/ancient-scripts/Symbola_hint.ttf
Tibetan_Machine_Uni /usr/share/fonts/truetype/tibetan-machine/TibetanMachineUni.ttf
(otfinfo用于打印字体正常名称的工具可以使用brew install lcdf-typetoolsorapt install lcdf-typetools等安装,具体取决于您的系统)