Petr Kobalicek

Results 307 comments of Petr Kobalicek

If the font has ligatures and two characters ligate, you would get 1 less glyph on the output. Does that make sense?

Can you please share what gets rendered? The glyph buffer doesn't have to represent each character. If your font ships OpenType features such as GSUB then glyph substituion could happen,...

I wrote this little fiddle to explain what is happening: ```c++ static void debugSink(const char* message, size_t size, void* userData) noexcept { fprintf(stderr, " %s\n", message); } BLImage render(const BLContextCreateInfo&...

It's not an issue, this is how OpenType technology works - if two glyphs ligate, the output is only a single glyph. The only thing you can do is to...

Highlighting ligated text is a challenge that even browsers fail to address in many cases, it's not something that would be Blend2D specific. Blend2D uses OpenType technology, which is documented...

I have profiled it a little better and I have found one interesting thing. At least `perf` says that 7% cycles in this function is burned by atomics: ![image](https://github.com/user-attachments/assets/c7dc22a3-079c-4cbe-b385-dba2115f4606) The...

BTW this is a profile by using cachegrind: ![image](https://github.com/user-attachments/assets/6354ac0b-db81-4748-b52c-a723997060e8) It's a 400kB HTML page that causes`draw_children()` to basically consume 33% of cycles. It's definitely a hot spot.

It's this one: - https://blend2d.com/doc/classBLContext.html I'm using litehtml with Blend2D renderer, the source code is available: - https://github.com/blend2d/blend2d-apps/tree/master/bl_litehtml But I'm not expecting you to compile and run that, but if...

I've got the same idea as @IJzerbaard about a week ago when improving PNG decoding performance in Blend2D. I think it's a great idea to use multiple rows to filter...

@RobinMorisset That's a great find! I think the only reason it's not used at the moment is that I didn't even know it existed. I will take a look into...