New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The font rendering used an incorrect left offset #4397
Comments
I'll review this later. |
@TakWolf I'm trying to take a look to this issue and see if using Skia (DirectWrite on Windows) to paint text with this font is fixed, but noticed that it make things worse (I have to investigate a little more): 🤒 Anyway I found out that with the current Aseprite implementation (v1.3.6), using Screen Scaling=100% and UI Scaling=200% things work a little better: Anyway we'll try to find a proper solution. |
Could confirm this is an issue with DirectWrite? Do other OTFs also have this issue? For example: https://unifoundry.com/unifont/index.html as 16px https://github.com/adobe-fonts/source-han-serif/releases as Vectorial |
It looks like an issue with DirectWrite only (or probably some setup that is missing in the Skia side/implementation of DirectWrite, probably something to review a little later), and probably with bitmap fonts only (?). unifont with 16px: SourceHanSerif-Medium.otf: (there are some issues with the required width but it's something to fix yet). |
Demo fonts and theme is here: https://github.com/TakWolf/aseprite-universal-pixel-theme/releases
In chrome:
In Aseprite:
Notice char
日
and1
, these two characters happen to have an inner padding on the left sideAseprime lost the offset of the x-axis of the glyph bitmap.
The text was updated successfully, but these errors were encountered: