'Chromium and FreeType
I want to try to make chromium fonts less blurry without resorting to using patches to enable an old and problematic GDI that was removed ~50 versions ago. In the SKIA engine discussion group, I found information that you can try to use the backend freetype for this purpose (https://groups.google.com/g/skia-discuss/c/Z0WBnnxJTrk). And I don't quite understand how to do it. After looking at the source code, I found that different font managers are used for different operating systems. The default for Windows is SkFontMgr_New_DirectWrite(); But there is also SkFontMgr_New_Custom_Empty(); whose description reads:
/** Create a custom font manager that contains no built-in fonts.
* This font manager uses FreeType for rendering.
*/
(https://source.chromium.org/chromium/chromium/src/+/main:third_party/skia/include/ports/SkFontMgr_empty.h) Do I understand correctly that I need to replace the font manager?
By the way, I found a patch that includes opentype support, but it's already 3 years old and some files are no longer in the sources (https://codereview.chromium.org/2780133002/#ps140001).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
