digao-dalpiaz / DzHTMLText

Delphi and Lazarus HTML Label component
MIT License
190 stars 52 forks source link

Numbers cut in display #44

Closed Chandlr closed 3 years ago

Chandlr commented 3 years ago

Sorry again for disturbing but i found a display bug not sure how it happends. I'll attach a photo of the cut-numbers

NumbersCut

digao-dalpiaz commented 3 years ago

Is this in FMX framework?

Chandlr commented 3 years ago

yes FMX 10.4.2 version Prof :)

digao-dalpiaz commented 3 years ago

I guess I know whats going on.

In FMX environment, the fonts length in pixels are provided in floating point value, instead of integer value provided by VCL one. In this case, the character size must be occupying a larger space than expected.

But I need to confirm that. As soon as possible I'll check this problem.

digao-dalpiaz commented 3 years ago

Hello @Chandlr ,

Please, download this branch: https://github.com/digao-dalpiaz/DzHTMLText/tree/fmx-pixels-single-support And do a test to see if the problem will still occur.

Thanks.

Chandlr commented 3 years ago

It seems to be fixed now, that was quick 👍 Bug_Fixed

digao-dalpiaz commented 3 years ago

New version 3.3 available with this fix.