Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some bugs and initial multiscript/fallback support
- Loading branch information
Showing
3 changed files
with
74 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b8f3d92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very nice. Small remark: I declared a fallback "myfallbackA" (with an uppercase letter) and tried to use with
fallback=myfallbackA
but this errors:b8f3d92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@u-fischer That's because all features are lowercased during normalization. That has been introduced in 631c921, I don't know why. We could either disable it or accept that names have to be lowercase, probably adding some checks.
Probably it would be best to start with identifying where lowercasing even has an effect, most features I can currently think of only accept booleans and numbers anyway.
b8f3d92
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zauguin yes I guess that. Wouldn't make it sense then to normalize/lowercase the name in
luaotfload.add_fallback("myfallback"
too?