Bump version to 24.04.3.4
[LibreOffice.git] / external / skia / windows-do-not-modify-logfont.patch.0
blobb2c067d9e0c4886b902c6d44d5145efd04334a53
1 --- ./src/ports/SkFontHost_win.cpp
2 +++ ./src/ports/SkFontHost_win.cpp
3 @@ -357,7 +357,7 @@ static bool FindByLogFont(SkTypeface* face, void* ctx) {
4   */
5  sk_sp<SkTypeface> SkCreateTypefaceFromLOGFONT(const LOGFONT& origLF) {
6      LOGFONT lf = origLF;
7 -    make_canonical(&lf);
8 +//    make_canonical(&lf);
9      sk_sp<SkTypeface> face = SkTypefaceCache::FindByProcAndRef(FindByLogFont, &lf);
10      if (!face) {
11          face = LogFontTypeface::Make(lf);
12 @@ -363,7 +363,7 @@ SkTypeface* SkCreateTypefaceFromLOGFONT(const LOGFONT& origLF) {
13   */
14  sk_sp<SkTypeface> SkCreateFontMemResourceTypefaceFromLOGFONT(const LOGFONT& origLF, HANDLE fontMemResource) {
15      LOGFONT lf = origLF;
16 -    make_canonical(&lf);
17 +//    make_canonical(&lf);
18      // We'll never get a cache hit, so no point in putting this in SkTypefaceCache.
19      return FontMemResourceTypeface::Make(lf, fontMemResource);
20  }
21 @@ -686,7 +686,7 @@ SkScalerContext_GDI::SkScalerContext_GDI(sk_sp<LogFontTypeface> rawTypeface,
23      LOGFONT lf = typeface->fLogFont;
24      lf.lfHeight = -SkScalarTruncToInt(gdiTextSize);
25 -    lf.lfQuality = compute_quality(fRec);
26 +//    lf.lfQuality = compute_quality(fRec);
27      fFont = CreateFontIndirect(&lf);
28      if (!fFont) {
29          return;