AS3 - Chinese text and system fonts - actionscript-3

If I set an input textfield to use a _sans system font, does it display Chinese characters?
Thanks.
Uli

The issue will be whether the system that is running your swf has a Chinese font installed.
_sans is the default 'sans serif' font installed on the system.
Typically PC's in China will ;), Mac's also have one installed by default.
This is a multi lingual presentation that pulls in text from an XML file. If I play this on my Mac and choose the Chinese option I see the font. If I run it on my UK based Windows XP machine it doesn't display the font. The swf specifies the _sans font for anything other than latin languages. So Russian also uses the _sans font.
http://www.sita.aero/content/intelligent-airport-vision
You could assume that people wanting to read information in Chinese would have a Chinese font installed on their system, therefore specifying _sans would be a solution.

I believe you need to be concerned about using a Unicode font (one that has chinese glyphs in it, think you can use the character map program in windows to browse the glyphs in a font). I haven't actually had to do localization for China ever so I'm not positive, but here's the wiki page on unicode fonts http://en.wikipedia.org/wiki/Unicode_font.

Related

Is it possible for front-end to know the local supported font-family?

I know we could define #fontface to download web-font. However, this could be problematic especially for chinese fonts due to its large size.
Yet in modern system, it's likely that it already installed some pre-set fonts. For example, a Windows might already installed fonts like SimHei, SimSun, NSimSun, FangSong, KaiTi, a Mac might installed fonts like Hiragino Sans GB, STHeiti Light, STHeiti, STKaiti.
So is it possible for a web-app to know what font this system had installed?
Take a look here it was the closed I could find (it may not be performant):
list every font a user's browser can display
Goodluck

Font Awesome does not work on any of my Windows 10 computers

I cannot get Font Awesome to work on any of my three Windows 10 machines. All my computers have been updated from 8.1. I don't know when it stopped working, here is what I do know:
Symptoms:
The font does not show. When double-clicked and opened with default Windows font viewer, it shows a default Arial-like typeface instead of slab serif Font Awesome
After installation, when browsed with Character Map - it again displays some kind of system-default font (and none of the icons)
Opened in Adobe programs it shows all alphanumeric characters and icons as blank square outlines.
So far I have tried:
Removing any and all font awesome files from the system and installing the font again
Installing just OTF, just TTF as well as both
Restarting, rebooting, system cleanup
Downloading older versions of the font
I am new to StackOverlow, so can't post images. Links below:
Double-clicking FontAwesome.otf file
Attempting to view in Character Map
EDIT: I had a friend with Windows 8.1 try it -- same problem!
One practical way is to convert .otf format to .ttf using Fontlab.
The solution is discussed here.
Font Awesome 5 is known to work on Windows 10. Here are instructions to install for Desktop Use. We recommend that you use the OTF files for desktop applications, because they support ligatures (i.e. type the icon name and the icon glyph appears).

Unicodes not rendering properly in mobile devices

I am having difficulty having geez texts like these
እቶም ዝቐለሉ ክፋል ናይቲ ቋንቋ እዮም፣ በዚ ኣብ ታሕቲ
to which you can find more information on wikipedia. Are not rendering at all on most mobile platforms.
I don't know what the causes are. I have declared the charset on my document as utf8
<meta charset="utf-8">
Is there some solution to showing these texts on mobiles like Nokia S60, or symbian phones running opera or their native browsers?
This is a font problem, nothing to do with encodings. The issue is that only few fonts contain glyphs for Ge’ez letters, and many devices have no such font installed.
Thus, the only practical option is to use a font as a web font (downloadable font) with #font-face. For general instructions, see my Guide to using special characters in HTML.
The following fonts have Ge’ez letters: Code2000 (an extensive font, which appears to be abandonware), FreeSerif (seems to have all wrong spacing for Ge’ez letters), GNU unifont (a coarse bitmap font), Nyala (shipped with new versions of Windows), SunExt-A, and TITUS Cyberbit Basic. This leaves about two options, the last two; TITUS Cyberbit Basic is announced as free for non-commercial use, and SunExt-A is free. Both are rather large, so there will be problems on slow connections. Both look reasonable to me, but I don’t really know Ge’ez.

chinese font in flash

I have a site with some swf file.
I have to translate all site in chinese, and when I have opened my flash project copy into a textfield (with font trebuchet) the text in chinese.
I have compiled and seen into many computers: Windows7 Windows Xp and Mac.
I'm very surprised because I seen the chinese character correctly but I have only copy the text I don't include any characters or font. Is possible this? For me is very simple now but I don't want that in a pc I don't see character because I have to include chinese font. But now is working and I see correctly. Why this? Is corret to don't include chinese font?
It looks like most modern systems will have support:
http://en.wikipedia.org/wiki/List_of_CJK_fonts
You'd lose in filesize by embedding a font but gain some extra control on the font smoothing and ability to rotate the font, but it looks like you'd be safe not embedding assuming you're targeting mostly customers that have moved up to or beyond XP service pack 3.

Pygame Font not consistent

I'm working on a program in python+pygame with some other developers, and we're seeing the same font rendered differently. It's a free font that we're distributing with the game. On my machine, this particular font is rendering 10px lower than on another developer's machine.
Any thoughts on why this is?
I encountered the same problem but it was when using too different releases of the pygame stuff (especially the truetype library), try to compare the versions of pygame, sdl, sdl-ttf and the freetype library.
It's a free font that we're distributing with the game.
But whilst you are prototyping and building the program, are you referencing the font file from a local directory within the project, or are you just using the same font, but 'installed' on each machine?
If so, it could be that one machine has a slightly differing version of the font. Try and use the font just from a directory in the project and see if that helps.
Otherwise, it could be some crazy ClearType / TrueType settings or font anti-aliasing or something. I would have no idea how to fix that. Maybe try converting it to a different file format?
To test: Place a copy of the font the same folder as a python script.
Or maybe similar font is being loaded.
Pygame uses te installed fonts on your operating system: maybe you have some different fonts installed or not installed? If so then it will default to a different font than you expect.