Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6.0.0 #497

Merged
merged 208 commits into from
Nov 8, 2017
Merged

6.0.0 #497

merged 208 commits into from
Nov 8, 2017

Conversation

magicismight
Copy link
Collaborator

@magicismight magicismight commented Nov 7, 2017

@msand I had removed Quartz and PerformanceBezier from this repo.
Will run a postinstall script to download them from Github.
And finally this will be released as 6.0.0.

ssssssssssss and others added 30 commits June 5, 2017 16:54
…ale, skewX, skewY and matrix. Keep in mind that the current implementation doesn't support 3-arguments rotate(a, x, y) transform yet.
Add conditional translation.preConcat(mMatrix) statement
Correct glyph point and delta x / y calculation and context handling.
Remove incorrect whitespace from getLinePath method call.
Correct the y coordinate of the text's origin when rendering glyphs into paths using getTextPath.
Remove strange postTranslate transform.

https://www.w3.org/TR/SVG11/text.html#TextOnAPath
Clear dx if x or dy if y is set in a GlyphContext.
Make glyph preTranslate by dy instead of postTranslate.
Scale glyph delta correctly.
Set paint flags for anti-alias, kerning for text, subpixel positioning of text.
Add half of width of glyph to distance calculation for mBezierTransformer.getTransformAtDistance and preTranslate the glyph corresponding amount backwards (gives correct angles on glyphs when rendering text on a path)
Add magical constant ratios of 1.2 into getBezierTransformer and getGlyphPointFromContext calls (should probably be based on some dpi ratio calculation)
…nt of if it is wrapped by a G element or not
Remove magic constants.
Implement canvas.drawTextOnPath for reference comparison.
Refactor PathShadowNode and BezierTransformer, expose getPath and getmStartOffset, implement inefficient but accurate enough getTotalDistance for debugging/diagnostics purposes.
‘kerning’ indicates whether the user agent should adjust inter-glyph spacing based on kerning tables that are included in the relevant font (i.e., enable auto-kerning) or instead disable auto-kerning and instead set inter-character spacing to a specific length (typically, zero).

https://www.w3.org/TR/SVG/text.html#SpacingProperties
https://www.w3.org/TR/SVG/text.html#KerningProperty
…Shift, startOffset.

Add method and spacing attributes to textPath.
Correct startOffset calculation.
Implement method="stretch".
Implement support for fontSize value without unit identifier, processed as height value in the current user coordinate system.
https://www.w3.org/TR/SVG11/text.html#FontSizeProperty
# Conflicts:
#	lib/extract/extractViewBox.js
#	package.json
This reverts commit 26bbc1c.
@magicismight
Copy link
Collaborator Author

@msand You can try to install this in 6.0.0-rc10

@magicismight magicismight merged commit a958668 into master Nov 8, 2017
@msand msand deleted the 6.0.0 branch February 3, 2018 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants