mirror of
https://github.com/2234839/web-font.git
synced 2025-04-06 05:25:44 +08:00
🔥 适配路径映射的情况
This commit is contained in:
parent
4834e91333
commit
72b53880a5
@ -13,7 +13,7 @@
|
|||||||
@font-face {
|
@font-face {
|
||||||
font-family: "test";
|
font-family: "test";
|
||||||
src:
|
src:
|
||||||
url("/generate_fonts_dynamically.ttf?temp=true&font=优设标题黑&text=优设标题黑(直接改这里和前面的字体名看效果)") format("truetype");
|
url("${location.pathname}generate_fonts_dynamically.ttf?temp=true&font=优设标题黑&text=优设标题黑(直接改这里和前面的字体名看效果)") format("truetype");
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user