Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenType.js support the Mongolian? #431

Open
mhjy opened this issue Apr 18, 2020 · 5 comments
Open

OpenType.js support the Mongolian? #431

mhjy opened this issue Apr 18, 2020 · 5 comments

Comments

@mhjy
Copy link

mhjy commented Apr 18, 2020

Expected Behavior

OpenType.js support the features of the Mongolian font .

Current Behavior

OpenType.js didn't support the Mongolian font . Mongolian font need the features that isol, init, medi, fina and rlig.

GLTQaganTig.zip

@Jolg42
Copy link
Member

Jolg42 commented Apr 20, 2020

So init, medi, fina and rlig are already supported but I don't think isol is.

See how to use them here:
https://github.com/opentypejs/opentype.js/blob/master/font-inspector.html#L139

You'll need to replace
{ script: 'mongo', tags: ['init', 'medi', 'fina', 'rlig'] },

@mhjy
Copy link
Author

mhjy commented Apr 21, 2020

I need to give a string of Mongolian characters to get the corresponding graphic id.
test

@mhjy
Copy link
Author

mhjy commented Apr 21, 2020

There's only liga and rlig

function renderText() {
var i;
if (!font) return;
textToRender = document.getElementById('textField').value;
var previewCtx = document.getElementById('preview').getContext('2d');
var options = {
kerning: kerning,
hinting: hinting,
features: {
liga: ligatures,
rlig: ligatures
}
};

@mhjy
Copy link
Author

mhjy commented Apr 21, 2020

test1

@mhjy
Copy link
Author

mhjy commented Apr 25, 2020

result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants