Comments (5)
it isn't actually a bug. it is caused by the way bitmap text renders in blit mode: it have "canvas" bitmapdata on which text symbols are drawn.
If you want to "avoid" this problem then you can do it in two ways:
- set textField's autoSize to true;
- set textField's width to textField's textWidth
from bitmapfont.
Hmm, autoSize is true by default, and setting it didn't make a difference.
Setting the width didn't help either. Exactly the same problem.
I don't understand what the canvas has to do with it? Why does 0.99 crop and 1.0 not?
The size attribute is Font size, not text size?
This is with what I actually use, works fine on Neko and Linux:
textfield = new BitmapTextField(font, "RETRO");
textfield.size = 0.57;
from bitmapfont.
ok, i'll look into it this weekend
from bitmapfont.
@MiltonW can you try latest version?
from bitmapfont.
Yep, fixed. Keep up the good work :)
from bitmapfont.
Related Issues (20)
- add border and borderColor properties
- Haxelib HOT 2
- Stage3D support
- Shadow always blue for RENDER_BLIT targets
- implement kerning
- Bitmap smoothing HOT 14
- the bitmapfont work bad in preloader of html5 HOT 3
- Having some issues with latest version of openfl
- html5 target with -Dwebgl HOT 1
- Background transparency issue when using blitting
- Not compatable with OpenFl 4.0.0 HOT 2
- BitmapFont -> format library HOT 1
- Saving BitmapData with pixelsnapping
- Make shadow offset customizable
- Make outline width customizable
- Try to implement .type property HOT 1
- lineSpacing - issue HOT 6
- Add noColor field HOT 1
- Change PxBitmapFont's getPreparedGlyphs() method
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 bitmapfont.