Responsive image
博碩士論文 etd-0831110-163142 詳細資訊
Title page for etd-0831110-163142
論文名稱
Title
應用於電子書之字形呈像系統
Font-Rendering System for E-book Applications
系所名稱
Department
畢業學年期
Year, semester
語文別
Language
學位類別
Degree
頁數
Number of pages
84
研究生
Author
指導教授
Advisor
召集委員
Convenor
口試委員
Advisory Committee
口試日期
Date of Exam
2010-07-22
繳交日期
Date of Submission
2010-08-31
關鍵字
Keywords
字形呈像、向量圖形
Fonts rendering, Vector graphics
統計
Statistics
本論文已被瀏覽 5627 次,被下載 0
The thesis/dissertation has been browsed 5627 times, has been downloaded 0 times.
中文摘要
本論文提出一應用於電子書之字形呈像系統。向量字形的呈像主要包含兩個步驟: 曲線線段的繪製和字體封閉區間內的填色,相較於傳統利用許多極短的直線來逼近曲線線段的繪製方式,本系統應用了adaptive forward-difference演算法來繪製曲線,此外對於字形的填色方式,本論文採用了local-minimum table和vertex table來取代傳統的global edge table以減少記憶體空間的需求。最後,為了改善字形的呈像品質,本系統應用了以往僅見於三維圖學系統的FLIPQUAD取樣點策略之反鋸齒技術,採用這項技術相對於傳統的RGSS取樣點策略不僅呈像品質較佳也可以降低記憶體需求和填色計算成本達25%。本字形繪製系統實做於ARM核心的平台上並且使用了FreeType字形解譯器將之轉換為符合標準二維向量圖形介面OpenVG的繪圖指令,此標準應用程式介面(API)被實做於QT視窗系統和嵌入式Linux平台上。本論文所提出的字形繪製系統展示一個完全利用開放原始碼的解決方案並且可以被應用於各式各樣的嵌入式環境中。
Abstract
In this thesis, an efficient font-rendering system for E-book applications was presented. The rendering of vector-type fonts mainly consists of two procedures: the rasterization of outline curves, and the filling of font interiors. Different from the conventional rendering systems which approximate the curve using many tiny straight lines, our system applies the fast adaptive forward-difference algorithm to render the curve. In addition, for the filling of fonts, this thesis adopts the local-minimum table and the vertex table to substitute the conventional global edge table in order to reduce the memory requirement. Finally, in order to improve the rendering quality of the fonts, our system has applied the super-sampling anti-aliasing technique based on the FLIPQUAD sample patterns used in three-dimensional graphic systems in order to reduce both the required buffer size and the filling operation complexity by 25% for the similar rendering quality. Our rendering system has been implemented in an ARM-based platform. The FreeType fonts parser has been used, and transformed into the application programming interface (API) commands of a two-dimensional vector graphics standard called OpenVG. This standard APIs have been built on the QT window and Embedded Linux operational systems. The rendering system proposed by this thesis represents a total open-source solution, and can be applied to many embedded applications.
目次 Table of Contents
Chapter 1 概論 1
1.1 研究動機 1
1.2 論文大綱 2
Chapter 2 字形繪製系統架構之介紹 3
2.1 電子書閱讀系統 3
2.2 OpenVG 4
2.2.1 使用OpenVG繪製字形 5
2.3 向量與點陣字形 7
2.4 字型檔解譯器FreeType 8
2.5 QT 8
2.6 Embedded Linux 9
Chapter 3 基本向量圖形繪製流程 10
3.1 路徑描點(Path tessellation) 10
3.2 多邊形填色(polygon fill) 10
3.3 圖形反鋸齒 12
Chapter 4 路徑描點 14
4.1 描點方式 14
4.1.1 直線逼近之作法 14
4.1.2 基於整數座標點之作法 15
4.2 不同描點方法所造成之填色誤差 15
4.3 填色誤差之比較方式 20
Chapter 5 圖形之填色 22
5.1 傳統填色方式 22
5.2 基於以整數座標表示路徑輪廓位置的填色方法 26
5.3 填色方法之優劣分析 31
Chapter 6 圖形反鋸齒研究 36
6.1 針對二維向量圖形之反鋸齒技術 36
6.2 反鋸齒之取樣點策略 38
6.2.1 One sample per pixel 38
6.2.2 OGSS 39
6.2.3 RGSS 39
6.2.4 8-Queen 39
6.2.5 FLIPQUAD 40
6.2.6 各式取樣點之計算成本分析 42
6.3 應用反鋸齒技術於字形呈像 43
Chapter 7 字形呈像系統之實作 46
7.1 整體系統架構 46
7.2 轉換原始字型繪製格式為OpenVG繪製指令 46
7.3 整合OpenVG API於QT系統 52
7.4 系統成果展示 54
Chapter 8 結論與未來研究方向 56
Appendix A Embedded Linux的安裝與啟動 57
A1 使用u-boot啟動Linux 57
A2 Root-file system和NFS 58
A3 Linux kernel compilation 59
Appendix B QT的編譯與安裝 60
B1 The QT-4.6 compilation 60
B2 一個簡單的QT應用程式和編譯 60
B3 執行QT應用程式於Embedded Linux上 63
Appendix C OpenVG RI的編譯與移植 63
C1 OpenVG 1.1 RI的小錯誤修正 63
C2 OpenVG RI的編譯與移植 63
Appendix D FreeType的編譯與使用 64
D1 Embedded Linux的編譯方式 64
D1.1 基於ARM平台的FreeType-2.3.12錯誤修正 64
D2 Windows的編譯方式 65
D3 新細明體的解譯問題 65
Appendix E Linux Driver Note 65
E1 The communication flow 65
E2 The driver arch 65
E3 The Driver compilation 68
E4 The Driver execution 69
Appendix F 參考文獻 69
參考文獻 References
[1]. http://freetype.sourceforge.net/index2.html
[2]. http://qt.nokia.com/
[3]. Published on 28th Apr 2000, written by Kristof Beets, Super-sampling Anti-aliasing Analyzed
[4]. Tomas Akenine-M‥oller, Jacob Str‥om, 2003 , Graphics for the masses: a hardware rasterization architecture for mobile phones, Proceedings of ACM SIGGRAPH 2003 , SESSION: Hardware and displays table of contents, Pages: 801 - 808
[5]. SHIRLEY, P. 1990. Physically Based Lighting Calculations for Computer Graphics. PhD thesis, University of Illinois at Urbana Champaign
[6]. NVIDIA, High-Resolution Antialiasing through Multisampling Khronos Group.(2008). OpenVG Specification, (version1.1)
[7]. Jasmin Blanchette, Mark Summerfield. (2008). C++ GUI Programming with Qt 4. (2nd Edition). Prentice Hall
[8]. Sheue-Ling Lien, Michael Shantz, and Vaughan Pratt,"Adaptive Forward Differencing for Rendering Curves and Surfaces," Proceedings of SIGGRAPH '87, Computer Graphics, vol. 21, 1987.
[9]. J. D. Foley, A. V. Dam, S. K. Feiner and J. F. Hughes, Computer Graphics: Principles and Practice, 2nd ed, Addison-Wesley, 1990.
[10]. K. Kallio, “Scanline edge-flag algorithm for antialiasing,” Theory and Practice of Computer Graphics Conference, pp. 81-88, June 2007
[11]. Gordon D, Peterson MA and Reynolds RA, “Fast polygon scan conversion with medical applications,” IEEE Computer Graphics and Applications, vol. 14, issue 6, pp.20–27, Nov 1994.
[12]. OpenVG Specification, version 1.1, Khronos Group, 2008
[13]. The Khronos Group Inc. (2007) OpenVG Reference Implementation. [Online] http://www.khronos.org/openvg/spec/openvg-1_0_1-ri.zip
[14]. Jack E. Bresenham, "Algorithm for computer control of a digital plotter", IBM Systems Journal, Vol. 4, No.1, January 1965, pp. 25–30
[15]. http://www.denx.de/wiki/U-Boot
[16]. Karim Yaghmour, Jon Masters, Gilad Ben-Yossef , Philippe Gerum. Building Embedded Linux Systems. O'Reilly Media. August 2008
[17]. Alessandro Rubini, Jonathan Corbet. Linux Device Drivers (2nd Edition). O'Reilly. June 2001
電子全文 Fulltext
本電子全文僅授權使用者為學術研究之目的,進行個人非營利性質之檢索、閱讀、列印。請遵守中華民國著作權法之相關規定,切勿任意重製、散佈、改作、轉貼、播送,以免觸法。
論文使用權限 Thesis access permission:校內校外均不公開 not available
開放時間 Available:
校內 Campus:永不公開 not available
校外 Off-campus:永不公開 not available

您的 IP(校外) 位址是 18.119.107.96
論文開放下載的時間是 校外不公開

Your IP address is 18.119.107.96
This thesis will be available to you on Indicate off-campus access is not available.

紙本論文 Printed copies
紙本論文的公開資訊在102學年度以後相對較為完整。如果需要查詢101學年度以前的紙本論文公開資訊,請聯繫圖資處紙本論文服務櫃台。如有不便之處敬請見諒。
開放時間 available 已公開 available

QR Code