From f14eb8dacfa1a78211318d85107b31dd9ffb8819 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 20 Jul 2023 22:58:45 +0800 Subject: [PATCH] feat: loadFontFace --- .../load-font-face/load-font-face-child.uvue | 39 ++++++++-- pages/API/load-font-face/load-font-face.uvue | 75 ++++++++++++------- 2 files changed, 79 insertions(+), 35 deletions(-) diff --git a/pages/API/load-font-face/load-font-face-child.uvue b/pages/API/load-font-face/load-font-face-child.uvue index be09983d..54008af7 100644 --- a/pages/API/load-font-face/load-font-face-child.uvue +++ b/pages/API/load-font-face/load-font-face-child.uvue @@ -2,28 +2,53 @@ - 全局加载 font-family: uni.ttf上一页全局加载字体: + font-family: uni.ttf - + {{ + uniIcon1 + }} + \ue100 + {{ + uniIcon2 + }} + \ue101 + + 上一页非全局加载字体: + font-family: 阿里妈妈刀隶体-ttf - font-family: 阿里妈妈刀隶体-otf - font-family: 阿里妈妈刀隶体-woff font-family: 阿里妈妈刀隶体-woff2 + > --> + + diff --git a/pages/API/load-font-face/load-font-face.uvue b/pages/API/load-font-face/load-font-face.uvue index 0e4d9455..fb2dae7f 100644 --- a/pages/API/load-font-face/load-font-face.uvue +++ b/pages/API/load-font-face/load-font-face.uvue @@ -2,28 +2,45 @@ - 全局加载 font-family: uni.ttf全局加载字体: + font-family: uni.ttf - + {{ + uniIcon1 + }} + \ue100 + {{ + uniIcon2 + }} + \ue101 + + 非全局加载字体: + font-family: 阿里妈妈刀隶体-ttf (网络字体下载后生效) - - font-family: 阿里妈妈刀隶体-otf - font-family: 阿里妈妈刀隶体-woff font-family: 阿里妈妈刀隶体-woff2 + > --> -- GitLab