Use test font manager for SVG fuzzer

Change-Id: Ia4f96278e076d300b432b362db5df6b1a1654f3d
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/301218
Commit-Queue: Zepeng Hu <zepenghu@google.com>
Reviewed-by: Kevin Lubick <kjlubick@google.com>
diff --git a/fuzz/oss_fuzz/FuzzAPISVGCanvas.cpp b/fuzz/oss_fuzz/FuzzAPISVGCanvas.cpp
index 6642539..71bb49b 100644
--- a/fuzz/oss_fuzz/FuzzAPISVGCanvas.cpp
+++ b/fuzz/oss_fuzz/FuzzAPISVGCanvas.cpp
@@ -6,10 +6,13 @@
  */
 
 #include "fuzz/Fuzz.h"
+#include "src/core/SkFontMgrPriv.h"
+#include "tools/fonts/TestFontMgr.h"
 
 void fuzz_SVGCanvas(Fuzz* f);
 
 extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
+    gSkFontMgr_DefaultFactory = &ToolUtils::MakePortableFontMgr;
     auto fuzz = Fuzz(SkData::MakeWithoutCopy(data, size));
     fuzz_SVGCanvas(&fuzz);
     return 0;