There is no solution to this problem, which should be caused by changes in font size during font rendering
For example, a font size of 12px
Bolding or replacing with a different font can result in a change in font height
猫眼浏览器(Win Release)
Re: 猫眼浏览器(v3.5.1 Release)
But this happens even with default controls without any styles applied.
< cats
< cent
Upd, ok sorry for bothering you. I've checked the gdichromium and it seems the default behavior (-1px left/-5px top, but it breaks the layouts). Maybe chromium devs made some rendering enhancements before ditching the DW option and the cent dev fixed it himself. I'll try to check the gdichromium patches, maybe it'll show the direction on where to find the adjustments.


Upd, ok sorry for bothering you. I've checked the gdichromium and it seems the default behavior (-1px left/-5px top, but it breaks the layouts). Maybe chromium devs made some rendering enhancements before ditching the DW option and the cent dev fixed it himself. I'll try to check the gdichromium patches, maybe it'll show the direction on where to find the adjustments.
上次由 sth 在 2023年 4月 27日 08:48,总共编辑 1 次。
Re: 猫眼浏览器(v3.5.1 Release)
Optimize it, and I'm not sure if it's the issue you reportedsth 写了: 2023年 4月 27日 08:47 But this happens even with default controls without any styles applied.
< cats
< cent
Upd, ok sorry for bothering you. I've checked the gdichromium and it seems the default behavior (-1px left/-5px top, but it breaks the layouts). Maybe chromium devs made some rendering enhancements before ditching the DW option and the cent dev fixed it himself. I'll try to check the gdichromium patches, maybe it'll show the direction on where to find the adjustments.
Re: 猫眼浏览器(v3.5.1 Release)
I just found out it's a known issue and was discovered almost two years ago. Not sure how the cent dev managed to fix it on Chromium 102. Still digging through the sources, maybe I'll find something. Not a cpp dev, but maybe find something close enough.
https://github.com/GTANAdam/GDIChromium/issues/8
https://github.com/GTANAdam/GDIChromium/issues/8
Re: 猫眼浏览器(v3.5.2 Release)
This is a good website for testing the text alignment with DirectWrite.
https://www.miketaylr.com/pres/html5/forms2.html
https://www.miketaylr.com/pres/html5/forms2.html
Re: 猫眼浏览器(v3.5.2 Release)
印象中,新核已取消了该格式支持,支持css出错?是否?