TW412691B - Method realizing fast display of italic font character with shift operation - Google Patents

Method realizing fast display of italic font character with shift operation Download PDF

Info

Publication number
TW412691B
TW412691B TW086118558A TW86118558A TW412691B TW 412691 B TW412691 B TW 412691B TW 086118558 A TW086118558 A TW 086118558A TW 86118558 A TW86118558 A TW 86118558A TW 412691 B TW412691 B TW 412691B
Authority
TW
Taiwan
Prior art keywords
font
shift
italic
patent application
character
Prior art date
Application number
TW086118558A
Other languages
Chinese (zh)
Inventor
Huai-Yan Chen
Jian-Wu Jang
Wei-Guo Wu
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 TW086118558A priority Critical patent/TW412691B/en
Application granted granted Critical
Publication of TW412691B publication Critical patent/TW412691B/en

Links

Abstract

A method has fast display of italic font character with shift operation. It can be applied to hand-hold computer (HPC) or personal computer (PC). Firstly read the shift sequence in accordance with the angle of italic font character based on the angle of the italic font character. After user specifies the character string to be processed, then read out the dot matrix from the standard font library with respect to each character of the string and proceed horizontal shift to generate a set of dot matrices of italic font characters for each row of the dot matrix in terms of each shift item in the shift sequence. At last, the dot matrices of the italic font characters can be displayed on screen directly.

Description

412691 at __ B7 經濟部中央橾準局貝工消费合作社印聚 五、發明説明(1 ) 本發明係有關於一種在個人電猫(personal computer, PC)或疋手持式個人電膜(handheld personal computer, HPC)上實現斜體字顯示的方法,特別是在不使用額外記 憶艘錯存預設之斜體字型的情況下,能夠利用移位運 算’將各種的字型、囷標,依據使用者所設定之斜體角 度’進行斜體字的顯示。由於不需要佔用過多的記憶體 來错存各種不同的斜體字型、因此提昇記憶體的使用效 率並且加快了顯示查詢的速度。 目前傳統的PC或是HPC裝置中,大都是利用預先 設定好的字型字庫來進行顯示。一般除了標準的字型庫 之外’系統都會提供某些特殊變形的字型庫,以豐富字 型顯示的效果,最常見的變形字型即為斜體字。在系統 要顯示出某些文字或圖標的斜體字時,即會搜尋對應的 字型庫’找出所需要的斜體字型,再透過顯示系統顯示 在榮幕上》 習知技術中利用斜體字型庫來處理斜體字顯示的方 式’的確有其便利性,因為系統可以利用現有的字型庫 來完成斜體字的顯示。不過在實際應用上,習知技術對 於斜艘字的處理,卻存在有相當多的缺點β 習知技術最主要的缺點是必須佔用相當大的記憶空 間。在PC應用上,各種字型庫(包括斜體字型庫)會在系 統載入時’由硬碟裝置上載至主記憶體上,因此便佔用 到主記憶體的空間;而在HPC應用上,一般則是記錄在 _讀記憶艘(Read Only Memory,ROM)中,因此便會佔據 —JI\I----衣· (諳先間讀背面之注意事項再填寫本頁) 訂 本紙張尺度適用中國國家橾半(CNS ) A4规格(210X297公釐) 412691 A7-B7 五、發明説明(2 ) — IΓ1-"ϋζ 一衣— I (諳先閲讀背面之注意事項再填寫本頁) 系統ROM中的記憶空間。另—方面,各種字型庫實際 是利用點矩陣(dot matrix)來表示,所有資料量是相當龐 大°以中文字型為例,如果是以16x15字型顯示時’每 個中文字型(或是中文斜體字型)就需要16χ15=24〇(位 元)’即30個位元組(byte)的資料量。對於六千常用中文 子而S ’就需要30x6000=180k的位元組記憶空間。如 果再考慮到各種不同的字型及圖標時,此一資料量破實 不少。因此,習知斜體字顯示方式的最大缺點,就是必 須佔用龐大的記憶體空間。 '^. 經濟部中央橾準局負工消費合作社印製 另外,由於習知技術中是利用現有的字型庫來顯示 斜體字’因此也會產生顯示效果上的問題β最明顯的是 由於每個字型都是由預先設定好的斜體字型來顯示,敌 '以相鄰的中文字、英文字、圖標等不能夠重疊,另外各 種斜體字型都是採用矩形顯示範圍,所以表示的效果不 是很自然。特別是在某些比較複雜字形的大角度傾斜情 況下’此種情況更是明顯。另外’目前.大多數的PC和 HPC系統中,都會限定各中文字、英文字或圓標(及其 斜體字)的顯示,都必須在8或8的倍數點上,這也降低 了使用者在應用上的靈活性。 因此’如果能夠在不使用字型庫的情況下顯示斜體 字’自然可以降低系統記憶空間的佔用比例,也可以解 決大部分習知技術在顯示效果上的缺點。不過此一新方 法的前提是’處理步驟必須非常單純,才不致於增加系 統顯示上的負擄,同時處理步驟必須充分符合一般數位 本紙張尺度通用中國國家標準(CNS ) Α4说格(210X297公釐} A7- B7 經濟部中央標準局貝工消費合作社印製 五、發明説明(3 ) 資料處理的模式,如此才更容易應用在PC或是Hpc的 領域上。 有鑑於此,本發明的主要目的,在於提供一種實現 斜體字快速顯示之方法,能夠在不使用斜體字型庫的情 況’產生所需要的斜體字顯示效果〇因此,不需要額外 的記憶空間來健存斜想字型庫,也可以達到所需要的顯 示效果》 4 本發明的另一目的,在於提供一種實現斜體字快速 顯示之方法,能夠運用單純的數位移位運算,來達到斜 體字顯示的效果。由於運用單純數位移位運算來實現斜 體字效果,因此顯示的字型不受限於一般字型的範圍, 所以能夠展現更自然的斜體字效果。同時,由於實際執 行的運算相當單純,因此並不會造成系統顯示上的負 擔。 根據上述的目的,本發明提供一種利用移位運算實 現斜體字快速顯示之方法,可適用於HpC或是pc中, 首先在系統中必須具有標準字型庫,用來提供待處理的 標準字型。接著,根據一斜體字角度,讀取出對應於此 斜體字角度之移位序列。在使用者指定待處理之字串 後,則將字串中每個字元的字型點矩陣從標準字型庫中 讀取出來,再根據移位序列的每一移位項目,將字型點 矩陣的每一列進行橫向移位,產生一組斜體字型點矩 陣β最後便可直接將斜體字型點矩陣顯示在螢幕上。 IJI.J----1- ------訂------哝 (請先閲讀背面之注意事項再填寫本頁) 經濟部中央標準局員工消費合作社印製 412691 A, B7 五、發明説明(4 ) 圖式之簡單說明: 為使本發明之上述目的、特徵和優點能更明顯易 僅,下文特舉一較佳實施例,並配合所附圖式,作詳細 說明如下: 第1圊表示在本發明實施例的手持式個人電腦(HPC) 設備中之硬體方塊架構圖。 第2圖表示本實施例中>斤採用之斜體字處理移位表 格之示意圖。 第3圖表示本實施例中實現斜體字快速顯示之處理 流程圖。 第4A圖至第4E圖分別表示利用本實施例進行斜 體字處理中的標準字型、右斜30度、左斜30度、右斜 45度和左斜45度之字型點陣圖。 第5A圖和第5B圖分別表示習知技術和本發明在 處理連續字體顯示情況下之字體點陣圖之一例。 符號說明: 10-CPU ; 20〜鍵盤;30~外接介面卡;40-LCD顯 示幕;50〜LCD顯示幕;70〜ROM ; 80〜RAM。 實施例: 本發明所採用之斜體字快速顯示方法,主要是利用 字型點矩陣的平移移位運算來達到斜體字顯示的效果。 以下以一實施例說明本發明之内容。在以下實施例中, ---------I- ------訂------嗥 _ * - - - (請先閱讀背面之注意事項再填寫本頁〕 本紙張尺度適用中國國家標準(CNS ) A4規格(210><297公釐) 412691 A7- 經濟部中央標準局貝工消費合作社印聚 B7五、發明説明(5 ) 是以手持式個人電腦(HPC)之機型為例來說明,這是因 為HPC受限於體積之緣故,一般無法提供非常大的記憶 空間以供使用,因此在使用本實施例所提供的斜體字快 速顯示方法來處理字型顯示時,記憶空間使用效率可以 得到非常明顯的改善。另外,本發明是利用單純的數位 處理技術來實現斜體字的顯示,因此系統本身必須至少 提供一組標準(無傾斜)的字‘庫,做為處理的基準。以 下,即就本實施例的HPC硬體部分以及實現本發明之斜 體字顯示軟艎部分,分述如下。 第1圖表示本實施例中HPC的硬體方塊架構圖。 如圖所示,HPC 中包括 CPU(Central Processing Unit,中 央處理器)1〇、鍵盤20、外接介面卡30、LCD(liquid crystal display,液晶顯示)顯示幕40、LCD驅動器50、ROM 70 和 RAM(random access memory,隨機存取記憶體)80。 CPU 10做為HPC的處理中心,用來控制HPC内其他的 元件,並用來處理各種應用程式。鍵盤20是用來提供 使用者輸入資料及下達指令。外接介面卡30則是用來 擴充HPC的資料功能。至於ROM 70和RAM 80則是分 別用來儲存HPC的固定資料(如字型庫、作業系統程式 等等)以及暫時性資料(如使用者資料)。使用者在操作 HPC時,則可透過LCD顯示幕40獲得所需的訊息,而 一般LCD顯示幕40是由專屬的LCD驅動器50來加以 驅動顯示。在本實施例中,HPC系統本身必須提供標準 字塑點陣圖庫,而此字型庫則可以儲存於ROM 70中。 fill.-----i------訂------嗖 1 (請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS > A4規格(:21〇Χ297公釐) 412691 π ^__ 五·、發明说明(6 ) 當CPU 10執行斜體字型的顯示時,則由ROM 70中讀 取對應的標準字型點陣圖,經處理之後產生對應的斜體 字型點陣圖,暫存於RAM 80中,再透過一般的顯示程 序•經由LCD驅動器50,將斜體字型點陣圖顯示在LCD 顯示幕40上。基於上述HPC之硬體架構,以下則就實 際處理斜體字之程序加以說明。 經濟部中央標準局員工消费合作社印製 (請先閱讀背面之注意事項再填寫本頁) 在本實施例所要處理的‘字型點陣圓為16x15的字 型,然而本發明亦可適用於其他類型的字型,如24x24 字型。本實施例中所揭露之斜艎字顯示方法,是將標準 字型點陣圖中的各列(共16列),依據一既定的傾斜角 度’進行橫向平移的處理。因此,在系統的ROM 70中, 必須先儲存好不同傾斜角度時,各列所做的平移點數。 在本實施例中,不同傾斜角度下各列平移點數的資料, 是集中儲存於一移位表格中》第2圓表示本實施例中所 採用之斜體字處理移位表格之示意囷。如圖所示,移位 表格中包含數組移位序列,分別對應於.「標準」、「右斜 30度」、「左斜30度」、「右斜45度j和「左斜45度」》 每一組移位序列則包含16個移位項目,分別對應於字 型點陣囷的16個列》以右斜30度的移位序列來說,(7、 7)表示字型點陣圓的最頂兩列,均往右移7個點,(6、 則表示再下來的兩個列,是往右移6個點,其餘依此類 推。再以左斜30度的移位序列來說,(0、0)表示字型點 陣囷的最頂兩均不移動,而(1、1)則表示再下來的兩個 列’往右移1個點’其餘依此類推。另外在右斜45度 Θ 本紙張尺度適{CNS) 加⑽ 一 -- 經濟部中央標準局貝工消費合作社印裝 412691 Ar _____B7 五'發明説明(7) 和左斜45度的情況下,則是依據相同的方式處理。由 上述可知,第2圈所示的各移位序列,都是將點陣圖之 各列往右移位進行處理,因此移位運算變得非常單純。 另外必須注意的是’第2圖僅例示某些斜體字角度的情 況,但並非限定本發明,在其他不同的傾斜角度情況下, 亦可選擇出其他對應的移位序列來達成。使用者可以選 擇自已所要達成的變形,按“第2順例示的方法,產生 相應的移位表格數據,本發明根據使用者提供的數據顯 不其所需的變形。 另外’在第2圖所示之移位表格,可以適用於16χ15 字型的情況。如果是在24x24字型的情況下,每個移位 序列就必須包含24個移位項目,分別對應於該字型點 陣圓的24個列。 根據第2囷所示之移位表格,以下說明本實施例中 實現斜體字快速顯示之處理流程,如第3圖所示。首先, 根據使用者所設定的斜體字角度,由第2圖的移位表格 中讀取對應的移位序列(步驟S1)e接著,讀取待轉換之 字串(步驟S2)。此字串中可以是單一的字,或是數個字 所組成的文字串列《讀取該字串後,即計算該字串的長 度,設定為LEN,並且設定另一個處理字變數a(步驟 S3)。處理字變數a的初始值為丨,在處理整個字串的過 程中,處理字變數A會隨著目前所處理的字而遞增。 在完成上述的初始處理之後,則開始進行實際的斜 體字轉換。首先,從標準字型庫中,讀取第A個字的標 9 本紙張尺度制tgjs家標?M CNS) A视--------- I-:丨丨,----i- ------訂------嘖1 - I (請先閲讀背面之注Jt.$項再填寫本頁) 412691 Μ-Β7 五、發明綱(8 ) ' -- 準宇型點矩陣至記憶體中(㈣S4)。接著根據步称Μ 所讀入的移位序列’對於讀人的標準字型點矩陣的每一 列,進行對應的橫向平移(步驟S5卜如前所述本實施 例中的各移位序列,都是依據同一方向平移(右移)而設 定。完成平移處理後,即可將平移後的點矩陣寫入記憶 體的斜體字型點矩陣中(步驟S6p如果A;tLEN(步^ S7),表示目刖子串尚未處理完成,因此將處理字變數a 累加1(步驟S8),回到步驟S4繼續處理。如果a=len, 表示該字串已經處理完畢’因此便可以將斜體字型點陣 圓依據一般的顯示程序,輸出到LCD顯示幕上(步驟 S9),完成斜體字的顯示。 經由第3圖之處理步驟後,便可在使用者指定的字 串上’顯示出斜體字型。第4A圖至第4E囷分別表示標 準字型、以及利用本實施例進行斜體字處理中後的右斜 30度、左斜30度、右斜45度和左斜45度之字型點陣 圖。如圖所示,標準字型的點矩陣為16x15(第4A圖), 而右斜30度(第4B圖)和左斜30度(第4C圖)的情況下, 整個斜體字即擴增為16x22,而在右斜45度(第4D圖) 和左斜45度(第4E圓)的情況下,整個斜體字則擴增為 16x30。實際上,如果以兩個連績字進行斜體字型處理 時,由於不受限於個別字型的範圍,因此字型的點區域 會可以重疊,而顯示的效果也比較自然。第5A囷和第5B 圖分別表示習知技術和本發明在處理連續字體顯示情況 下之字體點陣囷之一例β在第5A圖中,由於習知技術 本紙張尺度適用中國國家標準(CNS ) Α4规格(2丨ΟΧ297公釐) (請先聞讀背面之注意事項再填寫本頁) 訂 經濟部中央標準局員工消費合作社印聚 412691412691 at __ B7 Printed by the Central Laboratories of the Ministry of Economic Affairs, Shellfish Consumer Cooperative, V. Description of the Invention (1) The present invention relates to a personal computer (PC) or a handheld personal computer. , HPC) to realize the italic font display method, especially without using an extra memory boat to stagger the preset italic font, you can use the shift operation to convert various fonts and fonts according to the use The angle of italics set by the user is displayed in italics. Since there is no need to occupy too much memory to stagger various different italic fonts, the efficiency of memory usage is improved and the display query speed is accelerated. At present, most conventional PC or HPC devices use a preset font library for display. Generally, in addition to the standard font library, the system will provide some special deformed font libraries to enrich the effect of font display. The most common deformed font is italics. When the system wants to display the italics of certain text or icons, it will search the corresponding font library 'to find the required italic font, and then display it on the glory screen through the display system. The italic font library's way to handle italic font display does have its convenience, because the system can use the existing font library to complete the italic font display. However, in practical applications, the conventional technology has a number of shortcomings in the processing of oblique ship characters. The main shortcoming of the conventional technology is that it must occupy a considerable memory space. In PC applications, various font libraries (including italic font libraries) will be 'uploaded' from the hard disk device to the main memory when the system is loaded, so it will take up space in the main memory; while in HPC applications , Generally recorded in _Read Memory (Read Only Memory, ROM), so it will occupy —JI \ I ---- 衣 · (谙 Please read the precautions on the back before filling this page) Dimensions are applicable to China National Standard Half (CNS) A4 (210X297 mm) 412691 A7-B7 V. Description of the invention (2) — IΓ1- " ϋζ Iyi — I (谙 Please read the precautions on the back before filling this page) Memory space in system ROM. On the other hand, various font libraries are actually represented by a dot matrix, and the amount of data is quite large. Taking Chinese characters as an example, if displayed in a 16x15 font, each Chinese character (or It is a Chinese italic font), which requires 16 × 15 = 24〇 (bits) ', that is, 30 bytes of data. For six thousand commonly used Chinese words, S ′ requires 30x6000 = 180k bytes of memory space. If you consider the different fonts and icons again, this amount of data is quite substantial. Therefore, the biggest disadvantage of the conventional italic display method is that it must occupy a large amount of memory space. '^. Printed by the Consumers ’Cooperative of the Central Bureau of Standards and Commerce of the Ministry of Economic Affairs In addition, because the conventional fonts are used to display italic characters in conventional technology, it also causes problems in the display effect. Β is most obvious because Each font is displayed by a preset italic font. The enemy's adjacent Chinese characters, English characters, and icons cannot overlap. In addition, all italic fonts use a rectangular display range, so The effect of the presentation is not very natural. Especially in the case of large angle tilt of some relatively complex glyphs, this situation is even more obvious. In addition, at present, in most PC and HPC systems, the display of Chinese characters, English characters, or round labels (and italics) must be limited to 8 or multiples of 8, which also reduces the use of Flexibility in application. Therefore, 'if it is possible to display italics without using a font library' can naturally reduce the occupation ratio of the system's memory space, and can also solve the shortcomings of most conventional technologies in the display effect. However, the premise of this new method is that the processing steps must be very simple, so as not to increase the burden on the system display. At the same time, the processing steps must fully comply with the general Chinese national standard (CNS) of standard digital paper sizes. } A7- B7 Printed by the Shellfish Consumer Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs V. Invention Description (3) The data processing mode, so that it can be more easily applied to the field of PC or Hpc. In view of this, the main features of the present invention The purpose is to provide a method for realizing fast display of italics, which can produce the required italic display effect without using italic font library. Therefore, no additional memory space is needed to preserve italic characters. The type library can also achieve the desired display effect. [4] Another object of the present invention is to provide a method for quickly displaying italic characters, which can use a simple number shift operation to achieve the effect of displaying italic characters. Because the italic font effect is implemented using a simple number shift operation, the displayed font is not limited to the range of general fonts, so it can Show more natural italics. At the same time, because the actual operation is quite simple, it will not cause a burden on the system display. According to the above-mentioned object, the present invention provides a shift operation to achieve fast display of italics. The method can be applied to HpC or PC. First, there must be a standard font library in the system to provide the standard font to be processed. Then, according to an italic font angle, read out the corresponding italic font. Angle shift sequence. After the user specifies the string to be processed, the character point matrix of each character in the string is read from the standard font library, and then according to each shift of the shift sequence Bit item, horizontally shift each column of the font dot matrix to generate a set of italic font dot matrix β. Finally, the italic font dot matrix can be directly displayed on the screen. IJI.J ---- 1 ------- Order ------ 哝 (Please read the notes on the back before filling out this page) Printed by the Staff Consumer Cooperative of the Central Bureau of Standards, Ministry of Economic Affairs 412691 A, B7 V. Description of Invention (4) Figure Brief description of the formula: In order to make the above purpose of the present invention Features and advantages can be more obvious and easy. The following is a detailed description of a preferred embodiment and the accompanying drawings. The first one is shown in a handheld personal computer (HPC) device according to an embodiment of the present invention. The block diagram of the hardware block. Figure 2 shows the schematic diagram of the italics processing shift table used in this embodiment. Figure 3 shows the processing flowchart for realizing fast display of italics in this embodiment. Figures 4A to 4E respectively show the standard fonts, italic 30 degrees, left italic 30 degrees, right italic 45 degrees, and left italic bitmaps in the italicized word processing using this embodiment. Figures 5A and 5B show an example of the font bitmap of the conventional technology and the present invention in the case of continuous font display. Symbol description: 10-CPU; 20 ~ keyboard; 30 ~ external interface card; 40-LCD display Screen; 50 ~ LCD display screen; 70 ~ ROM; 80 ~ RAM. Embodiment: The fast display method of italics used in the present invention mainly uses the translation shift operation of the font point matrix to achieve the effect of displaying italics. The following describes the content of the present invention with an embodiment. In the following examples, --------- I- ------ Order ------ 嗥 _ *---(Please read the notes on the back before filling this page) This The paper size applies the Chinese National Standard (CNS) A4 specification (210 > < 297 mm) 412691 A7- Printed by BJ Consumers Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs B7. 5. Description of the invention (5) is a handheld personal computer (HPC ) Model as an example to explain. This is because HPC is limited by volume and generally cannot provide a very large memory space for use. Therefore, the italicized fast display method provided in this embodiment is used to process words. When the display is displayed, the efficiency of using memory space can be significantly improved. In addition, the present invention uses a simple digital processing technology to display italic characters, so the system itself must provide at least a set of standard (non-tilted) characters. The library is used as a reference for processing. The following describes the hardware part of the HPC of this embodiment and the italicized display soft palate part of the present invention, which are described below. Figure 1 shows the hardware block of the HPC in this embodiment. Architecture diagram: As shown in the figure, HPC includes CPU (Central Processing Unit, central processing unit) 10, keyboard 20, external interface card 30, LCD (liquid crystal display) display 40, LCD driver 50, ROM 70, and random access memory (RAM) Memory) 80. CPU 10 is used as the processing center of the HPC to control other components in the HPC and to process various applications. The keyboard 20 is used to provide user input data and give instructions. The external interface card 30 is It is used to expand the data function of HPC. As for ROM 70 and RAM 80, it is used to store fixed data (such as font library, operating system programs, etc.) and temporary data (such as user data) of HPC. When operating the HPC, the required information can be obtained through the LCD display screen 40, and the general LCD display screen 40 is driven and displayed by a dedicated LCD driver 50. In this embodiment, the HPC system itself must provide standard characters Array library, and this font library can be stored in ROM 70. fill .----- i ------ Order ------ 嗖 1 (Please read the precautions on the back before filling in this Page) This paper size applies to China National Standards (CNS > A4 specifications (: 21 × 297 mm) 412691 π ^ __ V. Description of the invention (6) When the CPU 10 performs italic display, the corresponding standard is read from the ROM 70 Font bitmap. After processing, the corresponding italic font bitmap is temporarily stored in the RAM 80, and then displayed through the general display program. • Through the LCD driver 50, the italic font dotmap is displayed on the LCD. Display screen 40. Based on the hardware architecture of the above HPC, the following describes the procedure for actually processing italics. Printed by the Consumers 'Cooperative of the Central Standards Bureau of the Ministry of Economic Affairs (please read the notes on the back before filling this page) The' font dot matrix circle to be processed in this example is a 16x15 font, however, the present invention can also be applied to other Type of font, such as 24x24 font. The oblique character display method disclosed in this embodiment is a process of horizontally translating each column (a total of 16 columns) in a standard font bitmap according to a predetermined inclination angle '. Therefore, in the ROM 70 of the system, the number of translation points made by each column when different tilt angles must be stored first. In this embodiment, the data of the translation points of each column under different tilt angles are collectively stored in a shift table. The second circle represents the schematic diagram of the italicized word processing shift table used in this embodiment. As shown in the figure, the shift table contains an array shift sequence, which corresponds to "standard", "30 degrees to the right", "30 degrees to the left", "45 degrees to the right j" and "45 degrees to the left" 》 Each set of shift sequences contains 16 shift items, corresponding to the 16 columns of the font lattice 囷 ”For a shift sequence inclined 30 degrees to the right, (7, 7) represents the font lattice The top two columns of the circle are shifted to the right by 7 points, (6, means the next two columns are shifted to the right by 6 points, and so on. The shift sequence is shifted by 30 degrees to the left In other words, (0, 0) means that the top two of the font lattice 囷 do not move, and (1, 1) means that the next two columns 'shift 1 point to the right', and so on. 45 ° to the right Θ This paper scale is suitable for {CNS) plus one-printed by the Central Bureau of Standards of the Ministry of Economy, printed by the Bayer Consumer Cooperative 412691 Ar _____B7 Five 'Invention Note (7) and 45 ° to the left, then Follow the same procedure. As can be seen from the above, each shift sequence shown in the second circle is processed by shifting each column of the bitmap to the right, so the shift operation becomes very simple. It must also be noted that FIG. 2 only illustrates the case of certain italic characters, but it is not a limitation of the present invention. In the case of other different tilt angles, other corresponding shift sequences can also be selected to achieve. The user can choose the deformation he wants to achieve, and generate the corresponding shift table data according to the "second sequence" method. The present invention does not show the required deformation according to the data provided by the user. In addition, The shift table shown in the figure can be applied to the case of 16x15 fonts. In the case of 24x24 fonts, each shift sequence must contain 24 shift items, corresponding to the 24 of the font's dot matrix circle. According to the shift table shown in Section 2 (a), the following describes the processing flow for achieving fast display of italics in this embodiment, as shown in Figure 3. First, according to the angle of italics set by the user, The corresponding shift sequence is read from the shift table in FIG. 2 (step S1) e, and then the string to be converted is read (step S2). This string can be a single word or several words The composed text string "After reading the string, calculate the length of the string, set it to LEN, and set another processing word variable a (step S3). The initial value of the processing word variable a is 丨, in Handle word variables while processing the entire string A will increase with the word currently being processed. After completing the initial processing described above, the actual italic type conversion will begin. First, from the standard font library, read the standard 9 papers of the A word. Scale system tgjs home standard? M CNS) A view --------- I-: 丨 丨, ---- i- ------ order -------- 啧 1-I ( Please read the Note Jt. $ On the back before filling this page) 412691 Μ-Β7 V. Outline of Invention (8) '-Zhunyu-type point matrix into the memory (㈣S4). Then read in according to the step M For each column of the standard glyph point matrix that reads a person, a corresponding horizontal translation is performed (step S5. As described above, each shift sequence in this embodiment is translated in the same direction (right shift ). After the translation process is completed, the translated point matrix can be written into the italicized point matrix of the memory (step S6p if A; tLEN (step ^ S7), indicating that the target substring has not been processed yet) Therefore, the processing word variable a is accumulated by 1 (step S8), and processing is returned to step S4. If a = len, it means that the string has been processed, so the italicized dot matrix circle can be based on The normal display program is output to the LCD screen (step S9), and the display of italics is completed. After the processing steps in FIG. 3, the italics font can be displayed on the string specified by the user. Figures 4A to 4E 囷 show the standard fonts, and the diagonal dot matrix of 30 ° to the right, 30 ° to the left, 45 ° to the right, and 45 ° to the left after performing italic processing in this embodiment. Figure. As shown in the figure, the dot matrix of the standard font is 16x15 (Figure 4A), and in the case of a 30-degree oblique right (Figure 4B) and a 30-degree oblique left (Figure 4C), the entire italic font is Amplification is 16x22, and in the case of a 45-degree oblique right (Figure 4D) and a 45-degree oblique left (circle 4E), the entire italic font is expanded to 16x30. In fact, if italicized fonts are processed with two consecutive words, since they are not limited to the range of individual fonts, the dot areas of the fonts can overlap, and the display effect is more natural. Figures 5A and 5B respectively show an example of the conventional technology and the font dot matrix of the present invention in the case of processing continuous font display. In Figure 5A, due to the conventional technology, the Chinese paper standard (CNS) applies to this paper scale. Α4 specification (2 丨 〇 × 297mm) (Please read the precautions on the back before filling out this page) Order the Central Consumers Bureau of the Ministry of Economy Staff Consumer Cooperatives Printed Poly 412691

AT B7__ 五、發明説明(9 ) 是以字型庫中的斜體字點陣圖為單位來顯示連續斜體字 型,所以呈現較不自然的顯示效果;另外,在第5B圖 中’由於本發明是以移位運算來處理斜體字,因此字型 顯示並不限於矩形的字型點陣圖,相鄰的字型則呈部分 重疊的狀態’顯示的效果也比較自然。由此可知,本發 明所採用的斜體字顯示方法,確實優於習知技術。 本發明利用移位運算實斜體字快速顯示之方法, 具有下列之優點: 1*不需要佔用斜體字型的記憶空間,因此整個系 統的記憶體使用效率可以提昇《此一優點對於記憶體空 間較少的機型’如HPC,即具有非常明顯的改善效果。 2·移位運算處理相當單純,因此實際進行斜體字 型顯示時,並不會造成系統太多的負擔。 3·斜體字型的顯示比較自然,而且不會受限於預 設的斜體字型,因此可以在依意位置上,呈現連續性的 斜體字。 本發明雖以一較佳實施例揭露如上,然其並非用以 限定本發明,任何熟習此項技藝者,在不脫離本發明之 精神和範圍内,當可做些許的更動與潤飾,因此本發明 之保護範圍當視後附之申請專利範圍所界定者為準。 11 m尺度適用;國國家標準{ CNS ) Α4規格(2丨0X297公釐) (諳先閱讀背面之注意事項再填寫本頁) 衣- 訂 經濟部中央標準局貝工消費合作社印衷AT B7__ 5. Description of the Invention (9) The italic font is used to display the continuous italic font in the font library as a unit, so it displays a less natural display effect. In addition, in Figure 5B ' In the present invention, italic characters are processed by a shift operation. Therefore, font display is not limited to a rectangular font bitmap, and adjacent fonts are partially overlapped. The display effect is also relatively natural. It can be seen that the italic display method used in the present invention is indeed superior to the conventional technique. The present invention uses a shift operation to quickly display italic fonts, which has the following advantages: 1 * It does not need to occupy the italic font memory space, so the memory usage efficiency of the entire system can be improved. Models with less space, such as HPC, have very significant improvements. 2. The shift calculation process is quite simple, so it does not cause too much load on the system when displaying italic fonts. 3. The display of italic font is more natural, and it is not limited to the preset italic font. Therefore, it can display continuous italic font in the desired position. Although the present invention is disclosed as above with a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art can make some modifications and retouches without departing from the spirit and scope of the present invention. The scope of protection of the invention shall be determined by the scope of the attached patent application. 11 m scale applicable; National Standard {CNS) A4 specification (2 丨 0X297 mm) (谙 Please read the precautions on the back before filling this page) Clothing-Order

Claims (1)

412691 DS 、申請專利範圍 可實現斜_速顯示之方法, 1冑子裝置中,該電子裝置具有-標準字型庫 以及顯不用之螢幕,其包括下列步辟·· 移位序根ΓΓ斜體字角度,讀取—對應於該斜體字角度之 選擇一字串,該字串包含至少一字元; 根據該字串所包含之每*一字元,由該標準字型庫中 讀取气應之至少一字型點矩陣; ‘據該移位序列’依序對讀取之每—字型點矩阵之 每一列進行橫向移位,產生一斜體字型點矩陣;以及 顯示該斜體字型點矩陣於該顯示系統之螢幕上。 2,如申請專利範圍第i項所述之方法,其中該移位 序列係由一移位表格中讀取,該移位表格中包含複數資 料序列,分別對應於斜體字角度。 3·如申請專利範圍第2項所述之方法,其中該移位 表格所包含之該等資料序列,包括對應於斜逋字角度為 左斜30。、左斜45。、〇度、右斜45。、右斜30。之資料序 列。 閲 面 注 I 項 再 訂 線 經濟部中夾梯率局負工消费合作社印製 4·如申請專利範圍第1項所述之方法,其中橫向平 移該字型點矩陣之步驟中,係依相同方向進行平移處 理Ρ 5·如申請專利範圍第1項所述之方法,其中該字型 點矩陣為一 16x15之點矩陣,並且該移位序列共有 個移位項目》 12 本紙張尺度埯用中國國家橾牟(CNS ) Α4規格(210X297公釐} 412691 A8 B8. C8 D8 申請專利範園 6.如申請專利㈣第丨項所述之方法, 點矩陣為-24x24之點矩陣,並且該移位序列共^ % 個移位項目。 ' (請先聞讀背面之注意事項再填寫本頁) 7·如申請專利範圍第1項所述之方法,其中該電子 裝置係為手持式個人電腦(HPC)設備。 8.如申請專利範圍第1項所述之方法,其中該電子 裝置係為個人電腦(PC)設備1 13 本纸張纽制ts®家梯率(CNS >八4胁< 210X297公嫠>412691 DS, the scope of patent application can realize the method of oblique speed display. In a device, the electronic device has a standard font library and a screen that is not used. It includes the following steps: Shifting the sequence root ΓΓ Italic Character angle, read—select a character string corresponding to the italic character angle, the character string contains at least one character; according to each * character included in the character string, read from the standard font library Qi Ying's at least one font-type dot matrix; 'According to the shift sequence', sequentially shift each column of each font-point matrix read to generate an italic font-point matrix; and display the diagonal The font dot matrix is on the screen of the display system. 2. The method as described in item i of the patent application range, wherein the shift sequence is read from a shift table, the shift table contains a plurality of data sequences, which respectively correspond to italicized angles. 3. The method as described in item 2 of the scope of patent application, wherein the sequence of data included in the shift table includes a left-slant angle of 30 corresponding to the oblique 逋 character. , Left oblique 45. , 0 degrees, 45 degrees to the right. , Right slant 30. Sequence of data. See note I. Reorder line Printed by the Ministry of Economic Affairs, Gap Bureau, Consumer Work Cooperatives 4. The method described in item 1 of the scope of patent application, where the step of horizontally translating the glyph point matrix is in the same direction Perform translation processing P 5 · The method as described in the first item of the patent application scope, wherein the font point matrix is a 16x15 point matrix, and the shift sequence has a total of shift items.橾 MU (CNS) A4 specification (210X297 mm) 412691 A8 B8. C8 D8 patent application park 6. As described in the patent application No. 丨, the point matrix is a -24x24 point matrix, and the shift sequence A total of ^% shift items. '(Please read the notes on the back before filling out this page) 7. The method described in item 1 of the scope of patent application, where the electronic device is a handheld personal computer (HPC) 8. The method as described in item 1 of the scope of patent application, wherein the electronic device is a personal computer (PC) device. 1 13 paper-made ts® home gradient (CNS > Ya4waki < 210X297 Gong >
TW086118558A 1997-12-09 1997-12-09 Method realizing fast display of italic font character with shift operation TW412691B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW086118558A TW412691B (en) 1997-12-09 1997-12-09 Method realizing fast display of italic font character with shift operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW086118558A TW412691B (en) 1997-12-09 1997-12-09 Method realizing fast display of italic font character with shift operation

Publications (1)

Publication Number Publication Date
TW412691B true TW412691B (en) 2000-11-21

Family

ID=21627387

Family Applications (1)

Application Number Title Priority Date Filing Date
TW086118558A TW412691B (en) 1997-12-09 1997-12-09 Method realizing fast display of italic font character with shift operation

Country Status (1)

Country Link
TW (1) TW412691B (en)

Similar Documents

Publication Publication Date Title
JPH0469794B2 (en)
TW412691B (en) Method realizing fast display of italic font character with shift operation
JPS6329291B2 (en)
JPS6359188B2 (en)
JP2744371B2 (en) Input character display method using enlarged characters
JPS6327727B2 (en)
JPS59214893A (en) Character font reduction system
JPS62111283A (en) Expansion pattern converter
JPS60188981A (en) Scale factor conversion system for character data
JP2548129B2 (en) Text input device
JP3027834B2 (en) Document file name display
JP2642350B2 (en) Display control device
JPH0816908B2 (en) Character processing device and character processing method
JPH10149358A (en) Character display device and recording medium
JPH10187130A (en) Display control device, display control method, and electronic equipment with display control function
JPH0565899B2 (en)
JPS62220991A (en) Character processor
JPS6327950A (en) Display control system
JPS622290A (en) Character processor
JPH0612405A (en) Character converter
JPS61198279A (en) Cursor display system
JPS5981687A (en) Display
JPH0594538A (en) Method for forming graph
JPH031271A (en) Automatic setting method for indent character
JPS60108886A (en) Character processor

Legal Events

Date Code Title Description
GD4A Issue of patent certificate for granted invention patent