Initial support for OpenType.js font data/tables/metrics.

This commit is contained in:
Mikael Sand
2017-08-04 21:17:02 +03:00
parent 1ffd195bc2
commit a97122a994
5 changed files with 14 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ function parseFontString(font) {
export function extractFont(props) {
const {
fontData,
fontStyle,
fontVariant,
fontWeight,
@@ -66,6 +67,7 @@ export function extractFont(props) {
fontSize = fontSize ? '' + fontSize : null;
const ownedFont = _.pickBy({
fontData,
fontStyle,
fontVariant,
fontWeight,