-
Notifications
You must be signed in to change notification settings - Fork 91
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
Implement iOS Framework "SVGgh" for SVG rendering on iOS #69
Conversation
|
that's the iOS framework "SVGgh"! |
sorry, I closed on my Fork |
When it's compiled? |
No! On iOS, we have no jit compiler! iOS has an ahead-of-time compiler |
Can you run gradle install and then check the created |
the created vtm-ios-0.6.0-SNAPSHOT-natives.jar artifact is correct! But wait with merging! I will write a README.md to explain usage this vtm-ios-0.6.0-SNAPSHOT-natives.jar, and put this to folder vtm-ios. Or is it better to write it to regular README? but not today, family is waking up! ;-) |
Ok just wanted to double ckeck. 😄 We can put child readme guides in a root BTW is it time to remove the "experimental" reference for |
SVGRenderer renderer = new SVGRenderer(svg); | ||
CGRect viewRect = renderer.getViewRect(); | ||
|
||
float scaleFactor = CanvasAdapter.dpi / 240; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that in AndroidSvgBitmap I found the scaleFactor
calculation with 240dpi to produce small symbols, that's why I used the regular 160dpi as base.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have copy/paste from Desktop!
I will check the display with 160dpi and maybe change! On simulator 240dpi looks good.
@Longri do you have additional work on this? |
No, but I would do this on this week |
or today |
Ok! |
yes! for iPhone 4s the display is ok! But I will check this again when I have a Android devices with similar Display size |
implement iOS Framwork "SVGgh" for svg rendering on iOS