TW408275B - Method and device for adjusting font sizes - Google Patents

Method and device for adjusting font sizes Download PDF

Info

Publication number
TW408275B
TW408275B TW087119631A TW87119631A TW408275B TW 408275 B TW408275 B TW 408275B TW 087119631 A TW087119631 A TW 087119631A TW 87119631 A TW87119631 A TW 87119631A TW 408275 B TW408275 B TW 408275B
Authority
TW
Taiwan
Prior art keywords
font
scaling
dot matrix
point
display
Prior art date
Application number
TW087119631A
Other languages
Chinese (zh)
Inventor
Dai-Shuei He
Yu Li
Hung-Yuan Li
Original Assignee
Inventec Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inventec Corp filed Critical Inventec Corp
Priority to TW087119631A priority Critical patent/TW408275B/en
Application granted granted Critical
Publication of TW408275B publication Critical patent/TW408275B/en

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The method of the invention for adjusting font sizes includes the following steps: at first, read dot matrix data of characters; read the font display setting data in the facility environment; then calculate the horizontal adjusting rate and the vertical adjusting rate according to the dot matrix data and the font display setting data; further, horizontally and vertically adjust the fonts; at last, embellish the adjusted fonts, the embellishing process modifies the display points with respect to the cracks between each adjacent display points of the fonts. For the above method of adjusting fonts, with the prescribed embellishing step about the adjusted fonts followed, the display step for outputting the data of the adjusted fonts to the facility environment is added.

Description

