SVGQuartzRenderer
=================
About SVGQuartzRenderer
-----------------------
SVGQuartzRenderer is a basic SVG renderer written in Obj-C that uses CoreGraphics to render SVG files. The goal of SVGQuartzRenderer is to be a simple drop-in SVG renderer that is compatible with the iPhone platform and conforms to a subset of SVG 1.2 Tiny (Everything except Animation).
Current state of SVGQuartzRenderer
----------------------------------
SVGQuartzRenderer is currently quite far from conforming to any SVG Profile at all. It can, however, render some of the more common elements found in an SVG file. Here is a list of its current capabilities:
* Cubic curves
* Rects
* Embedded images
* Text (Note: limited support, only PostScript Core fonts)
* Fill and stroke
* Gradient fills
* Pattern fills (Note: transformation of pattern fills is not yet implemented)
Notable features that are NOT yet supported:
* Arcs
* Quadratic curves
* Shapes other than rect
* Embedded glyphs
* Filters
* FlowRegions for text. This means that any text that has a wrapping boundary (so to speak) won't render.
Known issues
------------
Other than the above listed missing features, there are some issues with how SVGQuartzRenderer handles transformation stacks. In some cases, elements in the SVG will be located in strange places where they are not supposed to be. The easiest solution for the moment is to try and modify the file in InkScape and get it to change the transformation values until SVGQuartzRenderer can handle it.
Text with nested TSpan elements won't work. That will happen if the style of one word is changed. The workaround is to use separate text nodes for each style change.
If you run in to any other bugs, please create an issue here on GitHub.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
SVGQuartzRenderer is a basic SVG renderer written in Obj-C that uses CoreGraphics to render SVG files. The goal of SVGQuartzRenderer is to be a simple drop-in SVG renderer that is compatible with the iPhone platform and conforms to a subset of SVG 1.2 Tiny (Everything except Animation).
资源推荐
资源详情
资源评论
收起资源包目录
SVGQuartzRenderer.rar (52个子文件)
SVGQuartzRenderer
.gitignore 427B
main.m 262B
SVGRenderAppDelegate.h 1KB
SVGRender_Prefix.pch 149B
Resources
text.svg 6KB
drawing.svg 268KB
skull.svg 971KB
tiger.svg 104KB
NSData+Base64.h 255B
LICENCE 1KB
.gitmodules 102B
SVGQuartzRenderer.h 3KB
README.md 2KB
SVGRender.xcodeproj
project.xcworkspace
contents.xcworkspacedata 154B
xcuserdata
aboxer.xcuserdatad
UserInterfaceState.xcuserstate 28KB
project.pbxproj 13KB
xcuserdata
aboxer.xcuserdatad
xcschemes
xcschememanagement.plist 481B
SVGRender.xcscheme 3KB
lib
MROGeometry
SVGQuartzRenderer.m 39KB
SVGRenderView.h 1KB
SVGRenderView.m 3KB
SVGRendererTouch
map0.svg 269KB
main.m 370B
SVGRenderViewTouch.h 2KB
SVGRenderViewTouch.m 12KB
SVGRendererTouch_Prefix.pch 201B
Classes
GraphicFrag.h 1KB
ITransProvider.h 276B
SVGStyle.m 31KB
GraphicFrag.m 3KB
QuadTreeNode.m 6KB
PathFrag.h 449B
SVGRendererTouchAppDelegate.h 528B
SVGStyle.h 3KB
QuadTreeNode.h 2KB
IDrawable.h 259B
Sprite.m 2KB
TextFrag.h 437B
PathFrag.m 848B
SVGRendererTouchAppDelegate.m 4KB
Sprite.h 2KB
TextFrag.m 738B
maps.plist 455B
SVGRendererTouch.xcodeproj
project.pbxproj 28KB
map1.svg 262KB
SVGRendererTouch-Info.plist 909B
MainWindow.xib 8KB
NSData+Base64.m 3KB
SVGRenderAppDelegate.m 1KB
English.lproj
InfoPlist.strings 45B
MainMenu.xib 81KB
SVGRender-Info.plist 1002B
共 52 条
- 1
资源评论
- ZivDo2012-10-17MAC OS版本的,有没有iOS的?
- 鸡冠花2014-05-08一般,几乎无法使用。只能表示谢谢作者
- hzl2562013-01-10对我无用,谢谢了。
- heanhong2014-01-02刚准备搞这块内容,多谢分享
- gengjf0252013-07-31最近要打开svg的图片,希望有点用
mottoxzq
- 粉丝: 0
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功