magicismight
f32800bfbd
Refactor getParentTextRoot and getTextRoot method
2017-08-08 15:27:11 +08:00
magicismight
b62c407b41
Hoist node.saveDefinition
...
Run node.saveDefinition before draw
2017-08-08 13:08:18 +08:00
magicismight
2ddb0bddc6
Fix strokeDasharray.concat(strokeDasharray)
...
`strokeDasharray.concat(strokeDasharray)` has created a new array
should assign to strokeDasharray.
Remove devDependencies
2017-08-08 11:25:38 +08:00
Mikael Sand
058183c0de
Start https://www.w3.org/TR/SVG2/text.html#TextLayoutAlgorithm
...
To implement support for bidirectional and vertical text etc.
2017-08-08 03:08:30 +03:00
Mikael Sand
7f91c7cc2b
DOCFIX
...
(cherry picked from commit 7a76285)
2017-08-07 19:32:11 +03:00
Mikael Sand
a1b57d3f4f
Implement default and required css 3 fonts features, fontFeatureSettings, sub-/super- script baseline-shift.
...
Activate OpenType localized forms and features required for proper display of composed characters and marks.
2017-08-07 18:26:45 +03:00
Mikael Sand
f603e7191c
Use setFontFeatureSettings for disabling all discretionary ligatures while keeping required ligatures (e.g. in Arabic)
2017-08-05 01:18:16 +03:00
Mikael Sand
a97122a994
Initial support for OpenType.js font data/tables/metrics.
2017-08-04 21:17:02 +03:00
Mikael Sand
1ffd195bc2
Remove duplicate createJSModules.
2017-08-04 17:43:34 +03:00
Mikael Sand
cb17db0e88
Merge remote-tracking branch 'upstream/master' into 5.4.0-conformance
...
# Conflicts:
# package.json
2017-08-04 17:25:54 +03:00
Mikael Sand
eea2b4a0a8
Merge remote-tracking branch 'up/5.3.3' into 5.3.0-conformance
...
# Conflicts:
# elements/TextPath.js
# lib/extract/extractViewBox.js
2017-08-04 17:22:54 +03:00
Mikael Sand
81a832a115
Add missing FontVariantLigatures.java enum file.
2017-08-04 17:10:07 +03:00
Mikael Sand
fe7e8b2b65
Implement baselineShift and verticalAlign (preferred).
...
Transverse Box Alignment, specifies how an inline-level box is aligned within the line, and by how much the box is shifted up from its alignment point.
https://drafts.csswg.org/css-inline/#propdef-vertical-align
https://www.w3.org/TR/css-inline-3/#propdef-baseline-shift
https://www.w3.org/TR/css-inline-3/#transverse-alignment
2017-08-04 16:29:06 +03:00
Mikael Sand
2939584d1b
Implement font-variant-ligatures.
...
https://developer.mozilla.org/en/docs/Web/CSS/font-variant-ligatures
https://www.w3.org/TR/css-fonts-3/#font-variant-ligatures-prop
2017-08-04 14:10:02 +03:00
Mikael Sand
bc54350786
Disable optional ligatures when letterSpacing != 0
...
When the effective letter-spacing between two characters is not zero
(due to either justification or non-zero computed ‘letter-spacing’),
user agents should not apply optional ligatures.
https://www.w3.org/TR/css-text-3/#letter-spacing-property
2017-08-04 05:01:30 +03:00
Mikael Sand
786b5f2375
Implement strokeDasharray correctly.
...
Support units and percentages with whitespace separated and/or (possibly white-space surrounded) comma separated length lists.
2017-08-04 00:26:00 +03:00
Mikael Sand
b38ae08e9c
Add com.android.support:appcompat-v7:25.3.1 to dependencies.
...
Set SDK version to latest stable with available sources.
2017-08-03 21:46:01 +03:00
Mikael Sand
553c17794e
Implement support for multi-letter ligatures.
...
Typographic ligature: In writing and typography, a ligature occurs where two or more graphemes or letters are joined as a single glyph.
Optimize kerning and advance widths calculation using Paint.getTextWidths(String text, float[] widths);
Make strokeWidth numberProp instead of string.
Fix caching of AlignmentBaseline.
Rename distance to pathLength.
Upgrade gradle build tools.
2017-08-03 21:35:30 +03:00
Horcrux
ba4c649ebc
Merge pull request #423 from react-native-community/5.4.0
...
Just remove @Override symbol to support both 0.46.0 and 0.47.0
2017-08-03 15:32:02 +08:00
magicismight
294cda65af
Just remove @Override symbol to support both 0.46.0 and 0.47.0
2017-08-03 15:31:11 +08:00
Horcrux
1bc183a6f2
Merge pull request #422 from react-native-community/5.4.0
...
5.4.0
2017-08-03 15:09:48 +08:00
magicismight
07e27ba7b3
Merge conflicts
2017-08-03 15:06:33 +08:00
magicismight
3ebce7dae9
Bump version
2017-08-03 15:04:23 +08:00
magicismight
2759db4749
Revert 0.47.0
2017-08-03 15:03:29 +08:00
magicismight
61578b6c5a
Merge commit '378262dff3e3fea46fb0f99fa23e71beec1c74ca' into 5.3.3
2017-08-03 14:59:39 +08:00
magicismight
60e22ac5a2
Bump version
2017-08-03 14:55:30 +08:00
magicismight
b45805b4cf
Add support for 0.47.0
2017-08-03 14:54:13 +08:00
Horcrux
378262dff3
Merge pull request #411 from developer239/fix-create-react-native-component-class
...
Fix createReactNativeComponentClass import statements
2017-08-03 14:53:03 +08:00
Horcrux
fcbf91326c
Merge pull request #421 from react-native-community/5.4.0
...
support 0.47.0
2017-08-03 14:50:05 +08:00
magicismight
04c571d90d
Merge branch 'master' of https://github.com/react-native-community/react-native-svg into 5.3.2
2017-08-03 14:48:39 +08:00
magicismight
54545aee6a
Bump version
2017-08-03 14:48:18 +08:00
Horcrux
96c0b8cd01
Merge pull request #420 from react-native-community/5.3.2
...
5.3.2
2017-08-03 14:46:46 +08:00
Horcrux
291c51946f
Merge pull request #419 from react-native-community/master
...
Merge 5.3.2
2017-08-03 14:46:13 +08:00
Mikael Sand
8892166ea3
Fix non-/closed subpath start and end of rendering logic.
2017-07-30 23:34:14 +03:00
Mikael Sand
99875d2ad0
Fix last warnings.
2017-07-29 17:50:13 +03:00
Mikael Sand
fbeb7262fd
Fix AlignmentBaseline
2017-07-29 16:48:31 +03:00
Mikael Sand
3005b59216
Add midLine prop/attr to TextPath.js
2017-07-29 15:30:05 +03:00
Mikael Sand
ab6bbd25e9
Implement extending the path beyond its end points with a straight line that is parallel to the tangent at the path at its end point.
...
Fix lengthAdjust=spacing.
2017-07-29 15:24:23 +03:00
Mikael Sand
3825bbd5c8
Fix startOfRendering calculation. Fix cursor position calculation. Refactor extractStroke strokeWidth handling.
2017-07-29 14:42:37 +03:00
Mikael Sand
36595c91e2
Correct start- and end-point calculation.
...
Implement lengthAdjust and textLength attribute. Fix start and end rendering cutoff for text-anchor on a path. Refactor extractStroke. Improve docs.
2017-07-27 00:06:46 +03:00
Mikael Sand
fab3afb03a
Implement textPath side attribute. Refactor extractStroke.
2017-07-26 21:05:34 +03:00
Mikael Sand
d08103168a
Suggest adding a compatibility mid-line rendering attribute to textPath.
2017-07-26 03:51:57 +03:00
Mikael Sand
a8fdf64828
Ensure strokeWidth is string
2017-07-25 22:37:13 +03:00
Mikael Sand
54efe3ad1e
Fix strokeDasharray handling of odd number of length values and the 'none' value.
2017-07-25 21:58:07 +03:00
Mikael Sand
48cfe71aca
Implement GlyphPathBag for caching Paths per char, after a applyTextPropertiesToPaint(paint, font)
...
Path glyph = bag.getOrCreateAndCache(currentChar, current);
2017-07-25 19:46:02 +03:00
magicismight
90fb82caf0
Revert "fixed issue #397 "
...
This reverts commit 26bbc1c318 .
2017-07-25 19:46:26 +08:00
Mikael Sand
9e0de800bd
Refactor, optimize.
2017-07-25 11:06:01 +03:00
Mikael Sand
d2eb3a6e16
Fix todo comment
2017-07-25 10:19:11 +03:00
Mikael Sand
51f28ce525
Add missing enum file
2017-07-25 10:16:58 +03:00
Mikael Sand
2d699b4e56
Add alignment-baseline aliases to support legacy content.
2017-07-25 10:00:32 +03:00