experience-monks / layout-bmfont-text Goto Github PK
View Code? Open in Web Editor NEWword-wraps and lays out text glyphs
License: MIT License
word-wraps and lays out text glyphs
License: MIT License
Maybe fit for another module or maybe could be integrated into this one.
Basically supporting multiple font styles (sizes/weights/etc) with different baselines so they all line up.
Since things like color / page ID is entirely decided by the rendering step this would be best to consider across all levels of these modules..
It would be so great to have the TypeScript types available.
to act like CSS, so that 1
multiplies the lineHeight
by 1, 1.5
multiplies it by 1.5, etc
so it can be independent of font size
Some users have requested a pure Pixi implementation of:
This could be accomplished with a pixi-bmfont-text
module like the ThreeJS one. It's best to wait for Pixi v3 as shaders and static buffers are changing there.
If there is a lot of shared code it could be split into a module, e.g. bmfont-text-vertex-data
or something.
How to indent the first line by 4 characters?
Should be fairly trivial to fix. At the moment, line breaks are ignored, meaning that curWidth
keeps increasing, so the result is the total length of all lines rather than the length of the longest line.
Thanks for this repo. Very useful.
indexof-property
and garnish
are missing form package.json but are required for tests. I suggest adding them to devDependencies
since they don't appear to be necessary for the actual running code.
Other dependencies could use an update as well. The start
and stress
scripts are failing, and I suspect it may be because of an outdated dependency.
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.