Always add \l_@@_pre_feat_sclist features when loading a font.
The main motivation is HarfBuzz support in LuaTeX: The current approach loads HarfBuzz font without mode=harf first, forcing the traditional fontloader to load the font. This is a problem especially for very big fonts for which caching can be very slow using the ConTeXt fontloader.
This fixes that by passing all features in \l_@@_pre_feat_sclist for all font requests, leaving no font load without mode parameter.
Todos
[ ] Tests added to cover new/fixed functionality
n/a Documentation if necessary
[ ] Code follows expl3 style guidelines
Minimal example demonstrating the new/fixed functionality
For example the following file should compile significantly faster and with much less memory usage if "Noto Serif CJK KR" isn't already cached.
Status
READY
Description
Always add
\l_@@_pre_feat_sclist
features when loading a font. The main motivation is HarfBuzz support in LuaTeX: The current approach loads HarfBuzz font withoutmode=harf
first, forcing the traditional fontloader to load the font. This is a problem especially for very big fonts for which caching can be very slow using the ConTeXt fontloader.This fixes that by passing all features in
\l_@@_pre_feat_sclist
for all font requests, leaving no font load without mode parameter.Todos
Minimal example demonstrating the new/fixed functionality
For example the following file should compile significantly faster and with much less memory usage if "Noto Serif CJK KR" isn't already cached.