Skip to content

Commit

Permalink
Bug fix ampproject#1095 - fix font-size for comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
camelburrito committed Dec 9, 2015
1 parent 1acf8b0 commit 5447101
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/amp-font/0.1/fontloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ export class FontLoader {
const containerElement = this.container_ =
this.document_.createElement('div');
style.setStyles(containerElement, {
fontSize: this.fontConfig_.size,
// Use larger font-size to better detect font load.
fontSize: '40px',
fontVariant: this.fontConfig_.variant,
left: '-999px',
lineHeight: 'normal',
Expand Down

0 comments on commit 5447101

Please sign in to comment.