Giter Site home page Giter Site logo

bitmapfont's People

Contributors

beeblerox avatar revanaii avatar slangeder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bitmapfont's Issues

Bitmap smoothing

Would be nice to have an option to set pixelsnapping and smoothing:

    _bitmap = new Bitmap(_bitmapData, PixelSnapping.AUTO, true));           

lineSpacing - issue

I am trying to set the lineSpacing value after loading with loadAngelCode.
The line height does not seem to change, always stays the same.

Having some issues with latest version of openfl

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

Shadow always blue for RENDER_BLIT targets

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".

Add noColor field

By setting this field to true your font's color wouldn't be transformed

Not compatable with OpenFl 4.0.0

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

Issue with too narrow textField

Program craches when textfield is too narrow to contain at least one symbol or word.
This could be solved in updateBitmapData() method

Change PxBitmapFont's getPreparedGlyphs() method

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

the bitmapfont work bad in preloader of html5

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?

Background transparency issue when using blitting

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 :
bitmapfont

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.

Saving BitmapData with pixelsnapping

I
Pix
Is there any way to apply pixelsnapping function to BitmapData or is it only available for displayed Bitmaps?
Does not make sense that images are saved with poor quality.

Haxelib

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.