Comments (9)
So there's supposed to be a lineHeight
property that you can add to any text style, but it doesn't seem to actually be applied anywhere in our code.
Actually, that style doesn't seem to be used anywhere in PIXI.Text
either, even though it's listed in the documentation...
Implementing this shouldn't be too bad, though I'll have to think about how it plays with multiple font sizes and vertical alignments. (I'll probably just look into what CSS does and follow that as a guide.)
from pixi-multistyle-text.
...though we'll also need to decide which units to use. I'd personally probably opt for a multiplier on the font size (CSS's unitless option), though interpreting it as a number of pixels (like CSS's length option) is also a reasonable choice.
from pixi-multistyle-text.
Hi,
Thank you.
I understand that, but in PIXI.Text, lineHeight works just fine.
The only thing for now that is preventing me from using MultiText for all my text fields in PIXI is this lineHeight property. Once its working, i'll make it my default text in my apps, because its great and solves me a lot of problems.
Congrats,
Nuno
from pixi-multistyle-text.
Ah - apologies. I think I accidentally tested with a crazy-out-of-date copy of Pixi.
Looks like base Pixi uses the equivalent of CSS's length option, so we should stay consistent with that. That shouldn't be too hard to fold in; I'll try to include that with the new vertical align options.
from pixi-multistyle-text.
lineHeight
still not work. 😢
from pixi-multistyle-text.
from pixi-multistyle-text.
I tried to solve lineHeight
and it worked for me but I'm not sure about vertical align. I don't use that. Can someone test it?
from pixi-multistyle-text.
@bluepichu - Would you have time to check out the suggested PR #71 ?
from pixi-multistyle-text.
Will this bug be fixed in the near future?
from pixi-multistyle-text.
Related Issues (20)
- Formatting tags cannot be used together
- Error when used "@pixi/text": "5.2.2" and fillGradientStops style HOT 1
- BitmapText support? HOT 1
- Cropped characters
- Change FILL color .on('pointerover'
- Hire You To Build This Feature
- Request for Write privileges HOT 6
- wordWrap + letterSpacing is broken HOT 3
- Unable to update wordWrapWidth HOT 3
- A feature request, textOverflow with ellipsis HOT 1
- Incorrect formatting when using breakWords. HOT 3
- Negative local bounds on root container
- option to use bbcode style [tags][/tags] instead of <xml></xml> style HOT 3
- ability to take in parameters inside tag <color=red> red text </color> HOT 2
- Ability to use this as a library inside a JS project
- demo no longer works HOT 4
- Do you plan to make it compatible with Pixi 5? HOT 2
- Cannot set property realWidth HOT 7
- adding "lineHeight" param
- Added to list of v5 plugins HOT 1
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 pixi-multistyle-text.