Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font Loading behaving strangely with multiple fonts #49

Open
heaversm opened this issue Oct 1, 2019 · 0 comments
Open

Font Loading behaving strangely with multiple fonts #49

heaversm opened this issue Oct 1, 2019 · 0 comments

Comments

@heaversm
Copy link

heaversm commented Oct 1, 2019

I don't believe font loading is happening properly.

I specify two fonts in my blotter script (ripple.js) as follows:

textOptions1 = {
      family: "'gtf_adieu_trialbold', serif",
      size: _width < 1000 ? 50 : _width < 1300 ? 75 : 90,
      fill: "#220032",
      paddingLeft: 20,
      paddingRight: 20,
    };
  
    textOptionsOutline1 = {
      family: "'gtf_adieu_trialbold-outline'",
      size: _width < 1000 ? 50 : _width < 1300 ? 75 : 90,
      fill: "#220032",
      paddingLeft: 20,
      paddingRight: 20,
    };

But when I attempt to use these fonts, only the solid, not outline fonts are visible:

Screen Shot 2019-09-30 at 6 04 23 PM

I can change a completely unrelated part of my site's stylesheet (main.css), and then only the outline font shows, not the solid font.

So for example this class (which is not a blotter element:

.f__outline { font-family: 'gtf_adieu_trialbold-outline' } would show the solids and not the outline,
but this: .f__outline { font-family: 'gtf_adieu_trialbold-outline !important' } would show the outline not the solids.

Screen Shot 2019-09-30 at 6 05 49 PM

But I can never get both fonts to show as they should (top and bottom lines solid, middle line outline.

Attaching my current script.
ripple.js.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant