> On Mar 19, 2019, at 12:19 PM, Tom Livingston <tom...@gmail.com> wrote:
> 
> 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?
> 
> 


Hi Tom
No specific font issue. Just noticed that at times the fonts declared on 
elements 
would not load as consistently as ones with a class of the font added.
Especially on mobile devices. I have no idea why this would happen.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



______________________________________________________________________
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