latex3 / fontspec

Font selection in LaTeX for XeTeX and LuaTeX
http://latex3.github.io/fontspec/
LaTeX Project Public License v1.3c
276 stars 33 forks source link

Renderer=Harfbuzz still loads the font without HarfBuzz #396

Closed khaledhosny closed 4 years ago

khaledhosny commented 4 years ago

Description

A sentence or two describing the issue.

Check/indicate

Minimal example demonstrating the issue

\documentclass{article}
\usepackage{fontspec}
\setmainfont{Source Han Sans SC}[Renderer=Harfbuzz]
\begin{document}
你好
\end{document}

Further details

The above will still load the font without HarfBuzz when checking for font features, which 1) might give wrong results when HarfBuzz and default font loader disagree on supported font features and 2) more importantly, can freeze one’s system when loading huge fonts like this where the point of using HarfBuzz in this case would be to avoid such freeze (the default font loader consumes enormous amounts of memory the first time it tries to load a huge font like this).

zauguin commented 4 years ago

This should be fixed by #397.

wspr commented 4 years ago

Thanks Marcel, much appreciated!