当前位置:网站首页>@Font face fonts only work on their own domain - @font-face fonts only work on their own domain
@Font face fonts only work on their own domain - @font-face fonts only work on their own domain
2022-06-25 14:48:00 【Bustling city 】
problem :
I am trying to create a type of font repository for use on my websites, so that I can call to any font in the repository in my css without any other set-up. I am trying to create a font repository for use on my website , So that I can be in my css Call any font in the repository , Without any other settings .To do this I created a subdomain on which I placed folders for each font in the repository that contained the various file types for each font. So , I created a subdomain , A folder is placed on this sub domain for each font in the repository , It contains various file types for each font .I also placed a css file called font-face.css on the root of the subdomain and filled it with @font-face
declarations for each of the fonts, the fonts are linked with an absolute link so that they can be used from anywhere. I also placed a file named... In the root directory of the subdomain font-face.css Of css file , And for each @font-face
Filled @font-face
Statement , Fonts are linked by absolute links , So that they can be used anywhere .
My issue is that it seems that I can only use the fonts on that subdomain where they are located, on my other sites the font does not show. My question is , It seems that I can only use the fonts on their child fields , On my other sites , The font does not show .Using firebug I determined that the font-face.css file was successfully being linked to and loaded. Use firebug I'm sure font-face.css The file was successfully linked and loaded .So why does the font not correctly load? So why aren't the fonts loaded correctly ?Is there protection on the font files or something? Are font files or other things protected ?I am using all fonts that I should be allowed to do this with, so I don't see why this is occurring. I am using all the fonts I should be allowed to use , So I don't understand why this happens .Maybe it is an apache issue, but I can download the font just fine when I link to it. Maybe this is a apache problem , But when I link to it , I can download fonts very well .
Oh, and just to clarify, I am not violating any copyrights by setting this up, all the fonts I am using are licensed to allow this sort of thing. Oh , To clarify , I set this without infringing any copyright , All the fonts I use are licensed to allow this kind of thing .I would however like to set up a way that only I can have access to this repository of fonts but that's another project. However , I want to set up a way that only I can access this font library , But this is another project .
Solution :
Reference resources : https://stackoom.com/en/question/C8WJ边栏推荐
- JS recursion and while
- Application of TSDB in civil aircraft industry
- 两种方法实现pycharm中代码回滚到指定版本(附带截图展示)
- 如何裁剪动图大小?试试这个在线照片裁剪工具
- PubSub JS library realizes "cross component" data transfer
- Which is better and safer, GF easy gold rush or flush
- Where is it safe to open an account for buying funds? Ask for guidance
- 买卖股票的最佳时机
- 2022年广东高考分数线出炉,一个几家欢喜几家愁
- 'NVIDIA SMI' is not an internal or external command, nor is it a runnable program or batch file
猜你喜欢
About the problem of kicad stuck in win10 version, version 6 x
How to make GIF animation online? Try this GIF online production tool
当了六年程序员第一次搞懂微服务架构的数据一致性,真不容易
Share the code technology points and software usage of socket multi client communication
重磅!国产 IDE 发布,由阿里研发,完全开源!(高性能+高定制性)
合宙Air32F103CBT6开发板上手报告
Complete and detailed compilation of experimental reports
Getting started with shell variables
中国电池技术取得重大突破,日韩美都落后了,中国巩固了领先优势
第一次读 “Clean” 系列,并没有觉得这是一本多好的书
随机推荐
Remove interval (greedy)
ffmpeg protocol concat 进行ts流合并视频的时间戳计算及其音画同步方式一点浅析
如何裁剪动图大小?试试这个在线照片裁剪工具
Shell string variable
Where is it safe to open an account for buying funds? Ask for guidance
Reading the "clean" series for the first time, I didn't think it was a good book
Basic usage of markdown (plain text and grammar)
HMS Core机器学习服务实现同声传译,支持中英文互译和多种音色语音播报
Complete and detailed compilation of experimental reports
Kubernetes 理解kubectl/调试
Getting started with shell variables
Supplementary inheritance and strict mode
Two methods to rollback the code in pycharm to the specified version (with screenshot)
Deploy eve-ng with KVM virtualization
合宙Air32F103CBT6开发板上手报告
使用sphinx根据py源文件自动生成API文档
15 -- 最接近原点的 K 个点
JS functions
How to combine multiple motion graphs into a GIF? Generate GIF animation pictures in three steps
还没弄明白微服务数据架构事务管理+ACID+一致性+CAP+BASE理论吗,看完彻底解决疑惑