Comments (7)
It's probably more that the embedded font doesn't support non-English characters.
from flixel.
could you fix that in a future version? although the embedded font is very beautiful,but not everyone speak english..
from flixel.
The font contains the characters for most Latin-character-based languages, and appears to be available through a free license. I'm not sure if Adam can find one that contains more characters than that while being free to use, but that doesn't stop you from embedding your own font and using that.
from flixel.
sorry my english is not good, I mean a language not character, why it must embed font?
add(new FlxText(0,0,100,"I am Chinese ,中文无法显示?"))
from flixel.
The current font is embedded into FlxGame with this line:
[Embed(source="data/nokiafc22.ttf",fontFamily="system")] protected var junk:String;
You can use this line in your game's code to embed a font you want to use by changing the source variable to the font to use and the fontFamily variable to a name to use in the FlxText setFormat function.
from flixel.
Yea it sounds like this is just a font problem, it's hard to find a good bitmap font (which is important for flixel) that supports more than basic latin characters
from flixel.
you can set the ”embeddedfont“ param in FlxText constructor to false, and set font = "_sans". if you need to display chinese chars.
from flixel.
Related Issues (20)
- FlxEmitter rotation problem
- FlxTilemap.ray() Result value always null HOT 1
- Missing usage of particleClass in FlxEmitter.emitParticle()
- FlxCamera follow jitters
- FlxSound.proximity is broken.
- FlxG.removeCamera does not remove the camera from FlxG.cameras
- Reloading A FlxTilemap
- Animated Tilemap - FlxAnimatedTilemap.as
- Full outline rather than shadow on FlxText HOT 1
- FlxSprite.onScreen() locks the game up if returns false. HOT 1
- Tiling Export
- Sound only plays after unpausing HOT 1
- loadRotatedGraphic Error HOT 1
- FlxG.play() not destroying FlxSound object even when AutoDestroy flag is set. HOT 1
- Error Message in flx.py HOT 1
- useDefaultHotKeys documented, not implemented HOT 2
- Flixel forums are down
- Flixel Is Dead HOT 1
- HaxeFlixel is Here!
- am I the one that still using it? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flixel.