stagexl_bitmapfont 0.5.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 65

The StageXL BitmapFont library is an extension to the StageXL library and provides support for bitmap fonts.

NOTE: as of version 0.10.0-dev, StageXL_BitmapFont requires a Dart 2 SDK.

Build Status

Bitmap Fonts #

Bitmap fonts can be created with different tools, here is just a short list of the most popular tools available:

bmGlyph (Mac)
Glyph Designer (Mac and Windows)
BMFont (Windows)
Littera (Online)

Examples #

StageXL #

The StageXL library is intended for Flash developers who want to migrate their projects as well as their skills to HTML5. Therefore the library provides the familiar Flash API built on open web standards.

changelog #

This file contains highlights of what changes on each version of the StageXL_BitmapFont package. This file is normally updated whenever we push a new version to pub.

Pub version 0.5.1

  • Raised dependency to StageXL 1.4.1
  • Ready for Dart 2.4

Pub version 0.5.0

  • Raised dependency to StageXL 1.4.0
  • Ready for Dart 2.0

Pub version 0.4.0

  • Added support for HiDpi BitmapFonts.
  • Enables Dart Strong Mode.
  • Raised dependency to StageXL 1.3.0

Pub version 0.3.1

  • Raised dependency to StageXL 1.0.0

Pub version 0.3.0

  • Added DistanceFieldShadowFilter
  • Changed DistanceFieldConfig

Pub version 0.2.0

  • BitmapText extends Bitmap and therefore renders super fast.
  • BitmapContainerText extends DisplayObjectContainer and is super flexible.
  • Added DistanceFieldFilters for vector like scaling.

Pub version 0.1.1

  • Updated to StageXL 0.13.0

Pub version 0.1.0

  • Support for Bitmap Font formats: FNT, JSON, XML
  • Support loaders for File BitmapData and TextureAtlas
  • BitmapFont class to query character properties.
  • BitmapText display object to draw text on the stage.


Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  stagexl_bitmapfont: ^0.5.1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:stagexl_bitmapfont/stagexl_bitmapfont.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Apr 4, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6

Health suggestions

Format lib/src/bitmap_container_text.dart.

Run dartfmt to format lib/src/bitmap_container_text.dart.

Format lib/src/bitmap_font.dart.

Run dartfmt to format lib/src/bitmap_font.dart.

Format lib/src/bitmap_font/bitmap_font_char.dart.

Run dartfmt to format lib/src/bitmap_font/bitmap_font_char.dart.

Fix additional 19 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/bitmap_font/bitmap_font_common.dart (Run dartfmt to format lib/src/bitmap_font/bitmap_font_common.dart.)
  • lib/src/bitmap_font/bitmap_font_info.dart (Run dartfmt to format lib/src/bitmap_font/bitmap_font_info.dart.)
  • lib/src/bitmap_font/bitmap_font_kerning.dart (Run dartfmt to format lib/src/bitmap_font/bitmap_font_kerning.dart.)
  • lib/src/bitmap_font/bitmap_font_page.dart (Run dartfmt to format lib/src/bitmap_font/bitmap_font_page.dart.)
  • lib/src/bitmap_font_format.dart (Run dartfmt to format lib/src/bitmap_font_format.dart.)
  • lib/src/bitmap_font_format/bitmap_font_format_fnt.dart (Run dartfmt to format lib/src/bitmap_font_format/bitmap_font_format_fnt.dart.)
  • lib/src/bitmap_font_format/bitmap_font_format_json.dart (Run dartfmt to format lib/src/bitmap_font_format/bitmap_font_format_json.dart.)
  • lib/src/bitmap_font_format/bitmap_font_format_xml.dart (Run dartfmt to format lib/src/bitmap_font_format/bitmap_font_format_xml.dart.)
  • lib/src/bitmap_font_loader.dart (Run dartfmt to format lib/src/bitmap_font_loader.dart.)
  • lib/src/bitmap_font_loader/bitmap_font_loader_bitmap_data.dart (Run dartfmt to format lib/src/bitmap_font_loader/bitmap_font_loader_bitmap_data.dart.)
  • lib/src/bitmap_font_loader/bitmap_font_loader_file.dart (Run dartfmt to format lib/src/bitmap_font_loader/bitmap_font_loader_file.dart.)
  • lib/src/bitmap_font_loader/bitmap_font_loader_texture_atlas.dart (Run dartfmt to format lib/src/bitmap_font_loader/bitmap_font_loader_texture_atlas.dart.)
  • lib/src/bitmap_text.dart (Run dartfmt to format lib/src/bitmap_text.dart.)
  • lib/src/filter/distance_field_config.dart (Run dartfmt to format lib/src/filter/distance_field_config.dart.)
  • lib/src/filter/distance_field_filter.dart (Run dartfmt to format lib/src/filter/distance_field_filter.dart.)
  • lib/src/filter/distance_field_glow_filter.dart (Run dartfmt to format lib/src/filter/distance_field_glow_filter.dart.)
  • lib/src/filter/distance_field_outline_filter.dart (Run dartfmt to format lib/src/filter/distance_field_outline_filter.dart.)
  • lib/src/filter/distance_field_shadow_filter.dart (Run dartfmt to format lib/src/filter/distance_field_shadow_filter.dart.)
  • lib/stagexl_bitmapfont.dart (Run dartfmt to format lib/stagexl_bitmapfont.dart.)

Maintenance issues and suggestions

Support latest dependencies. (-10 points)

The version constraint in pubspec.yaml does not support the latest published versions for 1 dependency (xml).

The package description is too short. (-20 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Homepage URL is insecure. (-5 points)

Update the homepage field and use a secure (https) URL.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.0 <3.0.0
stagexl >=1.4.1 <2.0.0 1.4.4
xml >=3.5.0 <4.0.0 3.7.0 4.1.0
Transitive dependencies
charcode 1.1.3
collection 1.14.12
convert 2.1.1
meta 1.1.8
petitparser 3.0.2
typed_data 1.1.6
Dev dependencies
build_runner any
build_test any
build_web_compilers any
pedantic any