Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Huuugo but with other Fonts it changes the name to PhotoDirector... I think this app is magic
-
ddephor45117yThe system should provide a way to define optional newlines, that can be provided within the text. They are ignored and invisible if the text fits in one line and evaluate to a newline if the text exceeds line width.
I don't know if Android supports something like this?
But it should not wrap text on its own if not intentionally told to do so. That's too error prone. -
Voxera115857y@ddephor there already exists a standard for that: &zwsp;
Its an invisible zero width space character to indicate possible line continuation.
https://en.m.wikipedia.org/wiki/... -
ddephor45117y@Voxera Ahh, thanks for the link, I did'nt know that there is a standard for this.
I just knew some proprietary implementations to get the same result.
And a quick search shows that there seem to be some functions in then Android API that support it (not sure where they can be used, after that quick glance). -
f03n1x65807y@Voxera woah you just gave me a brilliant idea for the PDF generation class I had to implement, thanks :D
I had some extremely complicated and probably extremely wrong algorithm lol (tried width checking but that didn't work to well :/)
Related Rants
Why is it formatted like this? Cant they just do a \n on a capital Letter? This looks so terribleš¢
undefined
android
text formatting