Shape and render explicit OpenType fonts in native Unicode jobs

This commit is contained in:
gloamxun committed 2026-11-21 10:35:03 +08:00
1 parent 3caf1eced2
commit 70822cbd94
33 files changed
+1255 -80

No files matched your search

+11 -1
View File
@@ -23,6 +23,8 @@ pub enum ResourceKind {
Tfm,
Vf,
Type1,
OpenType,
TrueType,
Pk,
Encoding,
Map,
@@ -36,6 +38,8 @@ impl ResourceKind {
Self::Tfm => "fonts/tfm",
Self::Vf => "fonts/vf",
Self::Type1 => "fonts/type1",
Self::OpenType => "fonts/opentype",
Self::TrueType => "fonts/truetype",
Self::Pk => "fonts/pk",
Self::Encoding => "fonts/enc",
Self::Map => "fonts/map",
@@ -48,6 +52,8 @@ impl ResourceKind {
Self::Tfm => "TFMFONTS",
Self::Vf => "VFFONTS",
Self::Type1 => "T1FONTS",
Self::OpenType => "OPENTYPEFONTS",
Self::TrueType => "TTFONTS",
Self::Pk => "PKFONTS",
Self::Encoding => "ENCFONTS",
Self::Map => "TEXFONTMAPS",
@@ -61,6 +67,8 @@ impl ResourceKind {
Self::Tfm => &["tfm"],
Self::Vf => &["vf"],
Self::Type1 => &["pfb", "pfa"],
Self::OpenType => &["otf", "otc"],
Self::TrueType => &["ttf", "ttc"],
Self::Pk => &["pk"],
Self::Encoding => &["enc"],
Self::Map => &["map"],
@@ -68,11 +76,13 @@ impl ResourceKind {
Self::Config => &["cnf"],
}
}
const ALL: [Self; 9] = [
const ALL: [Self; 11] = [
Self::Tex,
Self::Tfm,
Self::Vf,
Self::Type1,
Self::OpenType,
Self::TrueType,
Self::Pk,
Self::Encoding,
Self::Map,