經濟部f央標隼局貝工消费合作社印製 4082V5 A7 B7五、發明説明() 發明領域: 本發明係與一種字體縮放方法有關,特別是有關於一 種點陣字體縮放的方法、以及點陣字體縮放的裝置,可應 用各種處理系統之中,以減少硬體資源的使用,增進各種 大小不同字體顯示時的效率。 發明背景: 在各種處理系統的應用之中,例如不同的應用軟體、 視窗系統、或是各類的圓形環境之下,均需使用到顯示各 種文字字體及符號的功能,以藉由中文、英文、或是其他 的語系文字,來傳達系統的資訊,達成與使用者的交流及 溝通,而完成系統的各項功能及操作。 在目前常見的應用程式及視窗系統下,較常被應用的 字體可包含點陣(raster)字體、向量(vector)字量、以及全真 (true type)字體。點陣字體是直接以圖形數據、也就是以某 一區域中所顯示出的顯示點(或是被點亮的點)的分布,來構 成代表特定文字或符號的形狀,例如一般所謂的16x16字 型或是24x24字型,即是以長宽各為16、或是24點的區域, 利用區域中各點的顯示與否,來描述字形;向量字體所提 供的則是組成字形各線段端點之集合,利用向量的方式, 經過運算來顯示各種文字的圖案;而在全真字之中,則是 以組成字形輪廓的線段與曲線、再加上修飾的功能來描述 (請先閱讀背面之注意事項乔填寫本5 ) 本紙張尺度適用中國國家標準(CNS ) A4規格(210X297公筇) 經濟部中央標準局員工消費合作社印Κ 408275 A7 B7_ 五、發明説明() 文字或符號的形狀。 以上述三種字體的比較而言,點陣字體的字形具有固 定的大小,如16x丨6點或是24x24點,因此每個相對於所 有文字所需使用的資料量較小,儲存文字的字庫檔案很 小,字體處理的代碼亦較為簡單,在顯示過程的處理上, 由於所需的運算過程較為簡化,顯示處理的速度亦較快, 所需的軟硬體資源很少。但由於點陣字係以固定的顯示點 數目來表示文字,因此並不適合做縮小或是放大的處理, 否則很容易使縮小或放大後的字形產生失真,而影響到字 體顯示及辨別的效果,因此使得應用程式在字體大小上的 變化受到許多的限制。 而以向量字體及全真字體而言,由於其字體本身並沒 有其定的點陣大小,因此在縮小及放大上可以較不受限 制,且在縮放之後仍能保持原有的字形,能充分滿足應用 程式對各種大小字體的需求。但向量字體程全真字庫檔案 較點陣字體的資料檔大許多,往往會佔用數MB(百萬位元 組)至數百MB的儲存空間,字體處理的代碼亦較為複雜, 在處理系統資源有限的情況下,顯示時的處理速度會較為 緩慢,也因此對主機速度、以及硬體與軟體的資源要求會 較使用點陣字體的應用要高出許多》 上述的各種字體形式,可使用於各種語系的文字顯 示、以及基本圖形及符號顯示的應用之中,而以使用於如 漢字等象形文字的應用而言,由於其字形複雜、字元的變 本紙張尺度適用中國國家標準(CNS > Α4^格< 210Χ 297公犮) --1 -1 I - - -11 -- .丨^-I -_____1—»___ _ _ -5 V- (請先Μ讀背面之注意事項辱填ίΐτ本頁) - _ 經濟部中央標隼局負工消費合作社印聚 408275_^__ 五、發明説明() 化種類極多、且字符集龐大,以在視窗環境下的使用為例, 漢字全真字體較適於在個人電腦及更高階的處理系統之中 使用,而對於資源有限的處理系統,如多數的可攜式處理 系統、或是其中的個人數位助理(personal digital assistant; PD A)等的處理系統來說,只有對軟硬體資源需求較低的漢 字點陣字體較為適用。 以目前如個人數位助理等的處理系統之應用,在漢字 字型上多使用16x16的漢字點陣字庫,對字庫點陣的縮放 處理手段十分有限,能顯示輸出的漢字字體僅限於 16xI6(即字符點陣的寬高各為16點)、24x24、及32x32等 少數幾種位元組對八位對齊的字體,不僅無法顯示16x16 以下的點陣漢字,更沒有如1 5x 1 3、2 1 x25等非八位對齊的 漢字字體,因此在如個人數位助理等的處理系統應用中, 其輸出或顯示界面上漢字字體大小的變化受到很大的限 制,而無法視使用者的或不同應用程式的需求來自由的調 整所顯示字體的大小。 發明目的及概述: 本發明的目的為提供一種字體縮放的方法及其裝置。 本發明的另一目的為提供一種點陣字體縮放的方法、 以及點陣字體縮放的裝置,可應用各種處理系統之中,以 減少對硬體資源的使用。 本發明的另一目的為提供一種字體縮放的方法及其裝 本紙張尺度適用中國國家標準(CNS ) A4規格(2丨0X297公$ ) ^^^1 ^^^1 ^^^1 ^^^1 —^^1 - -I - - · I ^^^1 1* xvn. 、-B t* {請先閱讀背面之注意事項再填寫本頁) 408275 Λ 7 Β7 經濟部中央樣準局貝工消贽合作社印製 五、發明説明() 置’可控制點陣字體的各種不同大小比例及整數及非數倍 率的字體無級縮故,增進各種大小不同字體顯示時的效率 及效果。 本發明中字體縮放的方法,可包含以下步驟:首先讀 取字體點陣資料;並讀取設備環境中的字體顯示設定資 料;接著依據字體點陣資料及字體顯示設定資料、計算橫 向縮放比率及縱向縮放比率;再進行字體的橫向縮放及縱 向縮放;最後進行缩放後字體的修飾,修飾過程針對字艘 各相鄰顯示點間的斷裂處進行顯示點的增加修補。 上述之字體缩放方法,並可包含於上述之縮故後宇想 的修佛步称後’加入將縮放後字艘的資料輪出至設備環境 中顯示的步驟》 本發明中字體缩放的裝置可包含:字體點陣資料庫、 字體控制模組、處理單元、縮放字體儲存襞置、及顯示單 元等;字體點陣資料庫用以儲存字體點陣資料庫;字體控 制模組則用以儲存並產生字體控制代碼:處理單元用以進 行字體缩放之運算及字體顯示之處理;而縮玫字體健存裝 置則記錄缩放後之字體資料,以供處理單元存取;顯示單 元並用以由處理單元控制產生顯示資料於顯示單元上β 上述之字體縮放裝置並可加入輸入單元,以輪入字體 顯示的設定;亦可包含創建字艘資料庫,以記錄應用程式 所創建之字體資料。 本紙張尺度適用中8國家標準(CNS > Α4規格(210X29"?公犛} (請先閱讀背面之注愈事項再填鸡本頁) 裝. 訂 408275 Λ 7 Β7 五、發明説明() 圖式簡單說明: 第一圖顯示本發明中字體縮放裝置的系統功能方塊示意 圖。 第二圖顯示本發明中字體縮放方法實施例的流程示意 圖。 第三圖顯示本發明中字體縮放方法中修飾步驟實施之一 例的細部流程示意圖。 第四圖顯示一點陣字體經過不同放大處理所得之顯示結 果》 發明詳細說明: 本發明中提供一種字體縮放的方法及其裝置,可用於 點陣字體的縮放處理之中,並減少對硬體資源的使用,而 可應用各種資源有限的處理系統之中,例如可攜型的處理 系統 '如個人數位助理系統等。在縮放處理時,利用字體 在橫向及縱向上的縮放處理,並加入對縮放字體的修飾處 理,可使點陣字體在各種不同大小比例、以及整數與非數 倍率縮放上均能維持良好的顯示效果,達到字體無級縮放 的功能,增進各種字體顯示時的效率及效果。 參見第一圖所示,為本發明中之字體縮放裝置的系統 功能方塊示意圖,字體縮放裝置主要包含:字體點陣資料 庫10、字體控制模組12、處理單元14、儲存裝置16、以 本紙張尺度適用中囷固家標準(CNS ) A4規格(210X297公犮) nn I- - - - - -- ^^1 II . , - 1 - --1 ^^1 - —i-i- - _ Tw "s° {請先閲讀背面之注意事項再填寫本頁) 經濟部中央標率局員工消費合作社印聚 408275 ~ — 五、發明説明() 及顯示單元1 8。 宇體點陣資料庫1 0,係用以儲存字體點陣資料的資料 庠’以漢字點陣字體的應用而言,字體點陣資料庫1〇即可 啫存’莫予點陣字體的資料,而在應用於其他語系的文字中 時字體點陣資料庫10的内容即為該語系(例如韓文、曰 令 -I» 或英文等)的字體點陣資料。因此,字體縮放裝置應用 於漢玄 — / 予予體的縮故時’字體點陣資料庫10内即是儲存包含 漢子子體的點陣資料;而當字體縮放裝置應用於文字字元 ^圖%符號的縮放時,字體點陣資料庫丨〇即可包含各種不 系的文字字元、以及围形符號等的字體點陣資料。。 子教控制模組12則用以儲存並產生字體控制代碼,以 供系統運作使用,由於字體點陣資料庫1 0及字餿控制模組 γ2内的資料均為固定不變的資料,因此在較佳實施例中, 將兩者整合於如唯讀記憶體(read 〇niy mernory; rom)或 是其他種類的儲存裝置中’以作為一字體控制組件。 以本例中應用於漢字點陣字體的控制為例,字體控制 模级12内可包含多個内部函數,以滿足各種漢字點陣字體 處理所需,各個内部函數的功能及名稱如下表所示: {請毛閲讀背面之注意事項再填、"本瓦) :I裝· 訂 .^ 經濟部中央標隼局貝工消費合作社印製Printed by the Central Government Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperative, 4082V5, A7, B7 V. Description of the invention () Field of the invention: The present invention relates to a font scaling method, in particular to a dot matrix font scaling method, and a dot matrix. The font scaling device can be used in various processing systems to reduce the use of hardware resources and improve the efficiency when displaying fonts of various sizes. Background of the Invention: In the application of various processing systems, such as different application software, window systems, or various circular environments, the function of displaying various text fonts and symbols is required to use Chinese, English, or other language texts, to convey system information, achieve communication and communication with users, and complete various functions and operations of the system. Under current common application programs and window systems, the fonts that are more commonly used can include raster fonts, vector font sizes, and true type fonts. Dot-matrix fonts directly use graphic data, that is, the distribution of display points (or lit points) displayed in a certain area to form a shape that represents a specific character or symbol, such as the so-called 16x16 characters Type or 24x24 font, that is, the length and width of each area is 16 or 24 points, using the display of each point in the area to describe the glyph; the vector font provides the end points of the line segments that make up the glyph The collection uses vectors to display the patterns of various texts through operations; while in the true words, it is described by the line segments and curves that make up the outline of the glyph, plus the function of decoration (please read the first Note: Joe filled out this paper. 5) This paper size is applicable to Chinese National Standard (CNS) A4 (210X297 gong). Printed by the Consumer Cooperatives of the Central Bureau of Standards of the Ministry of Economic Affairs 408 275275 A7 B7_ 5. Description of the invention () The shape of the text or symbols. According to the comparison of the above three fonts, the glyphs of the dot matrix font have a fixed size, such as 16x 丨 6 points or 24x24 points. Therefore, the amount of data required for each of the characters is small, and the font file that stores the characters It is small, and the code for font processing is relatively simple. As for the display process, the required calculation process is simplified, the display processing speed is fast, and the required software and hardware resources are very small. However, because the dot matrix font uses a fixed number of display points to represent the text, it is not suitable for reduction or enlargement. Otherwise, it is easy to distort the reduced or enlarged glyphs and affect the font display and discrimination effect. As a result, the font size of the application is subject to many restrictions. In the case of vector fonts and true-to-true fonts, since the font itself does not have a fixed dot matrix size, it can be more unlimited in reducing and enlarging, and it can still maintain the original glyph after scaling, which can fully Meet your app ’s needs for fonts of all sizes. However, the vector font Chengquan font database file is much larger than the bitmap font data file, and often takes several MB (million bytes) to hundreds of MB of storage space. The font processing code is also more complicated, and the processing system resources are limited. Under the circumstances, the processing speed during display will be slower, so the host speed, and hardware and software resource requirements will be much higher than the applications using dot matrix fonts. The various font forms described above can be used in various language families. Text display, as well as basic graphic and symbol display applications, and for applications such as Chinese characters such as hieroglyphics, due to its complex glyphs and character variations, the paper size applies the Chinese national standard (CNS > Α4 ^ Grid < 210 × 297 Gong) --1 -1 I---11-. 丨 ^ -I -_____ 1 — »___ _ _ -5 V- (Please read the notes on the back first and fill in the ΐτ version (Page)-_ Yin Ju 408275 _ ^ __ of the Central Bureau of Standards, Ministry of Economic Affairs and Consumer Cooperatives. 5. Description of the invention () There are many types of characters, and the character set is huge. Take the use in a window environment as an example. Suitable for individuals Brain and higher-level processing systems, and for processing systems with limited resources, such as most portable processing systems or processing systems of personal digital assistants (PD A), Only the dot-matrix fonts of Chinese characters with lower requirements for software and hardware resources are more suitable. Based on the current application of processing systems such as personal digital assistants, 16x16 Chinese dot matrix fonts are mostly used on Chinese fonts. The method of scaling and processing the dot matrix fonts is very limited. The Chinese fonts that can be displayed and output are limited to 16xI6 (that is, characters). The width and height of the dot matrix are 16 dots each), a few bytes such as 24x24, and 32x32 are aligned to eight bits. Not only cannot display dot Chinese characters below 16x16, but also less like 1 5x 1 3, 2 1 x25 And other non-eight-aligned Chinese character fonts, so in processing system applications such as personal digital assistants, the change in the size of Chinese character fonts on its output or display interface is greatly restricted, and cannot be viewed by the user or by different applications. Need to freely adjust the size of the displayed font. Object and Summary of the Invention The object of the present invention is to provide a method and a device for font scaling. Another object of the present invention is to provide a dot matrix font scaling method and a dot matrix font scaling device, which can be applied to various processing systems to reduce the use of hardware resources. Another object of the present invention is to provide a method for scaling fonts and the paper size of the paper. The paper size is applicable to the Chinese National Standard (CNS) A4 (2 丨 0X297). ^^^ 1 ^^^ 1 ^^^ 1 ^^^ 1 — ^^ 1--I--· I ^^^ 1 1 * xvn., -B t * (Please read the notes on the back before filling this page) 408275 Λ 7 Β7 Printed by the Consumers' Cooperative Association. 5. Description of the invention () Set the fonts to control the dot matrix fonts with different sizes and integer and non-multiplying fonts to reduce the size step by step, and improve the efficiency and effect of displaying fonts of different sizes. The method for font scaling in the present invention may include the following steps: first reading the font dot matrix data; and reading the font display setting data in the device environment; then calculating the horizontal scaling ratio based on the font dot matrix data and the font display setting data, and Vertical scaling ratio; horizontal and vertical scaling of the font; and decoration of the font after scaling. The decoration process adds and repairs the display points for the breaks between adjacent display points of the ship. The above-mentioned font scaling method may include a step of turning the information of the scaled character ship out to display in the equipment environment after the above-mentioned step of reviving the Buddha. “The device for font scaling in the present invention may Including: font dot matrix database, font control module, processing unit, scaled font storage setting, and display unit, etc .; font dot matrix database is used to store font dot matrix database; font control module is used to store and Generate font control code: the processing unit is used to perform font scaling operations and font display processing; and the reduced font font storage device records the scaled font data for access by the processing unit; the display unit is used to be controlled by the processing unit Generate display data on the display unit β The font scaling device described above can be added to the input unit to set the font display in turn; it can also include creating a font database to record the font data created by the application. This paper size applies to the 8 national standards (CNS > Α4 specifications (210X29 "? 牦)) (Please read the notes on the back before filling the chicken page). Order 408275 Λ 7 Β7 V. Description of the invention () Figure Brief description of the formula: The first figure shows a block diagram of the system function of the font scaling device in the present invention. The second figure shows a schematic flowchart of the embodiment of the font scaling method in the present invention. The third figure shows the modification step in the font scaling method in the present invention. A detailed flow chart of an example. The fourth figure shows the display result of a dot matrix font after different magnification processing. Detailed description of the invention: The present invention provides a font scaling method and device, which can be used in the dot matrix font scaling processing. And reduce the use of hardware resources, and can be applied to various processing systems with limited resources, such as portable processing systems such as personal digital assistant systems. When scaling processing, the use of fonts in the horizontal and vertical directions Scaling processing and adding modification processing for scaled fonts can make bitmap fonts in various sizes Integer and non-multiple magnification can maintain good display effects, achieve the function of stepless scaling of fonts, and improve the efficiency and effect when displaying various fonts. See the first figure, which is the system of the font scaling device in the present invention. Functional block diagram. The font scaling device mainly includes: font dot matrix database 10, font control module 12, processing unit 14, storage device 16. Applicable to China Paper Standard (CNS) A4 specification (210X297) at this paper size. ) Nn I------^^ 1 II.,-1---1 ^^ 1-—ii--_ Tw " s ° {Please read the notes on the back before filling this page) Economy Ministry of Standards and Standards Bureau Staff Consumer Cooperatives Printed Poly 408275 ~ — V. Invention Description () and Display Unit 18 8. The Utopia Dot Matrix Database 10 is the data used to store font dot matrix data. For the application of fonts, the font dot matrix database 10 can store the data of the Moyu dot matrix font, and the content of the font dot matrix database 10 when it is applied to the text of other languages is the language family (for example, Korean, Japanese-I »or English, etc. Font dot matrix data. Therefore, when the font scaling device is applied to Han Xuan — / Yu Yuti ’s downsizing 'font dot matrix database 10 is to store the dot matrix data containing Hanzi sub-body; and when the font scaling device is applied to When text characters ^ figure% symbol is zoomed, the font dot matrix database can contain font dot matrix data of various unrelated text characters and enclosing symbols, etc. The sub-teaching control module 12 is used to The font control code is stored and generated for system operation. Since the data in the font dot matrix database 10 and the font control module γ2 are fixed data, in the preferred embodiment, both Integrate it in a read-only memory (read omniry; rom) or other types of storage devices as a font control component. Taking the control of Chinese character dot matrix fonts in this example as an example, the font control module level 12 can include multiple internal functions to meet the needs of processing various Chinese character dot matrix fonts. The functions and names of each internal function are shown in the following table. : (Please read the notes on the back, and then fill in, " Ben Wa): I installed and ordered. ^ Printed by the Shellfish Consumer Cooperative, Central Bureau of Standards, Ministry of Economic Affairs

本紙張尺度適用中a困家標準{ CNS ) A4規格UIOX297公H 408275 λ 117 五、發明説明() 函數名稱 功1 ----* —____ SysFontEntry 載 入 各 種 字 體 資 源 與 控 制 一丨··一 分 配 所 需 的 記 憶 體 資 源 登 錄 各 種 字 體 操 作 函 數 入 口 位 址 〇 於 開 機 時 初 始 化 過 程 中 被 調 用 0 CreateFixFontlndirect 於 創 建 漢 字 點 陣 字 體 時 要 求 該 字 體 漢 字 點 陣 於 縮 放 程 程 中 所 需 的 記 憶 體 資 源 記 錄 並 檢 査 所 創 建 的 漢 字 點 陣 字 體 屬 性 資 料 P 於 創 建 漢 字 點 陣 字 體 時 被 調 用 〇 FixFoatOutString 對 漢 字 點 陣 縮 放 處 理 並 在 一 定 環 境 下 輸 出 顯 示 點 陣 字 體 的 漢 字 〇 向 設 備 輸 出 顯 示 點 陣 字 體 漢 字 時 被 調 用 0 DeleteFixFont 釋 放 創 建 漢 字 點 陣 字 體 時 所 佔 用 --—— 的 記 憶 體 資 源 〇 刪 除 漢 字 點 陣 字 體 時 被 調 用 〇 —--- ----------^------ΐτ------滅 {请先閱读背面之注意爭項"填,:^本莨) 經濟部中央標準局員工消费合作社印狀 因此,以個人數位助理系統為例,在開機啟動系統初 始化時即調用函數SysFontEntry,也就是一般系統載入字艘 資源的過程。而函數CreateFixFontlndirect即可於使用者創 建字體應用,而提供相對應的資源及顯示時的應用。 本紙張尺度適用中國國家標準(CNS ) A4规格(210X297公^7 經濟部中央標準局貝工消f合作社印裝 408 挪 - 五、發明説明() 在設備環境欲顯示縮小或放大的漢字點陣字體時,即 可應用函數FixFontOutString從點陣字庫1〇中讀出組成輸 字串各個字符的點陣資料,將字體固定大小的點陣縮小或 放大到所選字體的尺寸,並對縮放後的點陣數據作適當的 修飾處理以保持原有的字形;最後將此處理後的點陣賦予 位元圖,將此位元圈選入設備環境顯示之。而當應用程式 不再使用已創建的漢字點陣字體時,即可藉由函數 DeleteFixFont釋放點陣字體所佔用的系統内存資源》 處理單元1 4則為進行運算處理的中心,例如個人數位 助理系統中的中央處理器,以進行字體縮放之運算、以及 字體顯示之處理;縮放字鱧儲存裝置16則可用以記錄缩放 後之字體資料,例如以字體位元圖(bit map)的方式儲存於 其内’以供處理單元14存取’以本例而言,此一縮放字體 儲存裝置可使用隨機存取記憶體(random access memory; RAM) ’例如一般常見的動態隨機存取記憶體(dynainic random access memory; DRAM)等 〇 顯示單元18’在處理單元14將縮放字體儲存裝置16 内的點陣字體位元圖讀出後’即可藉以產生控制顯示單元 18的訊號,而產生顯示資料於顯示單元18之上》 此外,字體縮放裝置並可包含輸入單元20,以輪入使 用者對字體顯示大小或比例等縮放條件的設定、例如使用 者可視其需要的不同、而由輸入單元20的操作設定字體顧 示的大小及比例’以便於閱讀或操作,輸入單元2〇並可用 本紙張尺度適用中困圏家標準(CNS ) A4坭格(210X 2974^7 {請先閱讀背面之注^^項再说的本莧) .裝 訂 4082Ϊ5 Λ 7 Β7 經濟部中央梯準局員工消費合作社印聚 五、發明説明() 以輸入系統運作時所需的各種指令及資訊;以個人數位助 理系統而言,輪入單元20可為觸控式的感應輪入元件’或 是其他形式的鍵盤或按鈕等。 在輸入單元20之外,字體縮放裝置並可包含創建字體 資料庫22,以記錄由使用者藉由應用程式所創建之字體資 料,同樣的,創建字體資料庫22亦可使用隨機存取記憶體 (random access memory; RAM) ’例如一般常見的動態隨機 存取記憶體(dynamic random access memory; DRAM)等,在 本例中,即可整合縮放字體儲存裝置16舆創建字體資料庫 22,而共用系統的隨機存取記憶體資源。 而本發明中的字體缩放方法,其流程示意圖如第三圈 所示,首先於步驟30中讀取字體的點陣資料’也就是由字 體點陣資料庫中取出所需的字體;再於步驟32中讀取設備 環境中的字體顯示設定資料’也就是使用者欲顯示字體的 大小,例如原點陣字為16x16,而使用者對設備環境中的字 體顯示設定係設定為18x24;接著在步驟34中,即依據字 體點陣資料(16x16)及字體顯示設定資料(18x24)、計算橫向 縮放比率(=18/1 6)及縱向缩放比率( = 24Π 6) β 之後即於步驟36中,進行字體的橫向縮放及縱向縮 放,本例中字體的橫向缩放及縱向縮放,係以點陣字醴中 各相鄰顯示點所組成的線段為基礎,進行線段或單獨顯示 點的缩放•由於字逋點陣中各點的重要性各不相同,其中 有顯示的點(或是被點亮的點)比沒有顯示的點(或是未被點 本紙張尺度適用中®圉家榡準(CNS > Α4規袼(210X297公楚) (請先閱讀背面之注意事項再填寫本頁) 丨裝 *1Τ -求 408275 in 五、發明説明() 亮的點)更為重要,因此在點陣縮小時’顯示線段的最小長 度是一,也就是一個點,而不會因縮小而變成〇,以缶 .¾¾ 中的顯示點在縮放過程中消失。而在本實施例之争,在點 陣放大時,為保持粗細均勻的筆畫,線條放大後要作適當 的調整,在放大點陣小於32x32、放大率為爪時,線段玫 大方法在本例中可使用的計算方法之一例為: 玫大後的線段長度=(原線段長-1)* m + 1 ; 此外,若放大後的線段長度大於(原線筏長* m),則: ----------裂-- ** (請先閑讀背面之注悫事!?-^¾¾本頁} 經濟部中央標準局爲工消費合作社印製 放大後的線段長度=原線段長 m〜i。 以保持粗細均勻筆畫,但是一般字體在非整倍放大 時,筆畫可能因而發生斷裂’因此即須進行修飾的處理β 因此在步驟38中,即進行縮放後字雔的修飾,修飾過 程即針對字體各相鄰顯示點間的斷裂處進行顯示 1 的增 補,以針對漢字字體或是其化象形文字的筆畫特微,保持 筆畫的完整連續及筆畫之間的位置銜接關係》 而在步驟38中縮放後字體的修飾步驟之後,可進—步 加入類示控制的步驟40,將缩放後字體的資料輪出至設備 環境中顯示β 以較佳實施例而言,在步驊38中縮放後宇體修飾的過 本紙張尺度適用t國國家揉準(CNS ) A4规格(210X297公犮) Λ 7 Β7 40827^ 五、發明説明() 程,可以檢査廣點陣予想各個顯示點及其所組成的線段與 周团八個方向上其他點的鄰接狀況’在盡量保持其原有的 筆畫銜接狀態與筆畫連續性的規則下,決定縮放後的點陣 上某些點的顯示狀況’可避免字體在縮放過程中筆畫術接 部分及轉折處被削去’並避免字筆斷裂的情形》 在修飾過程t對顯示點(也就是被點亮的點)進行鄰接 關係的檢查時’實際上只需檢查單側、例如左側或右側的 鄰接關係’以判斷是否需進行修補、以追加顯示點的方式 來保持筆畫的連讀性。 參見第三ffl ’即為步驟38中縮放後字體的修飾,其實 施方式之一例的細部流程示意圖’縮放後字體修飾的步瑪 可包含以下步驟,首先在步驟3 8a中’於字體點陣資料中 取一個顯示點作為基準點,假設其座標為(X,y);並在步膝 38b中,於縮放後字體對應於基準點位置處、依(x,y)按比例 缩放後得到一對應點[X,Y];接著即於步驟38c中,先判定 原點陣字中顯示點相對於左下方的連接關係,當基準點 之下方點(X,y-1)未顯示、而基準點左下方點(3{_1,广1)有顯示 時,即於步驟38d中顯示對應點[Χ,γ]之左下方點γ· 1]。 ’ 接著再至步雜38e,判定原點陣字中顯示點相對於左上 方的連接關係,當基準點(X,y)之上方點(x,y+1)未顯示、而 基準點左上方點(x-i,y+i)有顯示時,即於步棵38f令顯示 對應點[χ,γ]之左上方點[x-i,y+i]。因此,藉由步雄38c至 12 本紙張尺度遑用中國®家標隼(CNS ) Λ4現格(210x297公釐) (請先聞讀背面之注意事項再填w本頁) '裝 訂 經濟部中央標準局負工消費合作枉印製 408S75 A7 B7 經濟部中央標準局員工消费合作社印製 五、發明説明() 步驟3 8 f,即可藉由判斷原點陣字體每一顯示點左側的連接 關係,利用增加縮放後字體對應點左側的顯示點,達成修 飾的目的。最後並重覆上述之步驟’直到完成對應於所有 顯示點之修飾,也就是利用圖中之步驟38g,其中進行對於 基準,點是否為最後一個處理的顯示點的判斷’即可達成反 復針對各個原點陣字潁示點做判斷處理的目的。 參見第三圖所示,即為本發明中之縮放方法應用後字 艘縮放後顯示效果改善之一例,圖號42所示為原16x16之 漢字點陣字體的「文」字;圖號44則為點陣字僅經直接縮 放處理後的1 8x24字體,可看出由於筆畫斷裂而使字體遭 到破壞的狀況;而圖號46即為使用本發明中之縮故方法處 理後的18x24字體,可看出字體筆畫的連續性有明顯的改 善,而避免因筆畫斷裂而影響到縮放後字體、尤其時非整 數倍縮放時的顯示效果。 因此,藉由本發明中的方法與裝置,可使如漢字或是 其他象形文字、字元或符號等的點陣字體,在縮放後仍能 保持良好的連接關係,而顯示較完整的字形,且由於使用 資源為點陣字的字庫及控制資料,可減少系統資源的負荷 及運作時對系統資源的需求,增進各種大小不同字體顯示 時的效率及效果,並可達到控制點陣字體的各種不同大小 比例及整數及非數倍率的字體無級縮放的目的》 本發明以一較佳實施例說明如上,僅用於藉以幫助了 解本發明之實施,非用以限定本發明之精神,而熟悉此領 本紙張尺度適用中囷固家標準(CNS ) A4規格(21〇Χ297公蝥) ----- 1^— - - In 1. - I i n i ! I 丁 I ! * fe (請先聞讀背面之注意事項再填1¾本頁) . 408275 A7 B7 五、發明説明() 域技藝者於領悟本發明之精神後,在不脫離本發明之精神 範圍内,當可作些許更動潤飾及等同之變化替換,其專利 保護範圍當視後附之申請專利範圍及其等同領域而定。 n ^^1 - - - 1- -- - —— - - - r 士文- I - ---- I - i^i— 0¾ ·1 4 1 (請先閲讀背面之注意事項#填涔本s ) 經濟部中央標準局貝工消费合作社印製 本紙張尺度適用中國國家標隼(CNS ) A<t規格(210X297公穿)The standard of this paper is applicable to the standards of a homeowner {CNS) A4 specification UIOX297 male H 408275 λ 117 V. Description of the invention () Function name function 1 ---- * —____ SysFontEntry Load various font resources and control one 丨 ·· one Allocate required memory resources and register various font operation function entry addresses. 0 is called during the initialization process at startup. 0 CreateFixFontlndirect requires the memory resources required for the Chinese font dot matrix to be scaled when creating a Chinese font dot matrix font. Record and check the created Chinese character dot matrix font attribute data. P is called when creating the Chinese character dot matrix font. FixFoatOutString scales the Chinese character dot matrix and outputs the Chinese character that displays the dot matrix font under certain circumstances. The display dot matrix font is output to the device. Chinese characters are called when 0 DeleteFixFont is released when creating Chinese character dot matrix fonts Memory resources 〇 Called when deleting Chinese dot matrix fonts 〇 ----- ---------- ^ ------ ΐτ ------ off {Please read the attention at the back first Item " Fill in: ^ 本 莨) Printed by the Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs. Therefore, taking the personal digital assistant system as an example, the function SysFontEntry is called when the system is initialized after booting, which is the general system loading resource the process of. The function CreateFixFontlndirect can create font applications for users, and provide corresponding resources and applications during display. This paper size is applicable to Chinese National Standard (CNS) A4 specifications (210X297g ^ 7) Printed by the Central Bureau of Standards of the Ministry of Economic Affairs, Bei Gongxiao, F. Cooperative, printed 408-V. Description of the invention When the font is used, you can use the function FixFontOutString to read out the dot matrix information of the characters that make up the input string from the dot matrix font library 10, reduce or enlarge the fixed size dot matrix to the size of the selected font, and The dot matrix data is appropriately modified to maintain the original glyph; finally, the processed dot matrix is assigned to a bitmap, and this bit circle is selected to be displayed in the device environment. When the application no longer uses the created For Chinese character dot matrix fonts, you can use the function DeleteFixFont to release the system memory resources occupied by the dot matrix fonts. Processing unit 14 is the center for performing arithmetic processing, such as the central processing unit in a personal digital assistant system for font scaling. Operations, and font display processing; the scale font storage device 16 can be used to record the scaled font data, such as a font bitmap bit map) is stored in it 'for the processing unit 14 to access'. In this example, this scaled font storage device can use random access memory (RAM)' for example, a common dynamic Random access memory (DRAM), etc. 〇 The display unit 18 'can read the bitmap font bitmap in the scaled font storage device 16 after the processing unit 14' to generate the control display unit 18's Signal to generate display data on the display unit 18 "In addition, the font scaling device may include an input unit 20 to rotate the user's setting of scaling conditions such as font display size or proportion, such as the user's different needs depending on his needs The size and proportion of the font display are set by the operation of the input unit 20 'for easy reading or operation. The input unit 20 can be used in this paper size to apply the Chinese Standard (CNS) A4 grid (210X 2974 ^ 7 { Please read the note ^^ on the back first). Binding 4082Ϊ5 Λ 7 Β7 Printed by the Consumers' Cooperative of the Central Government Bureau of the Ministry of Economic Affairs. Various instructions and information required when the system is operating; in the case of a personal digital assistant system, the wheel-in unit 20 may be a touch-sensitive induction wheel-in element, or other types of keyboards or buttons. Outside the input unit 20 The font scaling device may include the creation of a font database 22 to record the font data created by the user through the application. Similarly, the creation of the font database 22 may also use random access memory (RAM) ) 'For example, commonly used dynamic random access memory (DRAM), etc. In this example, a scalable font storage device 16 can be integrated to create a font database 22, and the random access memory of the shared system is shared. Physical resources. In the font scaling method of the present invention, the schematic flow chart is shown in the third circle. First, the dot matrix data of the font is read in step 30, that is, the required font is taken out from the font dot matrix database; and then in step Read the font display setting data in the device environment in 32, that is, the size of the font the user wants to display, for example, the original dot matrix font is 16x16, and the user sets the font display setting in the device environment to 18x24; then in step 34, that is, according to the font dot matrix data (16x16) and font display setting data (18x24), calculate the horizontal zoom ratio (= 18/1 6) and vertical zoom ratio (= 24Π 6) β, then proceed to step 36. The horizontal and vertical scaling of the font. The horizontal and vertical scaling of the font in this example is based on the line segments composed of adjacent display points in the dot matrix font. The importance of each point in the dot matrix is different. The points that are displayed (or lighted up) are more important than the points that are not displayed (or not touched). t; Α4 regulations (210X297), (please read the precautions on the back before filling this page) 丨 install * 1T-408275 in V. Description of the invention () Bright points) is more important, so the dot matrix is reduced The minimum length of the display line segment is one, that is, a point, and it will not become 0 due to reduction. The display point in ¾.¾¾ disappears during the zooming process. In the dispute of this embodiment, the dot matrix is enlarged. In order to maintain uniform thickness strokes, appropriate adjustments should be made after the line is enlarged. When the magnification dot matrix is less than 32x32 and the magnification is claw, one of the calculation methods that can be used in this example is: The length of the subsequent line segment = (the original line segment length -1) * m + 1; In addition, if the enlarged line segment length is greater than (the original line raft length * m), then: ---------- crack- ** (Please read the note on the back first!?-^ ¾¾This page} The Central Bureau of Standards of the Ministry of Economic Affairs prints an enlarged line segment for the Industrial and Consumer Cooperatives = the original line segment m ~ i. In order to maintain uniform thickness and strokes, However, when the general font is not enlarged, the stroke may be broken. Therefore, it must be modified. Processing β Therefore, in step 38, the font is modified after scaling, and the modification process is to add display 1 to the break between adjacent display points of the font to target the stroke characteristics of the Chinese font or its hieroglyph. Micro, to maintain the complete continuity of strokes and the positional connection between the strokes. ”After the retouching step of the scaled font in step 38, you can further add step 40 of the class control to rotate the data of the scaled font to Display β in the device environment. In a preferred embodiment, the scale of the paper modified by the body after scaling in step 骅 38 is applicable to the country's national standard (CNS) A4 specification (210X297) 犮 Λ 7 Β7 40827 ^ 5 2. Description of the invention () process, you can check the wide dot matrix to imagine the adjacent state of each display point and its composed line segments and other points in the eight directions of the weekly group, in order to maintain the original stroke connection state and stroke continuity as far as possible. Under the rules, determine the display conditions of certain points on the scaled dot matrix 'to avoid the font from being cut off during the scaling process and the corners of the stroke' and to prevent the pen from breaking In the modification process t, when the display point (ie, the lighted point) is checked for the adjacency relationship, 'in fact, only one side, such as the left or right side adjacency relationship needs to be checked' to determine whether repair is needed and additional display points are needed. Way to keep the readability of strokes. Refer to the third ffl 'It is the detailed font modification of the scaled font in step 38, an example of an embodiment of the detailed process flow diagram' The scaled font modified Buma may include the following steps, first in step 38a 'on the font dot matrix data Take a display point as the reference point, assuming that its coordinates are (X, y); and in step 38b, the font corresponds to the reference point position after scaling, and a correspondence is obtained by scaling according to (x, y). Point [X, Y]; Then in step 38c, first determine the connection relationship between the displayed points in the original dot matrix and the lower left. When the point below the reference point (X, y-1) is not displayed, and the reference point is When the lower left point (3 {_1, Can 1) is displayed, the lower left point γ · 1] of the corresponding point [X, γ] is displayed in step 38d. 'Then go to step Zae 38e, determine the connection relationship between the display point in the original dot matrix character and the upper left, when the upper point (x, y + 1) of the reference point (X, y) is not displayed, and the upper left of the reference point When the point (xi, y + i) is displayed, the upper left point [xi, y + i] of the corresponding point [χ, γ] is displayed at step 38f. Therefore, with the use of Bu Hung 38c to 12 paper sizes, China® House Standard (CNS) Λ4 (210x297 mm) (please read the precautions on the back before filling this page) Printed by the Bureau of Standards for Consumer Cooperation 408S75 A7 B7 Printed by the Consumers Cooperative of the Central Bureau of Standards of the Ministry of Economic Affairs 5. Description of the invention () Step 3 8 f, you can judge the connection relationship to the left of each display point of the original dot font , Use the display point to the left of the corresponding point of the font after zooming to achieve the purpose of decoration. Finally, repeat the above steps 'until the modification corresponding to all the display points is completed, that is, using step 38g in the figure, where a judgment is made as to whether the reference point is the last processed display point', and it is possible to repeatedly target each original point. The dot matrix character indicates the purpose of the judgment processing. Refer to the third figure, which is an example of the improvement of the display effect of the font after the scaling method is applied in the present invention. Figure 42 shows the "wen" character of the original 16x16 Chinese dot matrix font; Figure 44 shows This is an 18x24 font with dot matrix characters only directly scaled. It can be seen that the font is damaged due to broken strokes; and Figure No. 46 is an 18x24 font processed using the reduction method in the present invention. It can be seen that the continuity of the font strokes has been significantly improved, and the display effect of the scaled font, especially when zoomed at non-integer times, is avoided due to the broken strokes. Therefore, with the method and device in the present invention, dot matrix fonts such as Chinese characters or other hieroglyphs, characters or symbols can still maintain a good connection relationship after scaling, and display more complete glyphs, and Because the resource is a font library and control data of dot matrix fonts, it can reduce the load of system resources and the demand for system resources during operation, improve the efficiency and effect when displaying various fonts of different sizes, and control the various differences of dot matrix fonts. The purpose of stepless scaling of fonts with size ratios and integer and non-multiple magnifications "The present invention is described above with a preferred embodiment, and is only used to help understand the implementation of the invention, not to limit the spirit of the invention, but to be familiar with it The size of this paper applies to the CNS A4 specification (21〇 × 297) 蝥 ----- 1 ^ —--In 1.-I ini! I 丁 I! * Fe (Please read first Note on the back, please fill in this page again. 1) This page). 408275 A7 B7 V. Description of the invention () After understanding the spirit of the invention, the domain artist can make some changes and embellishments without departing from the spirit of the invention. With the same change and replacement, the scope of patent protection shall depend on the scope of the attached patent application and its equivalent fields. n ^^ 1---1-------r Shiwen-I----- I-i ^ i— 0¾ · 1 4 1 (Please read the notes on the back first # s) Printed by the Central Standards Bureau of the Ministry of Economic Affairs, Shellfish Consumer Cooperative, this paper is printed in accordance with China National Standard (CNS) A < t specification (210X297)

Claims (1)

408275 A8 B8 C8 D8六、申請專利範圍 經濟部中去榇準局負工消费合作社印策 1. 一種字體縮放方法,至少包含以下步驟: 讀取字體點陣資料; 讀取設備環境中的字體顯示設定資料; 依據該字體點陣資料及該字體顯示設定資料、計算橫 向縮放比率及縱向縮放比率; 進行字體的橫向縮放及縱向縮放;以及 進行縮放後字體的修飾,該修飾過程針對字體各相鄰 顯示點間的斷裂處進行顯示點的增加修補。 2. 如申請專利範圍第1項之字體縮故方法,更包含於上 述之縮放後字體的修飾步驟後,將該縮放後字體的資料輸 出至設備環境中顯示。 3. 如申請專利範圍第1項之字體縮放方法,係應用於漢 字字體的縮放,該字體點陣資料至少包含漢字字體點陣資 料。 4. 如申請專利範圍第1項之字體縮放方法,係應用於文 字字元及蹰形符號的縮放,該字體點陣資料至少包含文字 字元及圖形符號的字體點陣資料^ 。 5. 如申請專利範圍第1項之字體縮放方法,係應用於可 攜型處理系統之中。 (請先閲讀背面之注意Ϋ項再填寫本頁) -裝· .—沭 本紙浪尺度逋用中國明家標率(CNS ) A4規格(210 X 297公釐) 4〇8275 λ8 Β8 C8 D8六、申請專利範圍 經濟部中央榡隼局負工消费合作社印製 6. 如申請專利範圍第5項之字體縮放方法,其中上述之 可攜型處理系統至少包含個人數位助理系統。 7. 如申請專利範圍第1項之字體縮放方法,其中上述之 字體的橫向縮放及縱向縮放的步驟,係以該點陣字體中各 相鄰顯示點所組成的線段為基礎,進行線段的縮放。 8. 如申請專利範圍第7項之字體縮放方法,其中的線段 放大方法,在放大點陣小於32x32、放大率為m時, 放大後的線段長度=(原線段長- 若該放大後的線段長度大於(該原線段長*m)、 則該放大後的線段長度=原線段長*m-l。 9. 如申請專利範圍第1項之字體縮放方法,其中上述之 縮放後字體修飾的步驟,至少包含以下步驟: 在該字體點陣資料取一個為顯示點的基準點; 在該縮放後字體對應於該基準點位置處取一對應點; 當該基準點之下方點未顯示、而該基準點左下方點有 顯示時,顯示該對應點之左下方點; 當該基準點之上方點未顯示、而該基準點左上方點有 顯示時,顯示該對應點之左上方點; 重覆上述之步驟,直到完成對應於所有顯示點之修 飾* (請先Μ讀背而之注意事項再填寫本f ) 本纸張尺度逍用中困國家梯準(CNS ) A4規格(210X2517公釐) 40827 5 ABCD 六、申請專利範圍 經濟部中央標率局貝工消费合作社印製 ίο.—種應用於漢字點陣字體的字體縮放方法,至少包 含以下步驟: 讀取字體點陣資料,該字體點陣資料至少包含漢字字 體點陣資料; 讀取設備環境中的字體顯示設定資料; 依據該字體點陣資料及該字體顯示設定資料、計算橫 向縮放比率及縱向縮放比率; 進行字體的橫向縮放及縱向縮放; 進行縮放後字體的修飾,該修飾過程針對字體各相鄰 顯示點間的斷裂處進行顯示點的增加修補,至少包含以下 步驟: 在該字體點陣資料取一個為顯示點的基準點; 在該縮放後字體對應於該基準點位置處取一對 應點, 當該基準點之下方點未顯示、而該基準點左下 方點有顯示時,顯示該對應點之左下方點; 當該基準點之上方點未顯示、而該基準點左上 方點有顯示時,顯示該對應點之左上方點; 重覆上述之步驟,直到完成對應於所有顯示點 之修飾;以及 將該縮放後字體的資料輸出至設備環境中顯示。 11.如申請專利範圍第10項之字體縮放方法,係應用於 (請先閱讀背面之注意事項再填寫本I) 本紙張尺度逍用中國國家捸準(CNS > A4规格(210X297公釐) 經濟部中央榡準局負工消費合作社印製 4〇β275 Α8 Β8 C8 D8六、申請專利範圍 個人數位助理系統。 12. 如申請專利範圍第10項之字鱧縮放方法,其中上述 之字體的橫向縮放及縱向縮放的步驟,係以該點陣字體中 各相鄰顯示點所組成的線段為基礎,進行線段的縮放。 13. 如申請專利範圍第12項之字體縮放方法,其肀的線 段放大方法,在放大點陣小於32x32、放大率為m時, 放大後的線段長度=(原線段長- l)*m+l; 若該放大後的線段長度大於(該原線段長*m)、 則該放大後的線段長度=原線段長* m - 1。 14. 一種字體縮放裝置,至少包含: 一字體點陣資料庫,以儲存字體點陣資料庫; 一字體控制模組,以儲存並產生字體控制代碼; —處理單元,以進行字體縮放之運算及字體顯示之處 理 ; —縮放字體儲存裝置,以記錄縮放後之字體資料,並 供該處理單元存取;以及 一顯示單元,以由該處理單元控制產生顯示資料於該 顯示單元上。 15. 如申請專利範圍第14項之字體縮放裝置,更包含一 輸入單元,以輸入字體顯示的設定》 I--- ------- I- I! « n H . - _ 丁 HJ _1..... . _ ‘^ . * U3,"林 \ {請先閩讀背面之注意事項再填寫本頁) 18 本紙張尺度逋用中國國家揉準(CNS )戍4说格(210X297公釐) 408275 A8 B8 CS D8 六、申請專利範圍 含。 包料 &」 ί資 置體 裝字 放之 縮建 體創 字所 之式 項程 4 用 1應 第錄 圍¾ 範以 利, 專 wL 請料 申資 如體 6 1 1字 A-l t 創 IL 料 請資 申體 如字 17建 創 之 圍 範 專 用 使 述 上 中 其 置 裝 放。 縮體 體憶 字記 之取 項存 6 機 1隨 第 述讀 上唯 中於 其合 整 置— 係 裝彳 放a 縮 體 字 之控件 項體組 4字制 1之控 第述體 圍上字 範及一 利庫為 專料作 請資以 申陣, 如點中 18體體 字憶 之記 模 制 (請先閲讀背面之注意事項再填寫本頁) 裝· 第 圍 範置 利裝 專存 請儲 申體 j字 19放 縮 之 使 述 上 中 其 置 裝。 放體 縮憶 體記 字取 之存 頃機 4隨 11 用 訂 申 如 的。 體庫 字料 字資 於點 用體 應字 係字 CT-S 含 包 少 至 --L 料 資 陣 1 點 第體 圍字 範該 利, 專放 請縮 置 裝 放 縮 體 字 之 項 經濟·邓中央標準局男工消費合作社印裝 於含 用包 應少 係至 ’」庫 置f/ 裝中二。 縮Ρ 。 體點庫 字體料 之字資 項該陣 4 點 1放體 第縮字 圍的的 範號號 利符符 專形形 請圖圖 申及及 如元元 21字字 字字 文文 於 用 應 係 置 裝 放 縮 體 字 之 項 4 第 圍。 範中 ruj. ί 之 專統 請系 申理 i處 22型 攜 可 9 本紙張尺度適用中國國家橾準(CNS ) A4规格(210X297公釐) ^08275 S D8六、申請專利範圍 經濟部中央標準局員工消費合作社印製 23. 如申請專利範圍第22項之字體縮放裝置,其中上述 之可攜型處理系統至少包含個人數位助理處理器。 24. 如申請專利範圍第14項之字體縮放裝置,其中上述 之處理單元進行之字體縮放過程至少包含以下步驟: 由該字體點陣資料庫讀取字體點陣資料: 由該輸入單元讀取設備環境中的字體顯示設定資料; 依據該字體點陣資料及該字體顯示設定資料、計算橫 向縮放比率及縱向縮放比率; 進行字體的橫向縮放及縱向縮放;以及 進行縮放後字體的修飾,該修飾過程針對字體各相鄰 顯示點間的斷裂處進行顯示點的增加修補。 25. 如申請專利範圍第24項之字體縮放裝置,其中上述 之字體的橫向縮放及縱向縮放的步驟,係以該點陣字體中 各相鄰顯示點所組成的線段為基礎,進行線段的縮放。 26. 如申請專利範圍第25項之字體縮放裝置,其中上述 的線段放大裝置,在在放大點陣小於 32x32、放大率為 m 時, 放大後的線段長度=(原線段長- l)*m+l; 若該放大後的線段長度大於(該原線段長*m); 則該放大後的線段長度=原線段長*m-l。 (請先聞讀背面之注意事項再填寫束頁) 本紙張尺度逍用中國國家棵準(CNS ) A4规格(210X297公釐) ABCD 408275 六、申請專利範圍 27.如申請專利範圍第24項之字體縮放裝置,其中上述 之縮放後字體修飾的步驟,至少包含以下步驟: 在該字體點陣資料取一個為顯示點的基準點; 在該縮放後字體對應於該基準點位置處取一對應點; 當該基準點之下方點未顯示、而該基準點左下方點有 顯示時,顯示該對應點之左下方點; 當該基準點之上方點未顯示、而該基準點左上方點有 顯示時,顯示該對應點之左上方點; 重覆上述之步驟,直到完成對應於所有顯示點之修 飾。 --------i------、1T------j *' (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標率局貝工消費合作社印裝 本紙張尺度逋用中國國家橾準(CNS ) A4規格(210X297公釐)408275 A8 B8 C8 D8 VI. Application for Patent Scope The Ministry of Economic Affairs of the Ministry of Economic Affairs, Consumer Affairs Cooperatives, Printing Cooperatives 1. A font scaling method, at least including the following steps: Read font dot matrix data; Read font display in the device environment Setting data; Displaying the setting data based on the font dot matrix data and calculating the horizontal scaling ratio and vertical scaling ratio; performing horizontal and vertical scaling of the font; and modifying the font after scaling. The modification process is for each adjacent font. The breaks between the display points are repaired by increasing the display points. 2. If the font reduction method of item 1 of the patent application scope is included in the above-mentioned resized font font step, the data of the scaled font is output to the device environment for display. 3. If the font scaling method in item 1 of the scope of patent application is applied to the scaling of Chinese fonts, the font dot matrix data includes at least the Chinese font dot matrix data. 4. If the font scaling method of item 1 of the scope of patent application is applied to the scaling of text characters and glyphs, the font bitmap data includes at least the font dotmap data of text characters and graphic symbols ^. 5. The font scaling method described in item 1 of the scope of patent application is applied to a portable processing system. (Please read the note on the back before filling in this page) -Installation · .—This paper wave scale uses China Mingjia Standard (CNS) A4 size (210 X 297 mm) 4〇8275 λ8 Β8 C8 D8 Printed by the Central Government Bureau of the Ministry of Economic Affairs. Printed by the Consumers Cooperative. 6. For the font scaling method in the fifth scope of the patent application, the portable processing system mentioned above includes at least a personal digital assistant system. 7. As for the font scaling method in item 1 of the scope of patent application, wherein the steps of horizontal scaling and vertical scaling of the font described above are based on line segments composed of adjacent display points in the dot matrix font, the line segments are scaled. . 8. For the font scaling method in item 7 of the scope of patent application, the line segment enlargement method, when the magnification dot matrix is less than 32x32, and the magnification is m, the length of the enlarged line segment = (the original line segment length-if the enlarged line segment If the length is greater than (the original line segment length * m), then the enlarged line segment length = the original line segment length * ml. 9. If the font scaling method of item 1 of the scope of patent application, the above-mentioned scaled font modification step, at least The method includes the following steps: taking a reference point as a display point in the font dot matrix data; taking a corresponding point at the font corresponding to the reference point position after the scaling; when a point below the reference point is not displayed and the reference point is When the lower left point is displayed, the lower left point of the corresponding point is displayed; when the upper point of the reference point is not displayed and the upper left point of the reference point is displayed, the upper left point of the corresponding point is displayed; repeat the above Steps until the modification corresponding to all display points is completed * (please read the precautions before filling in this f) This paper size is easy to use in poor countries (CNS) A4 specification (210X2517 mm) 40827 5 A BCD VI. Application for Patent Scope Printed by the Central Laboratories Bureau of the Ministry of Economic Affairs, Peigong Consumer Cooperative, a font scaling method applied to Chinese character dot matrix fonts, including at least the following steps: Read font dot matrix data, the font dot matrix data Contains at least Chinese character font dot matrix data; reads font display setting data in the device environment; calculates horizontal and vertical scaling ratios based on the font dot matrix data and the font display setting data; performs horizontal and vertical scaling of the font; Resize the font after scaling. This modification process adds and repairs the display points for the breaks between the adjacent display points of the font, at least including the following steps: Take one of the font dot matrix data as the reference point of the display point; The scaled font takes a corresponding point at the position corresponding to the reference point. When the point below the reference point is not displayed and the point at the bottom left of the reference point is displayed, the bottom left point of the corresponding point is displayed; When the upper point is not displayed and the upper left point of the reference point is displayed, the upper left point of the corresponding point is displayed; Repeat the above steps until the modification corresponding to all the display points is completed; and output the scaled font data to the device environment for display. 11. If the font scaling method of item 10 of the patent application scope is applied (please first Read the notes on the reverse side and fill in this I) This paper size is free from the Chinese National Standard (CNS > A4 size (210X297 mm)) Printed by the Central Consumers ’Bureau of the Ministry of Economic Affairs and Consumer Cooperatives 4〇β275 Α8 Β8 C8 D8 六2. Personal digital assistant system with patent application scope. 12. For example, the method for zooming in and out of item 10 of the patent application scope, wherein the steps of horizontal and vertical scaling of the above font are based on the adjacent display points in the dot matrix font. Based on the composed line segment, the line segment is scaled. 13. For example, the font scaling method for item 12 of the scope of the patent application, the method of enlarging the line segment, when the magnification dot matrix is less than 32x32 and the magnification is m, the length of the enlarged line segment = (the original line segment length-l) * m + l; If the length of the enlarged line segment is greater than (the original line segment length * m), then the enlarged line segment length = the original line segment length * m-1. 14. A font scaling device including at least: a font dot matrix database to store the font dot matrix database; a font control module to store and generate a font control code; a processing unit to perform font scaling operations and Processing of font display;-scaling the font storage device to record the scaled font data for access by the processing unit; and a display unit for generating display data controlled by the processing unit on the display unit. 15. For example, the font scaling device in the scope of patent application No. 14 further includes an input unit for setting the input font display "I --- ------- I- I!« N H.-_ 丁 HJ _1 ...... _ '^. * U3, " Lin \ {Please read the notes on the back before filling out this page) 18 This paper size is in Chinese National Standard (CNS) 4 210X297 mm) 408275 A8 B8 CS D8 6. The scope of patent application includes.包包 & ”The project form of the contracted construction of the font-building type of the capital font type 4 Application 1 should be recorded in the range ¾ Fan Yili, please apply for the capital 6 1 1 word Al t IL would like to request the application of a special application such as the word 17 Jianchuang, which is described above. The entry of the inscription of the inscribed body is stored in the machine. The machine 1 is read according to the description, and it is in the right position. It is the control of the body of the control system. Zifan and Yiliku are special materials for the application to apply for the array. If you click on the 18-body font, remember the model (please read the precautions on the back before filling this page). Save the deposit application body j word 19 to shrink it so that its installation is described above. The body is abbreviated, the body is recorded, and the words are stored in the machine. The fonts of the fonts of the body library are used in the fonts of the fonts. The CT-S contains as little as --L. The material font is 1 point and the font size should be in the range. Specially, please reduce the size of the font. · Deng Central Standards Bureau Male Workers 'Consumer Cooperatives should be printed in the package containing the package to' '' store f / installed in the second. Shrink P. The font information of the fonts in the font library. The array of 4: 1 fonts and the abbreviations around the fonts and symbols. Please refer to the figure and apply the 21-character characters to the text. Line 4 of the contracted font is placed. Fan Zhong ruj. Please refer to the application of Type I, 22 type, 9 paper sizes, applicable to China National Standards (CNS) A4 specifications (210X297 mm) ^ 08275 S D8 VI. Patent application scope Central Standards of the Ministry of Economic Affairs Printed by the Bureau's Consumer Cooperatives 23. If the font scaling device of item 22 of the patent application is applied, the portable processing system mentioned above includes at least a personal digital assistant processor. 24. For the font scaling device according to item 14 of the scope of patent application, the font scaling process performed by the processing unit described above includes at least the following steps: Read font dot matrix data from the font dot matrix database: Read equipment from the input unit The font display setting data in the environment; according to the font dot matrix data and the font display setting data, calculate the horizontal scaling ratio and vertical scaling ratio; perform the horizontal scaling and vertical scaling of the font; and modify the font after scaling, the modification process Increase and repair the display points for the breaks between the adjacent display points of the font. 25. For the font scaling device according to item 24 of the patent application, the horizontal and vertical scaling steps of the font described above are based on the line segments composed of adjacent display points in the dot matrix font. . 26. For example, the font scaling device of the scope of application for patent No. 25, wherein the above-mentioned line segment enlargement device, when the magnification dot matrix is less than 32x32 and the magnification is m, the length of the enlarged line segment = (the original line segment length-l) * m + l; if the length of the enlarged line segment is greater than (the original line segment length * m); then the enlarged line segment length = the original line segment length * ml. (Please read the notes on the back before filling in the bundle page.) This paper size is free to use the Chinese National Standard (CNS) A4 specification (210X297 mm) ABCD 408275 6. Application scope 27. If the scope of application for item 24 A font scaling device, in which the above-mentioned step of scaling font modification includes at least the following steps: taking a reference point as a display point in the font dot matrix data; taking a corresponding point at the position of the scaled font corresponding to the reference point ; When the lower point of the reference point is not displayed and the lower left point of the reference point is displayed, the lower left point of the corresponding point is displayed; when the upper point of the reference point is not displayed and the upper left point of the reference point is displayed , The upper left point of the corresponding point is displayed; repeat the above steps until the modification corresponding to all the displayed points is completed. -------- i ------, 1T ------ j * '(Please read the notes on the back before filling this page) Printed by the Shell Standard Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs The size of the paper used is Chinese National Standard (CNS) A4 (210X297 mm)
TW087119631A 1998-11-26 1998-11-26 Method and device for adjusting font sizes TW408275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW087119631A TW408275B (en) 1998-11-26 1998-11-26 Method and device for adjusting font sizes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW087119631A TW408275B (en) 1998-11-26 1998-11-26 Method and device for adjusting font sizes

Publications (1)

Publication Number Publication Date
TW408275B true TW408275B (en) 2000-10-11

Family

ID=21632093

Family Applications (1)

Application Number Title Priority Date Filing Date
TW087119631A TW408275B (en) 1998-11-26 1998-11-26 Method and device for adjusting font sizes

Country Status (1)

Country Link
TW (1) TW408275B (en)

Similar Documents

Publication Publication Date Title
US7982737B2 (en) System and method for independent font substitution of string characters
US4990903A (en) Method for storing Chinese character description information in a character generating apparatus
KR101030831B1 (en) Method and apparatus for providing foreign language text display when encoding is not available
CN101963954A (en) Method and device for displaying words
TW408275B (en) Method and device for adjusting font sizes
JPH07121539A (en) Machine translation system
TW542977B (en) Data sharing method for traditional and simplified Chinese input method
JPH0612548B2 (en) Document processor
GB2197102A (en) High resolution character generation
TW498224B (en) Real-time conversion system of traditional and simplified Chinese characters
JPS62111283A (en) Expansion pattern converter
JPS63282787A (en) Document editing apparatus
JPS63228194A (en) Holding of character font
JP3058181B2 (en) Character processing apparatus and method
JP3027834B2 (en) Document file name display
Al Ameen et al. Introducing vector segmented bangla font (fzvsbf) for small hand held devices
JPH03129518A (en) Character string display system
JPH0757097A (en) Document preparing device and image processing method
JPH02133863A (en) Document layout processor
JPH03174667A (en) Document processing system
JPH0421468A (en) Document processor
JPH01189691A (en) Image processor
JPH0262598A (en) Character processor
JP2000250517A (en) Device and method for character processing and storage medium stored with character processing program
JPS60132270A (en) Word processor

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent
MM4A Annulment or lapse of patent due to non-payment of fees