mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 14:05:09 +00:00
Implement wordSpacing in extractFont
This commit is contained in:
@@ -25,6 +25,7 @@ function fontDiffer(a, b) {
|
||||
a.fontStyle !== b.fontStyle ||
|
||||
a.fontWeight !== b.fontWeight ||
|
||||
a.kerning !== b.kerning ||
|
||||
a.wordSpacing !== b.wordSpacing ||
|
||||
a.letterSpacing !== b.letterSpacing;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,6 +60,7 @@ export function extractFont(props) {
|
||||
let ownedFont = {
|
||||
fontFamily: extractSingleFontFamily(props.fontFamily),
|
||||
letterSpacing: props.letterSpacing,
|
||||
wordSpacing: props.wordSpacing,
|
||||
fontWeight: props.fontWeight,
|
||||
fontStyle: props.fontStyle,
|
||||
fontSize: props.fontSize ? '' + props.fontSize : null,
|
||||
|
||||
@@ -54,6 +54,7 @@ const fontProps = {
|
||||
fontWeight: numberProp,
|
||||
fontStyle: PropTypes.string,
|
||||
letterSpacing: PropTypes.string,
|
||||
wordSpacing: PropTypes.string,
|
||||
kerning: PropTypes.string,
|
||||
font: PropTypes.object
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user