-
Notifications
You must be signed in to change notification settings - Fork 8
crash upon IVS (TL2016) #357
Comments
Thanks for the report. That’s inside code that the generic loader |
For the record. diff --git a/font-gbn.lua.orig b/font-gbn.lua
index daa072b..b6df93c 100644
--- a/font-gbn.lua.orig
+++ b/font-gbn.lua
@@ -126,11 +126,11 @@ function nodes.handlers.nodepass(head)
local variant = hash[getchar(p)]
if variant then
setchar(p,variant)
- if not redundant then
- redundant = { n }
- else
- redundant[#redundant+1] = n
- end
+ end
+ if not redundant then
+ redundant = { n }
+ else
+ redundant[#redundant+1] = n
end
end
end whereas the changes made by Hans is: diff --git a/font-gbn.lua.orig b/../Downloads/font-gbn.lua
index daa072b..a02406b 100644
--- a/font-gbn.lua.orig
+++ b/../Downloads/font-gbn.lua
@@ -126,17 +126,19 @@ function nodes.handlers.nodepass(head)
local variant = hash[getchar(p)]
if variant then
setchar(p,variant)
- if not redundant then
- redundant = { n }
- else
- redundant[#redundant+1] = n
- end
end
end
end
+ -- per generic user request we always remove selectors
+ if not redundant then
+ redundant = { n }
+ else
+ redundant[#redundant+1] = n
+ end
end
end
end This aggressiveness would be no problem, until we happen to encounter in the future an abnormal font which uses Variation Selectors in OpenType feature processing. As far as I know from my experience, however, there exists no such font. So I think it would not be bad to wait until someone reports an issue regarding the disappearance of Variation Selectors. |
···<date: 2016-05-07, Saturday>···<from: Dohyun Kim>···
Agreed. Let’s just hope that font isn’t going to be a proprietary Best, |
Fixes lualatex#349 and lualatex#357. Also the new AFM code is due, let’s see what else we need to use it.
I'm also having trouble with IVS feature, and we can use SourceHanSans-Regular.otf, which is freely available. My MWE: \input luaotfload.sty
\font\jpfont=SourceHanSans-Regular.otf at 10pt
\jpfont
\char"5307
\char"5307\char"E0100
\char"5307\char"E0101
\bye
|
Many (may be most) Mongolian fonts handle variation selectors using GSUB substitutions instead of special cmap tables. |
Current issue does not affect Mongolian variation selectors (U+180x); |
With luaotfload v2.7-fix-2, compiling an example which contains IVS (Ideographic Variation Sequence) gives me an error.
The error message is
The text was updated successfully, but these errors were encountered: