sysl-dev / sysl-text Goto Github PK
View Code? Open in Web Editor NEWText rendering with tag support.
License: MIT License
Text rendering with tag support.
License: MIT License
[shadowcolor=#BEEEEF] updates the color and not the shadow color of the text.
Hey!
Loving using the library in my project, however it would be neat to be able to configure the speeds of bounce
, shake
, swing
and spin
(there are probably others).
I was thinking something like [bounce sp=0.3]
or something, but that doesn't really go with the theme of using separate tags, so perhaps [bounce][effect_speed=0.3]bouncy text[/effect_speed][/bounce]
?
Again, thanks for the library! It's pretty nice specifying fancy effects by just using bbcode-like tags :)
It would be nice if on :send
ing the text library would do a dry-run of text building routine to calculate bounding box covering all of text.
This feature would be extremely helpful for drawing background of proper size and similar tasks.
Pause and other tags print the next character before pausing. This is a side effect of the update code skipping tags when rendering before pausing.
using Japanese text with Text:send('確認」を押して続行します')
produces an error.
Error: lib/slog-text.lua:326: UTF-8 decoding error: Not enough space
stack traceback:
[string "boot.lua"]:777: in function <[string "boot.lua"]:773>
[C]: in function 'get_character_width'
lib/slog-text.lua:326: in function 'send'
main.lua:63: in function 'load'
[string "boot.lua"]:586: in function <[string "boot.lua"]:585>
[C]: in function 'xpcall'
[string "boot.lua"]:793: in function <[string "boot.lua"]:780>
[C]: in function 'xpcall'
This only occurs in context of the library and does not occur with love.graphics.print
In my game I need to scale the text based on the screen.
I would expect something like a scale that I would pass to the draw function.
No other ways seem to work for me.
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.