Shape native XeTeX Graphite fonts with actual feature settings
This commit is contained in:
1 parent
76df2d6832
commit
eb0afccc03
9 files changed
+744
-39
No files matched your search
@@ -395,10 +395,20 @@ pub enum Primitive {
|
||||
XeTeXfirstfontchar,
|
||||
XeTeXlastfontchar,
|
||||
XeTeXlinebreaklocale,
|
||||
XeTeXcountfeatures,
|
||||
XeTeXfeaturecode,
|
||||
XeTeXfindfeaturebyname,
|
||||
XeTeXisexclusivefeature,
|
||||
XeTeXcountselectors,
|
||||
XeTeXselectorcode,
|
||||
XeTeXfindselectorbyname,
|
||||
XeTeXisdefaultselector,
|
||||
XeTeXfeaturename,
|
||||
XeTeXselectorname,
|
||||
}
|
||||
|
||||
impl Primitive {
|
||||
const XETEX_FONT_QUERIES: [Self; 12] = [
|
||||
const XETEX_FONT_QUERIES: [Self; 20] = [
|
||||
Self::XeTeXfonttype,
|
||||
Self::XeTeXcountglyphs,
|
||||
Self::XeTeXcharglyph,
|
||||
@@ -411,6 +421,14 @@ impl Primitive {
|
||||
Self::XeTeXOTlanguagetag,
|
||||
Self::XeTeXOTcountfeatures,
|
||||
Self::XeTeXOTfeaturetag,
|
||||
Self::XeTeXcountfeatures,
|
||||
Self::XeTeXfeaturecode,
|
||||
Self::XeTeXfindfeaturebyname,
|
||||
Self::XeTeXisexclusivefeature,
|
||||
Self::XeTeXcountselectors,
|
||||
Self::XeTeXselectorcode,
|
||||
Self::XeTeXfindselectorbyname,
|
||||
Self::XeTeXisdefaultselector,
|
||||
];
|
||||
|
||||
pub(super) fn xetex_font_query_name(self) -> Option<&'static str> {
|
||||
@@ -427,6 +445,14 @@ impl Primitive {
|
||||
Self::XeTeXOTlanguagetag => "XeTeXOTlanguagetag",
|
||||
Self::XeTeXOTcountfeatures => "XeTeXOTcountfeatures",
|
||||
Self::XeTeXOTfeaturetag => "XeTeXOTfeaturetag",
|
||||
Self::XeTeXcountfeatures => "XeTeXcountfeatures",
|
||||
Self::XeTeXfeaturecode => "XeTeXfeaturecode",
|
||||
Self::XeTeXfindfeaturebyname => "XeTeXfindfeaturebyname",
|
||||
Self::XeTeXisexclusivefeature => "XeTeXisexclusivefeature",
|
||||
Self::XeTeXcountselectors => "XeTeXcountselectors",
|
||||
Self::XeTeXselectorcode => "XeTeXselectorcode",
|
||||
Self::XeTeXfindselectorbyname => "XeTeXfindselectorbyname",
|
||||
Self::XeTeXisdefaultselector => "XeTeXisdefaultselector",
|
||||
_ => return None,
|
||||
})
|
||||
}
|
||||
@@ -482,6 +508,8 @@ impl Primitive {
|
||||
| Pdftexrevision
|
||||
| XeTeXrevision
|
||||
| XeTeXglyphname
|
||||
| XeTeXfeaturename
|
||||
| XeTeXselectorname
|
||||
| Pdfstrcmp
|
||||
| Pdfmatch
|
||||
| Pdflastmatch
|
||||
@@ -1747,6 +1775,8 @@ impl State {
|
||||
("XeTeXglyph", Primitive::XeTeXglyph),
|
||||
("XeTeXglyphbounds", Primitive::XeTeXglyphbounds),
|
||||
("XeTeXglyphname", Primitive::XeTeXglyphname),
|
||||
("XeTeXfeaturename", Primitive::XeTeXfeaturename),
|
||||
("XeTeXselectorname", Primitive::XeTeXselectorname),
|
||||
("XeTeXpdfpagecount", Primitive::XeTeXpdfpagecount),
|
||||
("XeTeXinputencoding", Primitive::XeTeXinputencoding),
|
||||
("XeTeXdefaultencoding", Primitive::XeTeXdefaultencoding),
|
||||
|
||||
Reference in new issue
Block a user