* Add IJ-acute ligatures (#2483). * Doc * Now 0xEF## is no longer just dingbats
This commit is contained in:
parent
4d19a20610
commit
fe348a7135
10 changed files with 44 additions and 7 deletions
|
@ -23,6 +23,7 @@ export const VS01 = LinkedGlyphProp("VS01");
|
|||
export const TieMark = LinkedGlyphProp("TieMark");
|
||||
export const LeaningMark = LinkedGlyphProp("LeaningMark");
|
||||
export const LeaningMarkSpacer = LinkedGlyphProp("LeaningMarkSpacer");
|
||||
export const NLDAcuteVariant = LinkedGlyphProp("NLDAcuteVariant");
|
||||
|
||||
export const LocalizedForm = {
|
||||
SRB: {
|
||||
|
|
|
@ -88,11 +88,21 @@ export class GlyphStore {
|
|||
queryByUnicode(u) {
|
||||
return this.encodingForward.get(u);
|
||||
}
|
||||
queryByUnicodeEnsured(u) {
|
||||
const g = this.encodingForward.get(u);
|
||||
if (!g) throw new Error(`Glyph for Unicode ${u} doesn't exist.`);
|
||||
return g;
|
||||
}
|
||||
queryNameByUnicode(u) {
|
||||
const g = this.queryByUnicode(u);
|
||||
if (!g) return undefined;
|
||||
return this.queryNameOf(g);
|
||||
}
|
||||
queryNameByUnicodeEnsured(u) {
|
||||
const g = this.queryByUnicode(u);
|
||||
if (!g) throw new Error(`Glyph for Unicode ${u} doesn't exist.`);
|
||||
return this.queryNameOf(g);
|
||||
}
|
||||
queryUnicodeOf(g) {
|
||||
const s = this.encodingBackward.get(g);
|
||||
if (!s || !s.size) return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue