On Tue, Mar 19, 2019 at 1:07 PM Karl DeSaulniers <k...@designdrumm.com>
wrote:

> Hello list,
> In my experience, I have had better success loading fonts via adding a
> class of the font vs. a font-family declaration in the css for that element.
>
> Where...
>
> <p id="info">Some Text</p>
> #info { width:100%;font-family: NewsGothicMT,"News Gothic MT", Arial,
> Geneva, sans-serif; font-style: normal;font-weight: normal;}
>
> ... doesn't load as well/consistently as...
>
> .NewsGothicMT {
>  font-family: NewsGothicMT,"News Gothic MT", Arial, Geneva, sans-serif;
>  font-style: normal;
>  font-weight: normal;
> }
> #info { width:100%; }
> <p id="info" class="NewsGothicMT">Some Text</p>
>
>

I have not experienced this. I usually use sass as follows:

@mixin font-book{
  font-family: "Gotham A", "Gotham B", Helvetica, Arial, Sans-serif;
  font-style: normal;
  font-weight: 400;
}

h2{
  @include font-book;
}

This would basically compile to your first example. Does this issue come up
with a specific font source/subscription?


>
>
> ______________________________________________________________________
> css-discuss [css-d@css-discuss.org]
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/



-- 

Tom Livingston | Senior Front End Developer | Media Logic |
ph: 518.456.3015x231 | fx: 518.456.4279 | medialogic.com


#663399
______________________________________________________________________
css-discuss [css-d@css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to