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

Add support for local() and data-URIs in font previews. #235

Merged
merged 16 commits into from
Jan 31, 2018
Merged

Conversation

jgerigmeyer
Copy link
Member

@jgerigmeyer jgerigmeyer commented Jan 15, 2018

Fixes #173.
Fixes #197.
Fixes #254.

@mirisuzanne Okay, I think the Herman side of this is done. Might need a few adjustments once you've finished the accoutrement-type updates.

One question I wasn't sure about... I removed the $font-formats global setting. I added a new formats key to all the local/embedded-font Sass maps, but I wasn't sure if it was also required on the webfonts.

/// The font-formats that we want to import
///
/// @group config-fonts
$font-formats: 'woff' 'ttf';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since I removed this, not sure if we need to add it back in to the webfont Sass maps?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not using any imported fonts, so this is fine.

<div data-specimen="aa">Aa</div>
<div data-specimen="lorem">{{ lorem('alpha') }}</div>
</div>
{% macro specimen_variant(variant, data) %}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JS was already doing all this logic, so I didn't see a reason to duplicate it in the templates any longer.

* master:
  fix internal links
  Add links to jsonfile config where relevant
  upgrade deps
  Hotfix: Warn if custom annotation used in prose block with `key` arg.
* master:
  changelog
  compile
  Fix string-encoding and quote-escaping
* master:
  Release v1.1.0
@jgerigmeyer
Copy link
Member Author

@mirisuzanne I think this is all finished, ready for final review/merge.

In the process of testing it I discovered a related bug in SassDoc that breaks documenting data-uris (#254), but I think we can merge/release this in any case.

@jgerigmeyer jgerigmeyer merged commit 1bfa2ef into master Jan 31, 2018
@jgerigmeyer jgerigmeyer deleted the data-fonts branch January 31, 2018 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants