Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
构造基于Coretext的排版引擎
Search
cngump
May 06, 2013
Programming
470
1
Share
构造基于Coretext的排版引擎
构造基于Coretext的排版引擎
cngump
May 06, 2013
More Decks by cngump
See All by cngump
iOS开发中的MVC
cngump
2
1.8k
IM DIY
cngump
1
260
Mac OS APP 的沙盒和相关审核技术
cngump
0
580
基于Xamarin 2.0的跨平台移动开发
cngump
0
140
Other Decks in Programming
See All in Programming
forteeの改修から振り返るPHPerKaigi 2026
muno92
PRO
3
270
Xdebug と IDE による デバッグ実行の仕組みを見る / Exploring-How-Debugging-Works-with-Xdebug-and-an-IDE
shin1x1
0
360
Mastering Event Sourcing: Your Parents Holidayed in Yugoslavia
super_marek
0
150
アクセシビリティ試験の"その後"を仕組み化する
yuuumiravy
0
110
10年分の技術的負債、完済へ ― Claude Code主導のAI駆動開発でスポーツブルを丸ごとリプレイスした話
takuya_houshima
0
2.4k
SkillがSkillを生む:QA観点出しを自動化した
sontixyou
6
3.3k
Getting more out of Maven
mlvandijk
0
100
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
550
飯MCP
yusukebe
0
500
メッセージングを利用して時間的結合を分離しよう #phperkaigi
kajitack
3
580
安いハードウェアでVulkan
fadis
1
960
3分でわかるatama plusのQA/about atama plus QA
atamaplus
0
140
Featured
See All Featured
Abbi's Birthday
coloredviolet
2
6.8k
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
320
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
1
350
Site-Speed That Sticks
csswizardry
13
1.2k
Designing Experiences People Love
moore
143
24k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
330
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
180
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
190
Effective software design: The role of men in debugging patriarchy in IT @ Voxxed Days AMS
baasie
0
290
Have SEOs Ruined the Internet? - User Awareness of SEO in 2025
akashhashmi
0
310
The agentic SEO stack - context over prompts
schlessera
0
740
Transcript
构造基于Coretext的排版引擎
Coretext是什么? Core Text framework 是iOS 及 Mac OS X下底层的
文字处理及字体渲染的API集合,简洁、高效。 CTLine CTRun CTFont Core Text 类 CTFramese=er 给定文本及页面参数,在页 的层级进行自动化排版* CTTypese=er 给定文本,在行的层级执行 断行等排版工作* CTFrame 页对象* CTLine 行对象 CTRun 字形集合对象 CTFont 字体对象
从html到矢量图形集合的映射 Css2.0全面兼容、3.0部分兼容 渲染效率(web kit)、版式处理效率(javascript)
断行,行首、末标点规则
图片甩版
自定义控件、事件
NSRange <-‐> Glyph HTML文本 NSA=ributedString
View CTLine(s) 解析 (自定 义标签) 生成(内 存及耗时 优化) 绘图(处 理重绘) 字 形
引擎模块 编辑器(web) 长文本索引生成器(命令行程序) 类库(.a, framework) <
>
感谢