Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #251 from sirbrillig/add-subset-to-readme

Update README to include Google subset information
  • Loading branch information...
commit 736802dfda2bd0a09d1ab80b8b4413ef10b3a342 2 parents b8a0244 + dde7eb4
@bramstein bramstein authored
Showing with 10 additions and 0 deletions.
  1. +10 −0 README.md
View
10 README.md
@@ -295,6 +295,16 @@ WebFontConfig = {
};
```
+If you need to specify character subsets other than the default (e.g.: greek script in addition to latin), you must append the subset string to the requested family string after a colon. The subset string should follow the [Google documentation](https://developers.google.com/fonts/docs/getting_started#Subsets) (subset names separated by commas):
+
+```javascript
+WebFontConfig = {
+ google: {
+ families: ['Open Sans Condensed:300,700:latin,greek']
+ }
+};
+```
+
You can also supply the `text` parameter to perform character subsetting:
```javascript
Please sign in to comment.
Something went wrong with that request. Please try again.