Read XeTeX font character ranges from active charmaps

This commit is contained in:
gloamxun committed 2026-11-26 12:28:31 +08:00
1 parent fc6d704edf
commit 4e16531a62
9 files changed
+4672 -8

No files matched your search

@@ -392,14 +392,18 @@ pub enum Primitive {
XeTeXglyph,
XeTeXglyphbounds,
XeTeXglyphname,
XeTeXfirstfontchar,
XeTeXlastfontchar,
}
impl Primitive {
const XETEX_FONT_QUERIES: [Self; 10] = [
const XETEX_FONT_QUERIES: [Self; 12] = [
Self::XeTeXfonttype,
Self::XeTeXcountglyphs,
Self::XeTeXcharglyph,
Self::XeTeXglyphindex,
Self::XeTeXfirstfontchar,
Self::XeTeXlastfontchar,
Self::XeTeXOTcountscripts,
Self::XeTeXOTscripttag,
Self::XeTeXOTcountlanguages,
@@ -414,6 +418,8 @@ impl Primitive {
Self::XeTeXcountglyphs => "XeTeXcountglyphs",
Self::XeTeXcharglyph => "XeTeXcharglyph",
Self::XeTeXglyphindex => "XeTeXglyphindex",
Self::XeTeXfirstfontchar => "XeTeXfirstfontchar",
Self::XeTeXlastfontchar => "XeTeXlastfontchar",
Self::XeTeXOTcountscripts => "XeTeXOTcountscripts",
Self::XeTeXOTscripttag => "XeTeXOTscripttag",
Self::XeTeXOTcountlanguages => "XeTeXOTcountlanguages",