Skip to content

Commit

Permalink
Font sprite and webfonts json were updated to match latest font avail…
Browse files Browse the repository at this point in the history
…ability. fixes #134
  • Loading branch information
rramo012 committed Nov 5, 2019
1 parent accf72d commit 90a6112
Show file tree
Hide file tree
Showing 4 changed files with 20,163 additions and 17,932 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ user guide for more information.
### 2.1.12 ###
* Bug fix: `mce_external_plugins` returning incorrect values. [#129](https://github.com/BoldGrid/boldgrid-theme-framework/issues/129)
* Bug fix: WP 5.3 - Color palette preview fails with js error. [#132](https://github.com/BoldGrid/boldgrid-theme-framework/issues/132)
* Update: Font sprite and webfonts json were updated to match latest font availability. [#134](https://github.com/BoldGrid/boldgrid-theme-framework/issues/134)


### 2.1.11 ###
* Bug fix: Ensure that the site header is correctly output when settings are updated in customizer. [#127](https://github.com/BoldGrid/boldgrid-theme-framework/issues/127)
Expand Down
7 changes: 4 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ gulp.task('fontFamilyCss', function () {
family,
position;

for (var key in webFonts.items) {
family = webFonts.items[key].family;
for (var key in webFonts.items) {
family = webFonts.items[key].family;

// This value needs to -40 after updating sprite.
position = -5 + (key * -37);
position = -5 + (key * -40);

css += '.select2-container--default .select2-selection__rendered[title="' + family + '"] {color: transparent; background-image: url(../../img/web-fonts.png); background-repeat: no-repeat; background-position: 8px ' + (position + 8) + 'px;}';
css += '[id^="select2-"][id$="-' + family + '"] { color: transparent; background-image: url(../../img/web-fonts.png); background-repeat: no-repeat; background-position:8px ' + position + 'px;}';
Expand All @@ -86,6 +86,7 @@ gulp.task('fontFamilyCss', function () {
gulp.task('googlefonts-image', function () {
var googleApiKey = argv.google_api_key;
if (!googleApiKey) {
console.log('Invalid format');
console.log('gulp googlefonts-image --google_api_key={Key Goes Here}');
return;
}
Expand Down
Binary file modified src/assets/img/web-fonts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 90a6112

Please sign in to comment.