补全 Emoji 显示和另一个显示
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
from imagetext_py import FontDB
|
||||
from imagetext_py import EmojiOptions, FontDB
|
||||
|
||||
from .path import assets
|
||||
from .path import ASSETS
|
||||
|
||||
FontDB.LoadFromDir(str(ASSETS))
|
||||
|
||||
FontDB.SetDefaultEmojiOptions(EmojiOptions(
|
||||
parse_shortcodes=False,
|
||||
))
|
||||
|
||||
FontDB.LoadFromDir(str(assets))
|
||||
HARMONYOS_SANS_SC_BLACK = FontDB.Query("HarmonyOS_Sans_SC_Black")
|
||||
HARMONYOS_SANS_SC_REGULAR = FontDB.Query("HarmonyOS_Sans_SC_Regular")
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
from pathlib import Path
|
||||
|
||||
assets = Path(__file__).parent.parent.parent / "assets"
|
||||
ASSETS = Path(__file__).parent.parent.parent / "assets"
|
||||
|
||||
Reference in New Issue
Block a user