From d4ffafd3af66e52f9ae7506c47c25a34d0a95aa4 Mon Sep 17 00:00:00 2001 From: zhaona45 Date: Fri, 29 Aug 2025 15:09:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dsvg=E4=B8=AD=E6=96=87?= =?UTF-8?q?=E5=AD=97=E4=BD=93=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaona45 --- m133/modules/svg/BUILD.gn | 1 + m133/modules/svg/include/SkSVGRenderContext.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/m133/modules/svg/BUILD.gn b/m133/modules/svg/BUILD.gn index 004f7406df..64ba6ea9d1 100644 --- a/m133/modules/svg/BUILD.gn +++ b/m133/modules/svg/BUILD.gn @@ -28,6 +28,7 @@ if (skia_enable_svg && skia_use_expat) { if (use_oh_skia) { configs += [ "../../:skia_wno" ] } + defines = [ "ENABLE_TEXT_ENHANCE" ] } if (skia_enable_tools) { diff --git a/m133/modules/svg/include/SkSVGRenderContext.h b/m133/modules/svg/include/SkSVGRenderContext.h index b6bc5d5fac..ddc23acfe7 100644 --- a/m133/modules/svg/include/SkSVGRenderContext.h +++ b/m133/modules/svg/include/SkSVGRenderContext.h @@ -163,7 +163,7 @@ public: // It is probably an oversight to try to render without having set the SkFontMgr. // We will assert this in debug mode, but fallback to an empty fontmgr in release builds. SkASSERT(fFontMgr); - return fFontMgr ? fFontMgr : SkFontMgr::RefEmpty(); + return fFontMgr ? fFontMgr : SkFontMgr::RefDefault(); } // Returns the translate/scale transformation required to map into the current OBB scope, -- Gitee