Implement getAlignmentBaseline and getBaselineShift in ios. (#527)

* Implement correct transform parser

* Implement getAlignmentBaseline and getBaselineShift in ios.
Add comments to glyphcontext and align with android.
Implement correct isWordSeparator predicate.
Cleanup GlyphContext j2objc remnants.

* Fix getBaselineShift bugs and font data invalidation.
This commit is contained in:
Mikael Sand
2017-12-16 18:57:53 +02:00
committed by Dustin Savery
parent 4821a7cd3a
commit ec2a967592
9 changed files with 392 additions and 279 deletions
+11 -1
View File
@@ -13,6 +13,16 @@
GlyphContext *_glyphContext;
}
- (void)setFont:(NSDictionary*)font
{
if (font == _font) {
return;
}
[self invalidate];
_font = font;
}
- (void)renderLayerTo:(CGContextRef)context
{
[self clip:context];
@@ -62,7 +72,7 @@
- (void)pushGlyphContext
{
[[[self getTextRoot] getGlyphContext] pushContextWithRNSVGGroup:self font:self.font];
[[[self getTextRoot] getGlyphContext] pushContext:self font:self.font];
}
- (void)popGlyphContext