简体   繁体   English

CSS Import Font-face差异

[英]CSS Import Font-face difference

The main text ("Elegance is sublime.") for the site doesn't have quite the right font for some reason. 网站的主文本(“优雅是崇高的。”)出于某种原因没有很正确的字体。 I am looking at my design and live version and they are different. 我正在查看我的设计和实时版本,它们是不同的。

The head-scratching issue for me is, unless the font is distorted why does it look different. 对我来说,头疼的问题是,除非字体变形,为什么它看起来会有所不同。 Sizing aside the font is clearly different. 除字体大小外,字体明显不同。 Suggestions? 有什么建议吗?

https://github.com/marcoantonio123456/Studio https://github.com/marcoantonio123456/Studio

Live version 现场版

How it should be 应该如何

        @font-face {
          font-family: 'Stem-Regular';
          src: url('components/typefaces/Stem-Regular.ttf') format('ttf'),
        }

        .headline-top { position: relative;
            font-family: 'Stem-Regular', sans-serif;
            font-size: 7.8em;
            letter-spacing: 0.8px;

            left: 90px;
            top: 350px; 
            z-index:1;

The head-scratching issue for me is, unless the font is distorted why does it look different. 对我来说,头疼的问题是,除非字体变形,为什么它看起来会有所不同。 Sizing aside the font is clearly different. 除字体大小外,字体明显不同。 Suggestions? 有什么建议吗?

Summary: 摘要:

The font you have is not Stem Regular. 您使用的字体不是Stem Regular。 Despite the file name claiming to be so. 尽管文件名声称是这样。

Details: 细节:

The font in your (correct) screenshot is not the same font as on your website . (正确的)屏幕截图中的字体与网站字体不同。 Your website correctly displays the 'Stem-Regular' font as loaded from 'components/typefaces/Stem-Regular.ttf' . 您的网站正确显示了从'components/typefaces/Stem-Regular.ttf'加载的'Stem-Regular'字体。 Whether this is actually the font with this name, is doubtful. 这是否实际上是具有该名称的字体,值得怀疑。

I have copied your font and used it on a word document and the font displays as your website does. 我已经复制了您的字体并在Word文档中使用了该字体,并且该字体与您的网站一样显示。 There is nothing wrong with you code or the loaded font file. 您的代码或加载的字体文件没有任何问题。

The font you have - according to several online font depositories - is NOT the same as Stem Regular, or Stem Regular W03. 你的字体-根据几个在线的字体托管-是一样的茎经常或定期干W03。

You can view Stem Regular W03 here: Fonts.com , Online Web Fonts note the a character is different to your website. 您可以在以下位置查看Stem Regular W03: Fonts.com在线Web字体请注意, a字符与您的网站不同。

Solution: 解:

Find the correct Stem Regular from another depository or chase up whoever you got this font from. 从另一个存储库中找到正确的Stem Regular,或者追捕从中获得此字体的人。 We can not help you as this is not a code issue. 我们不能为您提供帮助,因为这不是代码问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM