Code Monkey home page Code Monkey logo

Comments (8)

britzl avatar britzl commented on June 30, 2024 1

Ah, I do not properly handle \r\n. Fixed in 2.5.2

from defold-richtext.

britzl avatar britzl commented on June 30, 2024

Couldn't you just ignore the <br/> tags? Line-breaks (\n) are accepted as well.

from defold-richtext.

subsoap avatar subsoap commented on June 30, 2024

If I remove the <br/> tags it looks like this

2018-03-02 08_21_58-defold editor 2 0 - vn
2018-03-02 08_21_52-vn

It's the tabs adding the extra initial character removing them

2018-03-02 08_25_16-defold editor 2 0 - vn

2018-03-02 08_25_33-vn

Something changed since last update to make words squish together?

from defold-richtext.

subsoap avatar subsoap commented on June 30, 2024

If I set the size to 1 it looks closer to right, related to that in some way?

2018-03-02 08_35_33-vn

Higher scales seem to have more space than they need

2018-03-02 08_36_23-vn

from defold-richtext.

subsoap avatar subsoap commented on June 30, 2024

I'm still seeing

2018-03-02 13_13_04-vn

2018-03-02 13_14_07-vn

with I think latest release

local text = [[
<size=1>Lara</size><br/>
<size=1.2>Well, hello there!</size><br/>
<size=0.3>What do we have here?</size><img=icons:waiting/>]]

local text = [[<size=1>???</size><br/><size=0.7>Well, hello there!</size><br/><size=0.7>What do we have here?</size><img=icons:waiting/>]]	

from defold-richtext.

subsoap avatar subsoap commented on June 30, 2024

Happens in example too

2018-03-02 16_58_21-richtext

local text = "<size=0.5>RichText several words to test this</size>Lorem <color=0,0.5,0,1>ipsum </color><img=smileys:zombie/> dolor <color=red>sit </color><color=#ff00ffff>amet, </color><size=1.15><font=Nanum>consectetur </font></size>adipiscing elit.<br/><b>Nunc </b>tincidunt <b><i>mattis</i> libero</b> <i>non viverra</i>.\n\nNullam ornare <img=smileys:hungry></img>accumsan rhoncus.\n\nNunc placerat nibh a purus auctor, id scelerisque massa <size=2>rutrum.</size>"

from defold-richtext.

britzl avatar britzl commented on June 30, 2024

Ok, what about now? https://github.com/britzl/defold-richtext/releases/tag/2.5.3

from defold-richtext.

subsoap avatar subsoap commented on June 30, 2024

Looks to be fixed!

from defold-richtext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.