beeblerox / bitmapfont Goto Github PK
View Code? Open in Web Editor NEWcross-platform bitmap font implementation
cross-platform bitmap font implementation
By setting this field to true your font's color wouldn't be transformed
Neko, Linux are fine, but when testing Flash and HTML5:
I'm using the desyrel font: http://examples.phaser.io/_site/view_full.html?d=text&f=bitmap+fonts.js&t=bitmap%20fonts
cost lots of cpu about this bitmapFont
in my computer ,cpu is use more than 40%
Hey this is a wonderful class that would be helpful to nme developers as a haxelib. Haxeflixel could just have a dependency of that haxelib it looks like the same code? Cheers.
The shadow always renders blue for RENDER_BLIT targets.
The problem is in BitmapFont.hx line 580.
In this line the value should get assigned to "colorTransform.blueMultiplier" instead of "colorTransform.redMultiplier".
I'm trying to add a semi-transparent background to the BitmapTextField, but when I'm setting the render mode to BLIT, the color and alpha are not properly displayed if I'm not using a complete solid color :
The background color here is supposed to be 0xCC0000FF (slightly transparent blue), but as you can see it only appears in the top-left corner.
Works perfectly in TILE mode.
this prop could be:
For some help see this series of tutorials: http://active.tutsplus.com/series/flashpunk-ui-components/
When I make a html5 webgl build BitmapFonts do not render.
Program craches when textfield is too narrow to contain at least one symbol or word.
This could be solved in updateBitmapData() method
What do you think of pushing the format parsing and possibly layout logic (not rendering code) to https://github.com/HaxeFoundation/format? I know some of this originated in HaxePunk, it would be great to share your additions and improvements.
replace the line:
_colorTransform.color = pColor;
with following:
var colorMultiplier:Float = 0.00392;
_colorTransform.redOffset = 0;
_colorTransform.greenOffset = 0;
_colorTransform.blueOffset = 0;
_colorTransform.redMultiplier = (pColor >> 16) * colorMultiplier;
_colorTransform.greenMultiplier = (pColor >> 8 & 0xff) * colorMultiplier;
_colorTransform.blueMultiplier = (pColor & 0xff) * colorMultiplier;
So it would have the same behavior on flash and cpp targets
I am trying to set the lineSpacing value after loading with loadAngelCode.
The line height does not seem to change, always stays the same.
At the moment I cannot even declare a bitmapfont or bitmaptextfield var without getting the following error:
Source/bitmapFont/BitmapTextField.hx:1084: characters 3-27 : bitmapFont.BitmapFont has no field tilesheet
The Tilesheet class has been removed from OpenFl 4.0.0
/opt/lib/haxelib/bitmapFont/0,9,4/bitmapFont/BitmapFont.hx:5: characters 7-31 : Type not found : openfl.display.Tilesheet
when i use bitmapfont in A Preloader and the target html5 of openfl project.the text didn't show anything.but when i use after the preloaded, it works fine. i check the console,no error trace.anybody know what's the matter?
Would be nice to have an option to set pixelsnapping and smoothing:
_bitmap = new Bitmap(_bitmapData, PixelSnapping.AUTO, true));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.