From 44c7d105b0106502ed588a239b5d60cd481432a2 Mon Sep 17 00:00:00 2001
From: zhenyuWang <13641039885@163.com>
Date: Mon, 4 Sep 2023 19:29:56 +0800
Subject: [PATCH] feat(css): font-face support local dir
---
pages/CSS/text/font-family.uvue | 67 +++++++++++++--------------------
1 file changed, 27 insertions(+), 40 deletions(-)
diff --git a/pages/CSS/text/font-family.uvue b/pages/CSS/text/font-family.uvue
index c32a5737..4b76eca2 100644
--- a/pages/CSS/text/font-family.uvue
+++ b/pages/CSS/text/font-family.uvue
@@ -1,46 +1,33 @@
- font-family: monospace
- font-family: cursive
- font-family: 阿里妈妈刀隶体-ttf(网络字体下载后生效)
-
+ font-family: monospace
+ font-family: cursive
+ font-family: 阿里妈妈刀隶体-ttf(网络字体下载后生效)
+ font-family: 阿里妈妈刀隶体-otf
+
+ .common {
+ font-size: 20px;
+ line-height: 40px;
+ }
+ @font-face {
+ font-family: AlimamaDaoLiTiTTF;
+ src: url('https://native-res.dcloud.net.cn/uni-app-x/static/font/AlimamaDaoLiTi.ttf');
+ }
+ @font-face {
+ font-family: AlimamaDaoLiTiOTF;
+ src: url('/static/font/AlimamaDaoLiTi.otf');
+ }
+/* @font-face {
+ font-family: AlimamaDaoLiTiWOFF;
+ src: url('/static/font/AlimamaDaoLiTi.woff');
+ }
+ @font-face {
+ font-family: AlimamaDaoLiTiWOFF2;
+ src: url('/static/font/AlimamaDaoLiTi.woff2');
+ } */
+
--
GitLab