Code Monkey home page Code Monkey logo

Comments (6)

odrobnik avatar odrobnik commented on June 3, 2024

Please do a recursiveDescription of the view. This means that one of the view in the hierarchy has a non integer size or origin.

Sent from my iPad2

Am 31.10.2011 um 13:08 schrieb Błażej Biesiada [email protected]:

Sometimes text in DTAttributedTextContentView appears to be stretched/fuzzy. Please have a look at this screenshot: http://imageshack.us/f/716/screenshot20111031at104.png/ The DTAttributedTextContentViews there are not transformed in any way, I even turned off dequeuing of cells.

I'm using the latest commit: e8ae622

Reply to this email directly or view it on GitHub:
https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML/issues/79

from dtcoretext.

bejo avatar bejo commented on June 3, 2024

This was exactly the case, one of the views had non integer height. Actually, the method that calculated that size was DTCoreTextLayouter's -suggestedFrameSizeToFitEntireStringConstraintedToWidth:. Anyway, ceilf fixed the issue.

Thanks a lot man! :)

from dtcoretext.

bejo avatar bejo commented on June 3, 2024

It turns out that this problems occurs also for origins/sizes with .5 suffixes, which are (IMO) valid if one's using only retina displays. Anyway, I would consider this issue a bug, IMHO it should work fine for any value.

from dtcoretext.

odrobnik avatar odrobnik commented on June 3, 2024

how about you add a ceilf to the function in question and make a pull request?

On Oct 31, 2011, at 5:29 PM, Błażej Biesiada wrote:

It turns out that this problems occurs also for origins/sizes that with .5 suffixes, which are (IMO) valid if one's using only retina displays. Anyway, I would consider this issue a bug.

Reply to this email directly or view it on GitHub:
https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML/issues/79#issuecomment-2579256

from dtcoretext.

bejo avatar bejo commented on June 3, 2024

Well, it's not that easy :/ From what I see the problem applies only to non-integer origins. I tried to fix it by adjusting DTAttributedTextContentView's layoutOffset property in it's -drawLayer:inContext: method, when DTAttributedTextContentView origin in window's coordinate system is not integer. However, this doesn't work, I'm not sure why... I'll keep working on this, but not today :)

from dtcoretext.

odrobnik avatar odrobnik commented on June 3, 2024

No news in over a month, probably not an issue any more.

from dtcoretext.

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.