Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/hb/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ pub mod script {
pub const TODHRI: Script = Script::from_bytes(b"Todr");
pub const TULU_TIGALARI: Script = Script::from_bytes(b"Tutg");

pub const SCRIPT_MATH: Script = Script::from_bytes(b"Zmth");
pub const MATH: Script = Script::from_bytes(b"Zmth");

// https://github.com/harfbuzz/harfbuzz/issues/1162
pub const MYANMAR_ZAWGYI: Script = Script::from_bytes(b"Qaag");
Expand Down
2 changes: 2 additions & 0 deletions src/hb/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,8 @@ fn new_tag_from_script(script: Script) -> Option<hb_tag_t> {
fn old_tag_from_script(script: Script) -> hb_tag_t {
// This seems to be accurate as of end of 2012.
match script {
script::MATH => hb_tag_t::from_bytes(b"math"),

// Katakana and Hiragana both map to 'kana'.
script::HIRAGANA => hb_tag_t::from_bytes(b"kana"),

Expand Down