actionscript 3 - Hindi Font not coming properly in some client computers -
we have developed adobe air application has option hindi , english. translation used microsoft office hindi pack , used on-screen keyboard write in hindi. have used arial font in application.
in of client computers when language changed hindi see boxes in place of words. client computer having arial font available.
we ready embed correct ttf file in our application not sure font file being used successful machines did not install special font. please help.
== update===
found there option embed font of system application compiled on. used following code not working:
[embed(systemfont="arial", fontname="myarial", mimetype="application/x-font", advancedantialiasing="true")] protected var fontclass:class;
and in css file added
global { font-family: "myarial"; }
but getting errors:
description resource path location type exception `during transcoding: cannot embed local font 'arial' cff. css @font-face 'local()' syntax not supported. please specify path directly font file using 'url()' syntax. [embed] syntax 'systemfont' attribute not supported. please specify path directly font file using 'source'` attribute. hondalms.mxml /hondalms/src line 81 flex problem
and
description resource path location type unable build font 'myarial' hondalms.mxml /hondalms/src line 81 flex problem
i believe systemfont name "arial", not "arial" (they case sensitive).
if not work, try embed in css:
@font-face { src: local("arial"); fontfamily: "myarial"; unicoderange: u+0020-00ff; // change range desired english , hindi characters, numbers , punctuation, otherwise embed characters including cyrillic, chinese, arabic , whatnot , become huge } global { font-family: "myarial"; }
if won't work font name reference, copy arial font project directory , embed relative path:
@font-face { src: url("../assets/arial.ttf"); fontfamily: "myarial"; unicoderange: u+0020-00ff; // change range desired english , hindi characters, numbers , punctuation, otherwise embed characters including cyrillic, chinese, arabic , whatnot , become huge }
Comments
Post a Comment