mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-06 00:12:21 +00:00
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:
committed by
Dustin Savery
parent
4821a7cd3a
commit
ec2a967592
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user