KR950004219B1 - Method and apparatus for font storage - Google Patents
Method and apparatus for font storage Download PDFInfo
- Publication number
- KR950004219B1 KR950004219B1 KR1019930001332A KR930001332A KR950004219B1 KR 950004219 B1 KR950004219 B1 KR 950004219B1 KR 1019930001332 A KR1019930001332 A KR 1019930001332A KR 930001332 A KR930001332 A KR 930001332A KR 950004219 B1 KR950004219 B1 KR 950004219B1
- Authority
- KR
- South Korea
- Prior art keywords
- font
- information
- rom
- coordinates
- appears
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/153—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using cathode-ray tubes
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
제1도는 "워"자로하는초성(ㅇ), 중성(ㅜ, 종성(ㅓ) 폰트예시도Figure 1 is an example of the initial, neutral, and final fonts called "Wo".
제2도는 본 발명의 실시예에 적용되는 시스템도2 is a system diagram applied to an embodiment of the present invention.
제3도는 본 발명에 따른 문자패턴 여백 제거흐름도3 is a text pattern margin removal flow chart according to the present invention.
제4도는 본 발명에 따른 문자패턴 조합 처리흐름도4 is a flow chart of character pattern combination processing according to the present invention.
본 발명은 조합형 폰트(Font) 롬(ROM; Read Only Memory)의 데이타 기록방법에 관한 것으로, 특히 폰트메모리의 단위 영역당 저장효율을 높이고 억세스속도를 향상시킬 수 있는 조합형 폰트의 저장 영역 개선방법 및 장치에 관한 것이다.The present invention relates to a data recording method of a font (Font) ROM (ROM), in particular a method for improving the storage area of the combination font to increase the storage efficiency and access speed per unit area of the font memory and Relates to a device.
일반적으로 폰트 메모리는 영어, 한국어 등등의 문자형태를 그대로 내장시켜 지정에 의해 리드되어 표시토록 되어 있다. 상기 폰트 메모리의 문자 기록 형태는 한글의 조합형인 경우 동일 자소라도 초성과 종성의 다른 형태로 기록되어 있다. 예를들어 "ㅇ"자라도 "워"자의 초성 "ㅇ"와, "행"자의 종성 "ㅇ"형태는 다른폰트 형태로 보관되어 있으며, "국"자의 초성 "ㄱ"과, 종성 "ㄱ"자의 형태도 달리 기록 되어 있음은 널리알려져 있다. 한편 문자의 초성, 중성, 종성 자소는 하나의 문자로 조합시 배치될 위치를 고려하여 소정영역과 형태를 달리하여 설계되어 있다.In general, the font memory is embedded in the form of English, Korean, etc. as it is, and is read and displayed by designation. The character recording form of the font memory is recorded in different forms of initial and final even in the same phoneme in the case of a combination of Korean characters. For example, the first letter "o" of "wo" and the last letter "o" of "row" are stored in different fonts, the first letter "a" of "national" and the last letter "a". It is widely known that forms are recorded differently. On the other hand, the initial, neutral, and final phonemes of letters are designed differently from predetermined areas in consideration of the positions to be arranged when combining them into one letter.
즉, 제 1 도의 예와 같이 초성 "ㅇ"와 중성 "ㅜ"와 종성"ㅓ"를 사용하여 "워"자로 조합될 수 있다. 이것이 조합의 예인네, 상기와 같이 조합을 위해서는 폰트롬에 초성, 중성, 종성별로 문자가 구분되고 조합형태에 맞게 내장되어 있다.That is, as in the example of FIG. 1, it may be combined into "war" using the initial "o", the neutral "tt" and the final "k". This is an example of the combination. For the combination as described above, the fonts are distinguished by the initial, neutral, and final species in the font-rom, and are built according to the combination type.
상기 초성, 중성, 종성 폰트롬의 내장형태는 제1도와 같으며, 한문자로 조합시 균형되게 배치되기 위해서는 "A,B"의 영역이 마련되어 있다. 따라서 한문자("워")의 해상도를 설정하는데 있어 가로를 "X"라 하고, 세로를 "Y"라 할때 상기 "워"자에서는 총 3XY의 영역을 차지하게 된다. 그러나 제1도예와 같이 초성, 중성, 증성 폰트롬의 상태를 볼때 조합시 균형을 맞추기 위해 "ㅇ"의 A,B, "ㅜ"의 A,B, "ㅓ"의 A를 차지하고 영역은 폰트롬의 전체영역을 낭비하는네 영향을 미쳐 메모리 기록용량에서 단위 영역당 데이타 기록 효율을 줄이는 문제점이 있었다.The built-in forms of the initial, neutral, and final fontroms are shown in FIG. 1, and the regions "A, B" are provided in order to be balanced when combined in one letter. Therefore, when setting the resolution of a single character ("WAR"), the horizontal "X" and the vertical "Y" occupy a total area of 3XY in the "WAR". However, in the case of the initial, neutral, and thick fontroms as shown in Fig. 1, in order to balance the combination, they occupy A, B of "ㅇ", A, B of "TT", and A of "ㅓ". There is a problem of reducing the data recording efficiency per unit area in the memory recording capacity by affecting four waste of the entire area.
따라서 본 발명의 목적은 폰트롬에 기록되는 문자패턴이 확보하는 영역을 줄여 데이타 저장 효율을 높이고 억세스에 있어 처리속도를 높일 수 있는 방법 및 장치를 제공함에 있다.Accordingly, an object of the present invention is to provide a method and apparatus for reducing the area secured by a character pattern recorded in a font ROM to increase data storage efficiency and to increase processing speed in access.
이하 본 발명을 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.
제2도는 본 발명에 따른 실시예 시스템도로서, 불필요한 문자패턴을 제거하고 억세스를 위한 프로그램데이타를 보관하고 있는 롬(ROM)(202)와, 상기 문자패던을 보관하고 있는 폰트롬(FROM)(204)과, 상기롬(ROM)(202)과 폰트롬(FROM)(204)으로부터 읽은 데이타를 일시적으로 보관하고 있는 램(RAM)(203)과, 상기 롬(202)상의 프로그램에 의해 램(203)에 보관된 폰트롬(204)의 문자패턴의 불필요한 영역을 제거하고 리드시 용이하도록 정보를 부가시켜 기록하고 상기 기록시 부여된 정보로부터 조합되도록 제어하는 중앙처리장치(CPU)(201)로 구성된다.2 is an exemplary system diagram according to the present invention, in which a ROM (202) storing program data for access and removing unnecessary character patterns, and a FontROM (FROM) storing the character pad ( 204, a RAM (203) that temporarily stores data read from the ROM (202) and the Font ROM (FROM) 204, and a RAM (program) on the ROM (202). To the central processing unit (CPU) 201 for removing unnecessary areas of the character pattern of the font ROM 204 stored in 203, adding and recording information for easy reading, and combining them from the information given at the time of recording. It is composed.
제3도는 본 발명에 따른 문자패턴 여백 제거흐름도로서, 문자패턴 비트맵 폰트 화일 리드모드에서 폰트정보 및 압축폰트 화일 리드 모드인가를 체킹하는 제 1 단계와, 상기 제 1 단계에서 리드모드일때 오프셋FFSET)을 초기화 상대로 하고 상기 문자패턴의 비트맵 폰트를 풀어 2차원 배열여백과 패턴이 구분되도록 기록하는 제 2 단계와, 상기 제 2 단계에서 2차원 배열값으로부터 패턴으로 되는 값이 나타나는 좌표를 구하고 상기 좌표로부터 문자패턴이 차지하는 영역을 산출하는 제 3 단계와, 상기 제 3 단계에서의 폰트 영역산출값을 비트맵으로 변환하여 압축 폰트화일로 하여 상기 산출정보와 함께 기록하는 제 4 단계로 이루어진다.3 is a character pattern margin elimination flow chart according to the present invention, comprising: a first step of checking font information and compression font file read mode in a character pattern bitmap font file read mode; and an offset FFSET when the read mode is used in the first step. ) And the bitmap font of the character pattern is solved and recorded so that the two-dimensional array margin and the pattern are distinguished, and in the second step, the coordinates in which the value of the pattern appears from the two-dimensional array value are obtained. A third step of calculating an area occupied by the character pattern from coordinates; and a fourth step of converting the font area calculation value in the third step into a bitmap and recording it with the calculation information as a compressed font file.
제 4 도는 본 발명에 따른 문자패턴 조합 처리흐름도로서, 압축폰트 및 폰트정보 화일이 리드모드일때 폰트정보 화일의 각 자소에 대한 폰트 영역산출 정보를 읽는 제 l 과정과, 상기 제 1 과정에서 입력된 문자열의 두바이트를 읽어 각 자소의 분리여부를 체킹하고 폰트정보 테이블로부터 상기 폰트정보와 참조하여 각 자소별 폰트를 읽어 이미지 배열에 저장하는 제 2 과정과, 상기 이미지 배열에 대해 초성, 중성, 종성의 각 이미지 배열을 비트 논리합하여 문자로 조합하는 제 3 과정과, 상기 제 3 과정의 문자로 조합된 이미지를 출력하는 제 4 과정으로 이루어진다.4 is a flow chart of a character pattern combination process according to the present invention, comprising: a first step of reading font area calculation information for each element of a font information file when the compressed font and the font information file are in the read mode; A second process of reading two bytes of a string to check whether each phoneme is separated, and reading the font for each phoneme by referring to the font information and the font information from a font information table, and storing it in an image array; And a fourth process of bitwise ORing each of the image arrays into a character, and outputting an image combined with the character of the third process.
따라서 본 발명의 구체적 일실시예를 제 l 도-제 4 도를 참조하여 상세히 설명하면, 중앙처리장치(CPU)(201)는 롬(202)으로부터 시스템 제어 프로그램 및 제3,4도와 같이 기본폰트 패턴 해상도로서 불필요한 영역을 제거하고 신속한 억세스를 위한 프로그램 데이타를 램(203)에 보관하고,(301,303)과정에서 폰트롬(204)의 비트맵 폰트화일 및 압축폰트화일을 읽을 수 있는 모드인가를 체킹한다. 상기 (301,302)과정에서 리드모드일때 오프셋(OFFSET)을 초기화상태(0)로 한다. 이어서 (305)과정에서 상기 폰트롬(204)에서 기본폰트 전해상도(3XY)의 값을 읽어 램(203)에 기록하되, 제1도와 같이 2차원 배열로 여백이 되는 "0"과 패턴의 영역인 "1"의 형태로 변환하여 기록한다. 상기 "1"이 나타나는 좌표를 (309)과정에서 구한다.Therefore, a specific embodiment of the present invention will be described in detail with reference to FIGS. 1 through 4, where the central processing unit (CPU) 201 is a system control program from the ROM 202 and a basic font as shown in FIGS. 3 and 4. Remove unnecessary areas as the pattern resolution and store program data in the RAM 203 for quick access, and check whether the bitmap font file and the compressed font file of the font ROM 204 can be read in steps 301 and 303. do. In the read mode (301, 302), the offset OFFSET is set to the initialization state (0). Subsequently, in step 305, the value of the basic font electrolytic resolution 3XY is read from the font ROM 204 and recorded in the RAM 203, and as shown in FIG. Record the conversion in the form of "1". The coordinate at which "1" appears is obtained in step 309.
제 1 도와 같이 위에서 아래로 스캔하여 첫 "1"이 나타나는 곳 즉 "Y"의 좌표(Yl)와, 아래에서 위로 스캔하여 첫 "1"이 나타나는 곳의 "Y"좌표(Y2)와, 왼쪽에서 오른쪽으로 스캔하여 첫 "1"이 나타나는 곳의 X솨표(X1)와, 오른쪽에서 왼쪽으로 스캔하여 첫 "1"이 나타나는 곳의 X좌표(X2)를 구한다.As shown in the first diagram, the coordinates (Yl) of the "Y" where the first "1" appears by scanning from the top and bottom, the "Y" coordinates (Y2) where the first "1" appears by scanning from the bottom, and the left Scan X to the right where X is the first "1", and scan X to the right where X is the first "1".
상기 (309)과정의 좌표(X1-X2, Y1-Y2)로부터 (311)과정에서 시작점(S)(S←X1, Yl) 문자패턴 실영역(C, D; C←X2-X1, D←Y2-YI)과 오프셋(OFFSET) (OFFSET←OFFSET+(D+1) * (C/8+1)를 구한다. 그리고 (313)과정에서 상기 (311)과정에서 구한 X1-X2, Y1-Y2값을 비트맵으로 변환하고 이를 (315)과정에서 압축폰트파일로 만들어 램(203)에 기록하고 (317)과정에서 상기 S,C,D,OFFSET를 폰트정보화일로 저장한다. 따라서 상기 과정을 전폰트에 의해 실행할때 C,D에 대한 정보와 시작점(S)을 기준으로 기록하므로 기록폰트 해상도로부터 A,B영역을 할 수 있어 기록영역을 상기 각 폰트 기본 해상도의 제거한 영역9A,B)만큼 절약할 수 있다.Character pattern real area (C, D; C ← X2-X1, D ←) from the coordinates (X1-X2, Y1-Y2) of step (309) to starting point (S) (S ← X1, Yl) in step (311). Y2-YI) and the offset (OFFSET) (OFFSET ← OFFSET + (D + 1) * (C / 8 + 1) are obtained, and the X1-X2 and Y1-Y2 values obtained in step (311) in step (313). Is converted into a bitmap, and it is made into a compressed font file in step 315 and recorded in RAM 203, and in step 317, the S, C, D, and OFFSET are stored as a font information file. When executed by the font, C and D information is recorded based on the starting point (S), so the A and B areas can be made from the recording font resolution, thus saving the recording area by the removed areas 9A and B of the respective font native resolutions. can do.
제4도는 제3도의 처리에 의해 기록된 폰트화일과 정보로부터 조합을 위한 흐름도로서, (401)과정에서 상기 압축화일, 폰트정보 화일이 리드모드인가를 체킹하여 리드모드일때 (403)과정에서 폰트정보 화일이 각자소의 S,C,D,OFFSET를 폰트정보로부터 리드한다. 그리고 (405)과정에서 입력된 문자열 두바이트를 읽어 각 자소로 분리 여부를 체킹한다. 상기 (405)과정에서 자소가 분리되었을때 상기 폰트정보 테이블의 S,C,D,OFFSET를 참조하여 각 자소별 폰트를 읽어 이미지 배열에 따라 기록한다.FIG. 4 is a flowchart for combining from the font file and information recorded by the process of FIG. 3, and checks whether the compressed file and the font information file are in the read mode in step 401. The information file reads S, C, D, and OFFSET from the font information. In operation 405, two bytes of the input string are read, and each character is checked for separation. When the phoneme is separated in step 405, the font for each phoneme is read with reference to S, C, D, and OFFSET of the font information table and recorded according to the image arrangement.
상기 저장값으로부터 (409)과정에서 초성, 중성, 종성의 각 이미지 배열에 따라 비트로 논리 조합하여 글자 이미지로 결합한다. 상기 (409)과정에서 결합한 것을 (411)과정에서 조합 이미지로 출력하여 문자열 끝까지 실행한다.In step 409, the stored values are logically combined into bits according to the respective image arrangements of the initial, neutral, and final characters, and combined into a character image. What is combined in step 409 is output as a combination image in step 411 and executed to the end of the string.
따라서 종래의 제 1 도와 같이 X,Y영역에서 A,B영역을 모두 읽지 않고 시작점(S)값으로부터 C,D영역값만 읽어 처리하므로 처리속도가 빨라지고 일정영역에 단위 영역당 더 많은 폰트를 기록할 수 있게 된다.Therefore, as in the first diagram of the related art, only the C and D area values are read from the starting point (S) value without reading all the A and B areas in the X and Y areas, so that the processing speed is increased and more fonts are recorded per unit area in a certain area. You can do it.
상술한 바와같이 각 기본 해상도의 폰트상의 조합 배치를 위해 마련된 영역(A,B)을 삭제하고 대신에 각자소의 위치할 시작점(S)위치 및 저장된 가로, 세로크기(C,D)만 별도표에 의해 관리하므로 폰트 메모리의사이즈를 줄일 수 있고 처리속도도 필요한 부분만 처리하므로 속도를 높일 수 있는 이점이 있다.As described above, the areas A and B provided for the combination arrangement on the font of each native resolution are deleted, and instead, only the starting point S positions and the stored horizontal and vertical sizes C and D are placed in separate tables. Since it manages by the size of the font memory can be reduced and the processing speed also processes only the necessary parts, there is an advantage to increase the speed.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019930001332A KR950004219B1 (en) | 1993-02-01 | 1993-02-01 | Method and apparatus for font storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019930001332A KR950004219B1 (en) | 1993-02-01 | 1993-02-01 | Method and apparatus for font storage |
Publications (2)
Publication Number | Publication Date |
---|---|
KR940020207A KR940020207A (en) | 1994-09-15 |
KR950004219B1 true KR950004219B1 (en) | 1995-04-27 |
Family
ID=19350261
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019930001332A KR950004219B1 (en) | 1993-02-01 | 1993-02-01 | Method and apparatus for font storage |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR950004219B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100392819B1 (en) * | 2001-09-17 | 2003-07-28 | 삼성에스디에스 주식회사 | Method and apparatus for generating and storing Font Rom |
-
1993
- 1993-02-01 KR KR1019930001332A patent/KR950004219B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR940020207A (en) | 1994-09-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4899394A (en) | Apparatus and method for image compression | |
JP3086702B2 (en) | Method for identifying text or line figure and digital processing system | |
JPS58212251A (en) | Method of editing dot pattern | |
US4990903A (en) | Method for storing Chinese character description information in a character generating apparatus | |
JPS5936778B2 (en) | data printing device | |
JP2008108114A (en) | Document processor and document processing method | |
JP2740335B2 (en) | Table reader with automatic cell attribute determination function | |
US5018883A (en) | Vector font processing in a printing device | |
KR950004219B1 (en) | Method and apparatus for font storage | |
JP2000322417A (en) | Device and method for filing image and storage medium | |
CA2250557C (en) | Image recognition through localized interpretation | |
JPH04502526A (en) | image recognition | |
US5307424A (en) | Character recognition system | |
JPH02208716A (en) | Character and pattern output device | |
JP3072126B2 (en) | Method and apparatus for identifying typeface | |
JP2626011B2 (en) | Drawing reading processing method | |
JP2644778B2 (en) | Character generator | |
JPH0596811A (en) | Printing method | |
JP2623292B2 (en) | How to create dictionary data | |
JPS6054708B2 (en) | Handwritten character/figure recognition device | |
KR930001472B1 (en) | Korean character font's data press method using bit pattern | |
JPS63282787A (en) | Document editing apparatus | |
JP2006331180A (en) | Method for recognizing document | |
JPS63204486A (en) | Character input device | |
JPH0647958A (en) | Vertical writing control system in printer and device therefor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20080306 Year of fee payment: 14 |
|
LAPS | Lapse due to unpaid annual fee |