diff --git a/lib/src/system_chinese_font.dart b/lib/src/system_chinese_font.dart index c512970..76a38ca 100644 --- a/lib/src/system_chinese_font.dart +++ b/lib/src/system_chinese_font.dart @@ -1,3 +1,4 @@ +import 'dart:io'; import 'dart:ui'; import 'package:flutter/material.dart'; @@ -45,7 +46,13 @@ class SystemChineseFont { static List get fontFamilyFallback { if (!systemFontLoaded) { // honorSystemFont.load(); - vivoSystemFont.load(); + final vivoFont = File("/system/fonts/VivoFont.ttf"); + if (vivoFont.existsSync() && + vivoFont + .resolveSymbolicLinksSync() + .contains("DroidSansFallbackBBK")) { + vivoSystemFont.load(); + } systemFontLoaded = true; }