refactor text render

Support G inherit props.
Refactor text render. Text glyphs will perfectly draw along the path
This commit is contained in:
Horcrux
2016-07-22 23:49:15 +08:00
parent 63f793c54e
commit 7e13b801e1
41 changed files with 467 additions and 477 deletions

View File

@@ -1,4 +1,4 @@
import SerializablePath from 'react-native/Libraries/ART/ARTSerializablePath';
import SerializablePath from '../SerializablePath';
import _ from 'lodash';
const newLine = /\n/g;
const defaultFontFamily = '"Helvetica Neue", "Helvetica", Arial';
@@ -82,6 +82,7 @@ const anchord = {
};
export default function(props) {
return {
alignment: anchord[props.textAnchor] || 0,
frame: extractFontAndLines(