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
1
460
构造基于Coretext的排版引擎
构造基于Coretext的排版引擎
cngump
May 06, 2013
Tweet
Share
More Decks by cngump
See All by cngump
iOS开发中的MVC
cngump
2
1.8k
IM DIY
cngump
1
260
Mac OS APP 的沙盒和相关审核技术
cngump
0
550
基于Xamarin 2.0的跨平台移动开发
cngump
0
140
Other Decks in Programming
See All in Programming
ECS初心者の仲間 – TUIツール「e1s」の紹介
keidarcy
0
140
Kiroの仕様駆動開発から見えてきたAIコーディングとの正しい付き合い方
clshinji
1
180
機能追加とリーダー業務の類似性
rinchoku
0
140
Microsoft Orleans, Daprのアクターモデルを使い効率的に開発、デプロイを行うためのSekibanの試行錯誤 / Sekiban: Exploring Efficient Development and Deployment with Microsoft Orleans and Dapr Actor Models
tomohisa
0
220
為你自己學 Python - 冷知識篇
eddie
1
310
デザインシステムが必須の時代に
yosuke_furukawa
PRO
2
130
Introducing ReActionView: A new ActionView-compatible ERB Engine @ Rails World 2025, Amsterdam
marcoroth
0
170
詳解!defer panic recover のしくみ / Understanding defer, panic, and recover
convto
0
210
Trem on Rails - Prompt Engineering com Ruby
elainenaomi
1
100
レガシープロジェクトで最大限AIの恩恵を受けられるようClaude Codeを利用する
tk1351
4
1.5k
CSC305 Summer Lecture 12
javiergs
PRO
0
130
TanStack DB ~状態管理の新しい考え方~
bmthd
2
370
Featured
See All Featured
BBQ
matthewcrist
89
9.8k
Docker and Python
trallard
45
3.5k
Code Review Best Practice
trishagee
70
19k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
6k
GitHub's CSS Performance
jonrohan
1032
460k
Keith and Marios Guide to Fast Websites
keithpitt
411
22k
Java REST API Framework Comparison - PWX 2021
mraible
33
8.8k
Building a Scalable Design System with Sketch
lauravandoore
462
33k
Optimizing for Happiness
mojombo
379
70k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
A Modern Web Designer's Workflow
chriscoyier
696
190k
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) <
>
感谢