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.fontStyle !== b.fontStyle ||
|
||||||
a.fontWeight !== b.fontWeight ||
|
a.fontWeight !== b.fontWeight ||
|
||||||
a.kerning !== b.kerning ||
|
a.kerning !== b.kerning ||
|
||||||
|
a.wordSpacing !== b.wordSpacing ||
|
||||||
a.letterSpacing !== b.letterSpacing;
|
a.letterSpacing !== b.letterSpacing;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,7 @@ export function extractFont(props) {
|
|||||||
let ownedFont = {
|
let ownedFont = {
|
||||||
fontFamily: extractSingleFontFamily(props.fontFamily),
|
fontFamily: extractSingleFontFamily(props.fontFamily),
|
||||||
letterSpacing: props.letterSpacing,
|
letterSpacing: props.letterSpacing,
|
||||||
|
wordSpacing: props.wordSpacing,
|
||||||
fontWeight: props.fontWeight,
|
fontWeight: props.fontWeight,
|
||||||
fontStyle: props.fontStyle,
|
fontStyle: props.fontStyle,
|
||||||
fontSize: props.fontSize ? '' + props.fontSize : null,
|
fontSize: props.fontSize ? '' + props.fontSize : null,
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ const fontProps = {
|
|||||||
fontWeight: numberProp,
|
fontWeight: numberProp,
|
||||||
fontStyle: PropTypes.string,
|
fontStyle: PropTypes.string,
|
||||||
letterSpacing: PropTypes.string,
|
letterSpacing: PropTypes.string,
|
||||||
|
wordSpacing: PropTypes.string,
|
||||||
kerning: PropTypes.string,
|
kerning: PropTypes.string,
|
||||||
font: PropTypes.object
|
font: PropTypes.object
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user