KR20030024154A - Method and apparatus for generating and storing Font Rom - Google Patents

Method and apparatus for generating and storing Font Rom Download PDF

Info

Publication number
KR20030024154A
KR20030024154A KR1020010057174A KR20010057174A KR20030024154A KR 20030024154 A KR20030024154 A KR 20030024154A KR 1020010057174 A KR1020010057174 A KR 1020010057174A KR 20010057174 A KR20010057174 A KR 20010057174A KR 20030024154 A KR20030024154 A KR 20030024154A
Authority
KR
South Korea
Prior art keywords
font
code
fonts
unit
rom
Prior art date
Application number
KR1020010057174A
Other languages
Korean (ko)
Other versions
KR100392819B1 (en
Inventor
김주현
Original Assignee
삼성에스디에스 주식회사
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 삼성에스디에스 주식회사 filed Critical 삼성에스디에스 주식회사
Priority to KR10-2001-0057174A priority Critical patent/KR100392819B1/en
Publication of KR20030024154A publication Critical patent/KR20030024154A/en
Application granted granted Critical
Publication of KR100392819B1 publication Critical patent/KR100392819B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

PURPOSE: A method and device for generating, storing and reading a font ROM are provided to find out a specific font without modifying a searching software in case that fonts are stored in a pair unit and the font is outputted by adding the information data. CONSTITUTION: An indexing part(603) is loaded when a system having the font ROM is started. An interface part(601) receives a font code requested by an external device and sends it to a controller(607). A total data storage(613) stores the first discriminator discriminating a pair number and each pair of the font. The controller(607) sends a previously defined value to an output part(605) by receiving a code of the font or reads the inputted code. If the inputted code is an ASCII(American Standard Code for Information Interchange) code and a range of the inputted code is included in the range of the value stored in the first code storage(603), the controller(607) reads the necessary font by using a physical address of the font pair stored in a start position storage(653) and a pixel size stored in a size storage(643).

Description

폰트 롬 생성저장 및 독출방법과 그 장치{Method and apparatus for generating and storing Font Rom}Method and apparatus for generating and storing Font Rom

본 발명은 복수의 폰트들 또는 그림으로 구성되는 폰트 롬을 생성하고 저장하는 데이터구조와 그 생성 및 저장방법 그리고 그 장치를 제공하는데 있다.The present invention provides a data structure for generating and storing a font ROM composed of a plurality of fonts or pictures, a method for generating and storing the same, and an apparatus thereof.

영수증발행기나 POS단말기와 같이 폰트 롬을 구비하고 저장된 폰트를 사용하여 LCD와 같은 화면표시장치에 현시하거나, 사용자에게 그 처리내역을 전달하기위한 장치에서 종래의 경우에는 그 장치에 사용되는 폰트롬과 폰트 검색 소프트웨어가 일대일로 대응되는 구조를 가지고 있다.In the case of a device having a font ROM, such as a receipt machine or a POS terminal, using a stored font to display on a display device such as an LCD, or to convey the processing details to a user, the font ROM used in the conventional device and Font retrieval software has a one-to-one correspondence.

구체적으로 도 2를 참조하여 설명한다. 도 2는 종래의 폰트 롬의 구성을 보인 것이다. 도 2를 보면 알 수 있듯이 종래의 폰트 롬은 한 벌의 폰트별로 단순하게 저장된다. 따라서 폰트를 출력하기 위해서 폰트 롬 이미지데이터의 시작점을 찾아주는 검색소프트웨어로 원하는 폰트의 위치를 찾은 후, 하나의 폰트에 해당하는 크기만큼을 폰트 롬 이미지데이터에서 복사를 해오게된다. 즉 이와 같이 폰트 롬을 구성하게 되면 각 벌 마다의 폰트의 위치가 폰트 검색 소프트웨어에 고정되어 있어야한다. 검색 소프트웨어는 들어온 코드에 따라 해당하는 폰트의 위치를 알아내고, 이 것을 근거로 폰트를 가져오게 된다.Specifically, this will be described with reference to FIG. 2. 2 shows the structure of a conventional font ROM. As can be seen from Figure 2, the conventional font ROM is simply stored for each font of a set. Therefore, in order to print the font, the search software that finds the starting point of the font ROM image data finds the position of the desired font, and copies the size corresponding to one font from the font ROM image data. In other words, when the font ROM is constructed as described above, the font position of each bee must be fixed in the font search software. The search software locates the corresponding font based on the code that comes in and retrieves the font based on it.

즉 이와 같이 특정의 폰트들로 이루어진 폰트 롬을 구성하는 경우에 그 폰트롬내의 각 폰트의 위치가 폰트 검색소프트웨어에 고정되어 있어야 한다. 이 경우 검색 소프트웨어는 들어온 코드(예를들면 KS완성형의 코드)에 따라 해당하는 폰트의 위치를 알아내고, 이것을 근거로 하여 폰트를 독출하여 출력하게 된다.That is, when constituting a font ROM composed of specific fonts as described above, the position of each font in the font ROM should be fixed to the font search software. In this case, the search software finds the position of the corresponding font according to the code (for example, the KS completion type code), and reads the font based on this.

그러나 이러한 종래의 구성하에서는 상이한 언어권에서 사용할 목적으로 수출을 한다든지 사용할 폰트의 종류를 바꾸는 경우가 발생하는 경우에는 검색소프트웨어도 같이 개발하여야하는 문제점이 있다.However, in such a conventional configuration, when a case of exporting or changing the type of font to be used for use in different language areas occurs, there is a problem that a search software must be developed together.

본 발명이 이루고자 하는 기술적 과제는 폰트들을 한 벌 단위로 저장하고 정보데이터를 부가하여 폰트를 출력할 경우에 검색소프트웨어의 수정이 없이도 그 특정폰트를 찾아낼 수 있는 폰트 롬 데이터구조를 제공하는 데 있다.An object of the present invention is to provide a font ROM data structure that can find a particular font without modifying the search software in the case of storing the fonts in a unit and adding information data to output the fonts. .

본 발명이 이루고자 하는 다른 기술적 과제는 상기의 폰트 롬을 생성하고 저장하는 방법을 제공하는 데 있다.Another object of the present invention is to provide a method for generating and storing the font ROM.

본 발명이 이루고자 하는 또 다른 기술적 과제는 상기의 폰트 롬에 저장되어 있는 정보데이터를 이용하여 출력할 폰트가 속해 있는 한 벌의 폰트의 위치정보와 그 폰트의 픽셀크기정보를 이용하여 출력하는 폰트 롬 독출방법을 제공하는데 있다.Another technical problem to be achieved by the present invention is a font ROM to be output by using the position information of a set of fonts belonging to the font to be output using the information data stored in the font ROM and the pixel size information of the font. To provide a reading method.

본 발명이 이루고자 하는 또 다른 기술적 과제는 폰트를 데이터화하여 관련 정보와 함께 저장하여 폰트 롬을 형성하고 특정 폰트를 독출하는 장치를 제공하는데 있다.Another object of the present invention is to provide an apparatus for forming a font ROM and reading a specific font by converting the font into data and storing the font with related information.

도 1a는 폰트 롬 이미지를 픽셀단위로 구성하는 예를 보인 것이다.1A shows an example of configuring a font ROM image in pixels.

도 1b는 도 1a에 의하여 생성된 폰트 롬 이미지가 디지털데이터로 변환되는 것을 보인 것이다.FIG. 1B shows that the font ROM image generated by FIG. 1A is converted into digital data.

도 1c는 도1b에 의하여 생성된 데이터를 바이트단위로 구분하는 것을 보인 것이다.FIG. 1C illustrates that the data generated by FIG. 1B is divided into bytes.

도 2는 종래의 폰트 롬의 구성을 보인 것이다.2 shows the structure of a conventional font ROM.

도 3a는 본 발명에 의한 폰트 롬의 구성을 보인 것이다.Figure 3a shows the configuration of the font ROM according to the present invention.

도 3b는 도 3a의 정보데이터의 상세구성을 보인 것이다.FIG. 3B shows a detailed configuration of the information data of FIG. 3A.

도 3c는 도 3a의 폰트 롬 구성에 있어서, 여러 벌의 폰트가 포함될 때의 구성을 보인 것이다.FIG. 3C illustrates the configuration when a plurality of fonts are included in the font ROM configuration of FIG. 3A.

도 3d는 도 3a 및 도 3c의 폰트 롬 이미지 데이터의 메모리구성을 보인 것이다.FIG. 3D shows a memory configuration of the font ROM image data of FIGS. 3A and 3C.

도 4는 본 발명에 의한 폰트 롬을 생성하고 저장하는 흐름을 보인 흐름도이다.4 is a flowchart illustrating a flow of generating and storing a font ROM according to the present invention.

도 5는 본 발명에 의한 폰트 롬에서 폰트를 독출하는 방법을 보인 흐름도이다.5 is a flowchart illustrating a method of reading a font from a font ROM according to the present invention.

도 6은 본 발명에 의한 폰트 롬 독출장치의 블록도이다.6 is a block diagram of a font ROM reading apparatus according to the present invention.

상기의 기술적 과제를 이루기 위하여 본 발명에 의한 폰트 롬 데이터구조는 복수의 폰트가 한 벌 단위로 저장되는 폰트 롬 이미지 데이터; 상기 폰트 롬 이미지데이터내에서 특정의 폰트를 독출하기 위하여 필요한 소정의 정보를 포함하는 정보데이터;를 포함하는 것을 특징으로 한다.In order to achieve the above technical problem, the font ROM data structure according to the present invention comprises: font ROM image data in which a plurality of fonts are stored in a suit unit; And information data including predetermined information necessary to read a specific font in the font ROM image data.

본 발명의 바람직한 실시예는 설명의 중복을 피하기 위하여 본 발명의 또 다른 바람직한 실시예인 폰트 롬 생성저장 방법과 함께 설명하기로 한다.A preferred embodiment of the present invention will be described together with a font ROM generation and storage method which is another preferred embodiment of the present invention in order to avoid duplication of description.

상기의 다른 기술적 과제를 이루기 위하여 본 발명에 의한 폰트 롬 생성 및 저장방법은 복수의 폰트를 생성하는 단계; 상기 폰트의 특성을 색인화하여 한 벌 단위로 구분해서 저장하는 단계;를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method of generating and storing a font ROM, the method comprising: generating a plurality of fonts; Indexing the characteristics of the font and classifying and storing in a suit unit; characterized in that it comprises a.

상기의 또 다른 기술적 과제를 이루기 위하여 본 발명에 의한 폰트 롬 독출방법은 상기 독출될 폰트 롬을 구비하는 단계; 출력할 폰트가 포함된 한 벌의 폰트를 구별하는 제1식별자가 있는 지 판단하는 단계; 상기 제1식별자가 있는 경우에 상기 입력되는 코드와 상기 한 벌의 폰트의 코드범위를 비교하여 상기 폰트를 출력하는 단계;를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method of reading a font ROM, including: providing a font ROM to be read; Determining whether there is a first identifier for distinguishing a set of fonts including a font to be output; And comparing the input code with a code range of the set of fonts when the first identifier is present, and outputting the fonts.

본 발명의 바람직한 일 실시예는 설명의 중복을 피하기 위하여 또 다른 실시예인 폰트 롬 저장 및 독출장치와 함께 설명하기로 한다.A preferred embodiment of the present invention will be described with another embodiment of the font ROM storage and reading device in order to avoid duplication of description.

상기의 또 다른 기술적 과제를 이루기 위하여 본 발명에 의한 폰트 롬 저장 및 독출장치는 외부 장치와 연결되어 출력이 요구되는 폰트의 코드를 수신하는 인터페이스부; 상기 한 벌의 폰트의 특성정보를 생성하고 저장한 후 상기 인터페이스부에서 송신되는 상기 코드를 입력받아 출력이 가능한 폰트인지를 판단하여 출력여부를 결정하는 색인부; 상기 색인부에서 판단하는 상기 출력 폰트의 위치정보에 따라 상기 폰트 롬에 저장된 폰트를 독출하여 출력하는 출력부를 포함하는 것을 특징으로 한다.In accordance with another aspect of the present invention, there is provided an apparatus for storing and reading font ROMs, including: an interface unit connected to an external device to receive a code of a font required for output; An indexing unit for generating and storing characteristic information of the font and determining whether or not the font is output by receiving the code transmitted from the interface unit and determining whether the font is outputable; And an output unit configured to read and output the font stored in the font ROM according to the position information of the output font determined by the index unit.

이하에서, 첨부된 도면을 참조하여 본 발명의 바람직한 실시예에 대하여 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail a preferred embodiment of the present invention.

도 1a는 폰트 롬 이미지를 픽셀단위로 구성하는 예를 보인 것이고, 도 1b는 도 1a에 의하여 생성된 폰트 롬 이미지가 디지털데이터로 변환되는 것을 보인 것이며, 도 1c는 도1b에 의하여 생성된 데이터를 바이트단위로 구분하는 것을 보인 것이다.FIG. 1A illustrates an example of configuring a font ROM image in pixel units. FIG. 1B illustrates converting the font ROM image generated by FIG. 1A into digital data. FIG. 1C illustrates the data generated by FIG. 1B. It shows the division by byte unit.

도 1a를 보면 하나의 폰트가 가로 M개(M은 양의 정수), 세로 N개(N은 양의 정수)의 픽셀로 구성되는 것을 알 수 있다. 즉 최대 M*N 개의 픽셀로 표현될 수 있다. 폰트를 데이터화하기 위하여 스캔을 하게 되는데, 이 때 폰트가 점유하는 픽셀은 예를 들면 1, 빈 공간은 0의 배열을 갖는 데이터로 표현이 되게 된다(도 1b). 도 1b와 같은 데이터를 8개 단위로 묶어서 도 1c와 같이 바이트단위(8비트)로 표시하여주면, 하나의 폰트에 대한 폰트 롬 이미지데이터가 형성이 된다(401단계). 이러한 폰트 롬 이미지데이터를 원하는 폰트의 종류 및 갯수로 한 벌단위로 생성하여 저장하게된다.Referring to FIG. 1A, it can be seen that one font is composed of pixels horizontally (M is a positive integer) and vertically N (N is a positive integer). That is, it may be represented by up to M * N pixels. Scanning is performed to data the font, where the pixels occupied by the font are represented as data having an array of 1, for example, and an empty space of 0 (FIG. 1B). When the data shown in FIG. 1B is bundled into eight units and displayed in byte units (8 bits) as shown in FIG. 1C, font ROM image data for one font is formed (step 401). Such font ROM image data is generated and stored in a unit of a desired font type and number.

도 3a내지 3d는 본 발명에 의한 폰트 롬(300)의 구성과 정보데이터(301)의 상세구성을 보인 것이며 도 4는 도 3a내지 도3d의 폰트 롬을 생성하고 저장하는 방법을 보이는 흐름도이다.3A to 3D show the configuration of the font ROM 300 and the detailed configuration of the information data 301 according to the present invention, and FIG. 4 is a flowchart showing a method of generating and storing the font ROM of FIGS. 3A to 3D.

본 발명에 의한 폰트 롬은 한 벌로만 구성할 수도 있고(도 3a, 3b), 복수의 벌로(도 3c,3d) 구성이 될 수도 있다. 여러 벌로 구성되는 경우를 예로써 설명하도록 한다. 복수로 구성될 경우(305)에는 폰트 롬(300)에 저장되는 폰트의 벌 수와 각 벌을 구분하는 제1식별자를 가지는 총량데이터가 부가되며 각 벌별로 정보데이터가 형성되며 도 3d에 도시한 시작위치를 찾아 원하는 폰트를 출력한다. 도 3a, 3b는 폰트가 한 벌인 경우이고, 도 3a, 3c는 폰트의 벌 수가 복수인 경우이다. 즉 한 벌의 폰트로 구성이 되는 경우가 300의 데이터구조이며 이 때에는 총량데이터가 불필요하며 정보데이터는 단지 한 벌의 폰트의 특성만을 저장하면된다. 복수의 폰트로 구성이 되는 경우의 데이터구조가 305이다. 여러 벌의 폰트로 구성이 되는 경우에는 정보데이터(301)가 각 벌의 폰트를 나타내는 복수의 정보데이터로 표현이 된다. 폰트 롬(300)은 정보데이터(301)와 폰트 롬 이미지 데이터(303)로 크게 구분되어 저장된다. 이 때 폰트 롬 이미지의 생성은 위에서 설명한 방법에 의하여 형성된다(401단계). 정보데이터(301)의 구성을 상세하게 설명하도록 한다. 먼저 몇 벌의 폰트로 구성되는 지를 나타내는 총량데이터와 그 폰트가 문자인지 그림인지를 구별시켜주는 종류식별자(311)가 지정되고 저장되며 한 벌의 폰트를 구성하는 폰트가 문자폰트인 경우에는 문자폰트의 총갯수, 문자폰트가 아닌 그림의 경우에는 하나의 그림으로 한 벌의 폰트가 형성되므로 1이 폰트/그림갯수(321)로 저장된다(403단계).The font ROM according to the present invention may be composed of only one suit (FIGS. 3A and 3B) or may be composed of a plurality of suits (FIGS. 3C and 3D). The case of multiple sets will be described as an example. When composed of a plurality (305), the total amount data having the number of bees of the font stored in the font ROM 300 and the first identifier for distinguishing each bee is added, and the information data is formed for each bee, as shown in Figure 3d Find the start position and print the desired font. 3A and 3B show a case where a font is one suit, and FIGS. 3A and 3C show a case where there are a plurality of fonts. In other words, the data structure includes 300 fonts in which case a total amount of data is unnecessary, and the information data only needs to store the characteristics of a font. The data structure in the case of a plurality of fonts is 305. When composed of a plurality of fonts, the information data 301 is represented by a plurality of information data representing the fonts of each set. The font ROM 300 is largely divided into information data 301 and font ROM image data 303. At this time, generation of the font ROM image is formed by the method described above (step 401). The configuration of the information data 301 will be described in detail. First, a total amount of data indicating how many fonts are composed and a type identifier 311 that distinguishes whether the font is a character or a picture are specified and stored. When the font constituting a set of fonts is a font of characters, the font is a font. In the case of the total number of non-character fonts, a set of fonts are formed as one picture, so 1 is stored as the number of fonts / pictures 321 (step 403).

그리고 폰트가 형성될 수 있는 픽셀의 크기데이터(위의 예에서 M*N개)가 저장된다(405단계). 한편 저장되는 한 벌의 폰트의 물리적인 위치정보(예를 들면 시작번지, 341)를 생성하고, 폰트 롬의 버전(351)을 저장한다(407단계). 마지막으로 저장되는 한 벌단위의 폰트들의 코드범위(예를들면 한글폰트가 한 벌로 저장되는 경우에 제1코드는 0xB0에서 0xC8까지, 제2코드는 0xA0에서 0xFF까지)가 저장되는데(409단계), 일반적으로 그 코드범위는 두개의 바이트로 구성이 되므로 각각 제1코드시작(361)과 제1코드종료(371), 그리고 제2코드시작(381)과 제2코드종료(391)값으로 저장된다. 그러나 입력되는 코드가 아스키코드인 경우에는 제1코드시작(361)과 제1코드종료(371)만으로 범위가 정해지게된다. 이 코드범위는 국제규격의 코드값이 저장된다. 즉 아스키코드인 경우의 제1코드범위는 0x40 에서 0x5F 그리고 0xA0 에서 0xBF 까지이다. 이와 같은 정보데이터와 실제 폰트 롬 이미지데이터가 일체가 되어 폰트 롬을 형성하게된다(411단계).The size data (M * N in the above example) of the pixel in which the font may be formed is stored (step 405). On the other hand, physical location information (for example, start address 341) of a set of stored fonts is generated, and a version 351 of the font ROM is stored (step 407). Lastly, the code range of the fonts stored in a unit of a unit (for example, when a Korean font is stored as a set of fonts, the first code is 0xB0 to 0xC8 and the second code is 0xA0 to 0xFF) is stored (step 409). In general, since the code range is composed of two bytes, the first code start 361 and the first code end 371, and the second code start 381 and the second code end 391 are stored. do. However, if the input code is an ASCII code, the range is determined only by the first code start 361 and the first code end 371. This code range stores the code values of international standards. That is, in the case of ASCII code, the first code range is 0x40 to 0x5F and 0xA0 to 0xBF. The information data and the actual font ROM image data are integrated to form a font ROM (step 411).

본 발명의 또 다른 실시예인 폰트 롬 독출방법 및 그 장치를 설명한다.A method of reading a font ROM and a device thereof according to still another embodiment of the present invention are described.

도 5는 본 발명에 의한 폰트 롬에서 폰트를 독출하는 방법을 보인 흐름도이며, 도 6은 본 발명에 의한 폰트 롬 저장 및 독출장치의 블록도이다.5 is a flowchart illustrating a method of reading a font from a font ROM according to the present invention, and FIG. 6 is a block diagram of a font ROM storage and reading apparatus according to the present invention.

먼저 폰트 롬이 장착된 시스템이 구동되면 색인부(603)가 로딩된다 (501단계). 인터페이스부(601)는 외부 장치에서 요구하는 폰트의 코드를 수신하여 제어부(607)로 보내준다. 한편 색인부(603)는 도 6에 도시된 바와 같은 세부 블럭으로 구성된다. 총량데이터저장부(613)는 폰트 롬 이미지데이터에 저장되는 폰트의 벌 수와 각 벌을 구분하는 제1식별자를 저장한다. 제어부(607)는 상기 폰트의 코드를 수신하여 총량데이터저장부(613)에서 저장하고 있던 제1식별자와 비교하여 그 폰트가 속한 한 벌의 폰트가 있는지를 판단하여(503단계), 만약에 없으면 사전에정의된 값을 출력부(605)에 보내게 되고, 있으면 입력되는 코드가 아스키코드인지를 판단한다(505단계). 아스키코드의 코드범위는 1바이트로만 이루어지기때문에 제2코드저장부(673)에 저장된 값은 불필요하게된다. 또한 제어부(607)는 입력코드의 범위가 제1코드저장부(663)에 저장된 값의 범위에 속하는 지를 판단한다(507단계). 만약에 속하면 출력부는(605)는 시작위치저장부(653)에 저장하고 있던 한 벌의 폰트의 물리적인 주소와 크기장부(643)에 저장되어 있던 픽셀크기를 이용하여 필요한 폰트를 읽어내게 된다(513,515단계).이 513단계와 515단계의 설명은 중복을 피하기 위하여 아래에서 하도록 한다.First, when the system equipped with the font ROM is driven, the index unit 603 is loaded (step 501). The interface unit 601 receives a code of a font requested by an external device and sends it to the controller 607. On the other hand, the index unit 603 is composed of detailed blocks as shown in FIG. The total amount data storage unit 613 stores the number of fonts stored in the font ROM image data and a first identifier for distinguishing each of the fonts. The controller 607 receives the code of the font and compares it with the first identifier stored in the total amount data storage 613 to determine whether there is a set of fonts to which the font belongs (step 503). The predefined value is sent to the output unit 605, and if it is determined whether the input code is an ASCII code (step 505). Since the code range of the ASCII code is only 1 byte, the value stored in the second code storage section 673 becomes unnecessary. In addition, the controller 607 determines whether the range of the input code falls within the range of values stored in the first code storage unit 663 (step 507). If it belongs, the output unit 605 reads out the necessary fonts using the physical address of the pair of fonts stored in the start position storage unit 653 and the pixel size stored in the size book 643. The descriptions of steps 513 and 515 are given below to avoid duplication.

입력코드가 아스키코드가 아닌 경우에는 2바이트로 이루어지기 때문에 제어부(607)는 입력코드가 제2코드저장부(673)에 저장된 제2코드범위에 속하는지도 판단하여야 하며, 출력부(605)는 그 판단에 따라 필요한 폰트를 독출하게 된다(509,511단계).When the input code is not an ASCII code, since the input code is 2 bytes, the controller 607 must determine whether the input code falls within the second code range stored in the second code storage unit 673, and the output unit 605 According to the determination, necessary fonts are read (steps 509 and 511).

예를 들면서 설명한다. 한 벌의 한글폰트의 시작주소가 0x10000(hexa code)로 위치정보(341)에 저장되어 있다고 가정한다. 한글폰트이므로 제1코드시작(361)은 0xB0의 값을, 제1코드종료(371)는 0xC8의 값을 가진다. 또한 제2코드시작(381)은 0xA0의 값을, 제2코드종료(391)는 0xFF의 값을 가진다. 한편 각각의 폰트를 형성할 수 있는 픽셀의 가로축 크기를 16개, 세로축 크기를 16개라고 할 때 픽셀크기데이터(331)은개의 픽셀값을 가진다. 이러한 조건하에서 '다(0xB4, 0xD9)'을 독출한다고 하자. 그렇다면 '다'는 한글폰트이므로 '다'가 속한 한 벌의 폰트의 시작위치는 0x10000으로 독출된다(513단계). 이 때 '다'에 해당하는 입력코드(0xB4, 0xD9)가 들어오면 제1코드시작 및 종료(361,371)에 저장되어 있는 값과 '다'의 제1코드(0xB4)를 비교하게 된다(509단계). 이 때 '다'의 제1코드(0xB4)는 제1코드시작 및 종료(361,371)범위에 들어가는 것을 알 수 있다. 따라서 '다'의 제2코드(0xD9)이 제2코드시작 및 종료(381,391)에 저장되어 있는 범위에 속하는 지가 판단되는데(511단계), 상기 조건에서 볼 때 그 범위내에 속하는 것을 알 수 있다. 그러므로 출력이 요구되는 폰트인 '다'가 폰트 롬에 저장되어 있다는 것이 판단되므로 독출할 수 있게 된다. 이제 '다'를 독출하는 과정을 살펴보면, '다'가 존재하는 물리적인 주소를 알아내기 위하여 먼저 주어진 입력코드에 의한 계산을 하게되면이 된다. 이 값은 10진수로 442가 되므로 442번째 폰트가 됨을 알 수 있다(515단계). 한 폰트가 구성되는 바이트 수를 계산하면,바이트가 된다. 이상과 같은 결과로 계산을 하면,으로 Ox13720번지에서 32바이트를 가져오면 '다'라는 폰트가 된다. 422에서 1을 뺀 이유는 첫 번째 폰트가 32번째 바이트부터가 아니고, 0번째 바이트인 것처럼 시작주소는 그 폰트번째에서 1을 뺀 것과 같기 때문이다. 출력부(605)는 상기와 같이 계산된 주소에서 특정의 폰트를 독출하여 최종적으로 외부장치에 출력하여주게 된다(517단계)It demonstrates, for example. Assume that the starting address of a set of Korean fonts is stored in the location information 341 as 0x10000 (hexa code). Since it is a Korean font, the first code start 361 has a value of 0xB0 and the first code end 371 has a value of 0xC8. The second code start 381 has a value of 0xA0 and the second code end 391 has a value of 0xFF. On the other hand, when the size of the horizontal axis of the pixel that can form each font is 16 and the length of the vertical axis is 16, the pixel size data 331 is Has pixel values Suppose we read '0 (Bx4, 0xD9)' under these conditions. Then, since 'Da' is a Korean font, the starting position of a set of fonts to which 'Da' belongs is read out as 0x10000 (step 513). At this time, when the input codes 0xB4 and 0xD9 corresponding to 'da' are received, the values stored in the first code start and end 361 and 371 are compared with the first code 0xB4 of 'da' (step 509). ). At this time, it can be seen that the first code 0xB4 of 'da' falls within the range of the first code start and end 361 and 371. Accordingly, it is determined whether the second code 0xD9 belonging to the 'multi' belongs to the range stored in the second code start and end 381 and 391 (step 511). Therefore, it is determined that 'da', which is a font that requires output, is stored in the font ROM, so it can be read. Now look at the process of reading the 'da', first to calculate the physical address of the 'da' to calculate the given input code Becomes Since this value becomes 442 as a decimal number, it can be seen that it becomes the 442th font (step 515). If you count the number of bytes a font consists of, Byte. If you calculate with the above result, If 32 bytes are taken from Ox13720, the font is 'da'. The reason for subtracting 1 from 422 is that the starting address is the same as minus 1 from the first font, just as the first font is not from the 32nd byte. The output unit 605 reads a specific font from the address calculated as described above and finally outputs it to an external device (step 517).

본 발명에 의한 폰트 롬 생성저장 및 독출방법은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현되는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 하드 디스크, 플로피 디스크, 플래쉬 메모리, 광 데이타 저장장치등이 있으며, 또한 캐리어 웨이브(예를들면 인터넷을 통한 전송)의 형태로 구현되는 것도 포함된다. 또한 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 통신망으로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 읽을 수 있는 코드로서 저장되고 실행될 수 있다. 또한 본 발명에 의한 폰트 롬 데이터구조도 컴퓨터로 읽을 수 있는 ROM, RAM, CD-ROM, 자기 테이프, 하드 디스크, 플로피 디스크, 플래쉬 메모리, 광 데이타 저장장치등과 같은 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현되는 것이 가능하다.The method for generating, storing and reading font ROMs according to the present invention may also be embodied as computer readable codes on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, hard disk, floppy disk, flash memory, optical data storage device, and also carrier wave (e.g. transmission over the Internet). It is also included to be implemented in the form of. The computer readable recording medium can also be distributed over computer systems connected over a computer network so that the computer readable code is stored and executed in a distributed fashion. Also, the font ROM data structure according to the present invention can be read by a computer on a recording medium such as a computer readable ROM, RAM, CD-ROM, magnetic tape, hard disk, floppy disk, flash memory, optical data storage device, and the like. It can be implemented as code.

이상에서 설명한 바와 같이, 본 발명에 의한 폰트 롬 생성저장 및 독출방법과 그 장치에 의하면, 폰트를 디스플레이하는 장비의 개발에 있어서 사용되는 폰트의 종류가 변경 또는 추가될 필요가 있을 때에도 변경이나 추가에 종속적인 검색 소프트웨어의 개발이 필요하지 않고, 장비사용자가 요구하는 폰트로의 전환이 용이하며 그 비용도 절감할 수 있게된다.As described above, according to the method and apparatus for generating and reading a font ROM according to the present invention, even when the type of font used in the development of a device for displaying a font needs to be changed or added, the font ROM can be changed or added. There is no need to develop dependent search software, and it is easy to convert to fonts required by the equipment user, and the cost can be reduced.

Claims (11)

복수의 폰트가 한 벌 단위로 각 폰트의 이미지 데이터들이 저장되는 폰트 롬 이미지 데이터;Font ROM image data in which a plurality of fonts are stored in a unit of a set of image data of each font; 상기 폰트 롬 이미지 데이터 내에서 특정의 폰트를 독출하기 위하여 필요한소정의 정보를 포함하는 정보데이터;를 포함하는 것을 특징으로 하는 폰트 롬 데이터구조.And information data including predetermined information necessary to read a specific font in the font ROM image data. 제1항에 있어서, 상기 정보데이터는The method of claim 1, wherein the information data is 상기 한 벌의 폰트가 문자들로 구성되는지의 여부를 구별하도록 지정된 종류식별자;A kind identifier specified to distinguish whether the set of fonts are composed of characters; 상기 한 벌의 폰트를 구성하는 폰트들을 형성할 수 있는 픽셀의 크기를 지정하는 픽셀크기데이터;Pixel size data specifying a size of a pixel capable of forming fonts constituting the set of fonts; 상기 한 벌의 폰트가 상기 폰트 롬 이미지 데이터내에서 저장되는 위치정보를 가지는 주소데이터;Address data having location information in which the set of fonts is stored in the font ROM image data; 저장되는 폰트들에 대응하는 코드값을 가지는 코드범위;를 포함하는 것을 특징으로 하는 폰트 롬 데이터구조.And a code range having code values corresponding to fonts to be stored. 제1항에 있어서, 상기 폰트 롬 이미지데이터는 폰트의 종류별로 복수로 구성될 수 있으며,The font ROM image data of claim 1, wherein a plurality of font ROM image data may be configured for each type of font. 저장되는 폰트의 벌 수가 지정되는 총량데이터;Total amount data in which the number of the stored fonts is designated; 상기 폰트를 한 벌 단위로 식별할 수 있도록 지정된 제1식별자;를 더 구비하는 것을 특징으로 하는 폰트 롬 데이터구조.And a first identifier designated to identify the font in a suit unit. (a) 복수의 폰트를 한 벌단위로 생성하는 단계;(a) generating a plurality of fonts in a single unit; (b) 상기 한 벌의 폰트가 저장되는 위치를 지정하고 저장하는 단계;(b) designating and storing a location where the font is stored; (c) 상기 위치와 상기 한 벌의 폰트의 코드범위 및 상기 폰트를 형성할 수 있는 픽셀의 크기를 포함하는 정보를 부가한 후 색인화해서 한 벌 단위로 저장하는 단계;를 포함하는 것을 특징으로 하는 폰트 롬 생성 및 저장방법.(c) adding information including the position, the code range of the set of fonts, and the size of the pixels capable of forming the font, and then indexing and storing the information in a unit of sets. How to create and save font ROMs. 제4항에 있어서, 상기 (c)단계는The method of claim 4, wherein step (c) (c1) 상기 폰트를 한 벌 단위로 지정하는 제1식별자를 저장하는 단계;(c1) storing a first identifier for designating the font in a unit of suit; (c2) 상기 한 벌의 폰트를 구성하는 것이 폰트 또는 그림인지에 따라 문자식별자를 저장하는 단계;를 더 구비하는 것을 특징으로 하는 폰트 롬 생성 및 저장방법.(c2) storing a character identifier according to whether the font of the set includes a font or a picture; and further comprising a font ROM. 제4항에 있어서,The method of claim 4, wherein 상기 (c)단계는 저장되는 폰트의 코드규격에 따라 하나 이상의 바이트로 상기 코드 범위를 지정할 수 있는 것을 특징으로 하는 폰트 롬 생성 및 저장방법.Step (c) is a font ROM generation and storage method, characterized in that the code range can be specified in one or more bytes according to the code specification of the font to be stored. 한 벌 단위의, 복수의 폰트로써 구성되며 상기 한 벌 단위 폰트의 폰트 롬 내의 위치정보와 상기 폰트를 형성할 수 있는 픽셀크기에 대한 정보를 가지는 폰트 롬으로부터 외부장치에서 입력되는 코드에 따라 폰트를 독출하는 방법에 있어서,The font is configured according to a code input from an external device from a font ROM, which is composed of a plurality of fonts and has position information in the font ROM of the penalty unit font and information on pixel sizes that can form the font. In the method of reading, (a) 상기 독출될 폰트 롬을 구비하는 단계;(a) providing a font ROM to be read; (b) 상기 폰트 롬에서 상기 코드에 대응하는 폰트가 포함된 한 벌의 폰트의상기 위치정보, 픽셀크기를 포함하는 정보를 추출하는 단계;(b) extracting, from the font ROM, information including the location information and pixel size of a set of fonts including a font corresponding to the code; (c) 상기 입력되는 코드와 상기 한 벌의 폰트의 코드범위를 비교하여 상기 입력코드가 상기 코드범위내에 해당하는 경우에 상기 정보에 기초하여 상기 코드에 해당하는 폰트를 출력하는 단계;를 포함하는 것을 특징으로 하는 폰트 롬 독출방법.(c) comparing a code range of the input code with the set of fonts and outputting a font corresponding to the code based on the information when the input code falls within the code range; Read method of font ROM, characterized in that. 세7항에 있어서, 상기 (c)단계는 출력할 폰트가 포함된 한 벌의 폰트를 구별하는 제1식별자가 있는 지 판단하여 상기 폰트를 구비하는 경우에만 상기 (c)단계의 수행여부를 결정하는 단계를 더 구비하고,8. The method of claim 7, wherein the step (c) determines whether or not the step (c) is performed only when the font is provided by determining whether there is a first identifier for distinguishing a set of fonts including a font to be output. Further comprising: (c1) 상기 입력되는 코드가 아스키 코드이면 상기 한 벌의 폰트의 제1코드시작 및 종료범위에 속하는지를 판단하여 상기 시작위치와 크기를 기초로 요구되는 폰트의 상기 저장장치내의 위치를 계산하여 독출하는 단계;(c1) If the input code is an ASCII code, it is determined whether the code belongs to the first code start and end range of the font, and the position is calculated in the storage device of the required font based on the start position and size. Shipping step; (c2) 상기 입력되는 코드가 아스키 코드가 아닌 경우에는 상기 한 벌의 폰트의 제1코드시작 및 종료범위와 제2코드 시작 및 종료범위에 속하는 지를 판단하여 상기 시작위치와 크기를 기초로 요구되는 폰트의 상기 저장장치내의 위치를 계산하여 독출하는 단계;를 더 포함하는 것을 특징으로 하는 폰트 롬 독출방법.(c2) If the input code is not an ASCII code, it is determined based on the start position and size by determining whether the code belongs to a first code start and end range and a second code start and end range of the font. And calculating and reading a location of the font in the storage device. 한 벌 단위의, 복수의 폰트로써 구성되며 상기 한 벌 단위 폰트의 폰트 롬 내의 위치정보와 상기 폰트를 형성할 수 있는 픽셀크기에 대한 정보를 가지는 폰트 롬을 구비하고 외부에서 입력되는 코드에 대응하는 폰트를 독출하는 장치에 있어서,A font ROM composed of a plurality of fonts in a suit unit and having position information in the font ROM of the suit unit font and information on pixel sizes capable of forming the font, and corresponding to codes input from the outside; In the apparatus for reading a font, 외부 장치와 연결되어 출력이 요구되는 폰트의 코드를 수신하는 인터페이스부;An interface unit connected to an external device and receiving a code of a font requiring output; 상기 한 벌의 폰트의 특성정보를 저장하는 색인부;An index unit for storing characteristic information of the font of the font; 상기 인터페이스부에서 송신되는 상기 코드를 입력받아 상기 특성정보와 비교하여 상기 폰트 롬이 구비하고 있는 코드범위내인지를 판단하여 출력여부를 결정하는 제어부;A control unit which receives the code transmitted from the interface unit and compares the characteristic information with the characteristic information to determine whether the font ROM is within a code range included in the font ROM; 상기 제어부에서 판단하는 상기 출력 폰트의 위치정보와 픽셀크기에 기초하여 상기 폰트 롬에 저장된 폰트의 위치를 계산하여 상기 폰트를 독출해서 출력하는 출력부를 포함하는 것을 특징으로 하는 폰트 롬 저장 및 독출장치.And an output unit which calculates a position of a font stored in the font ROM based on the position information of the output font and the pixel size determined by the controller, and reads the font and outputs the font. 제9항에 있어서, 상기 색인부는The method of claim 9, wherein the index unit 상기 폰트를 한 벌 단위로 식별하는 제1식별자를 저장하는 제1식별자저장부;A first identifier storage unit for storing a first identifier for identifying the font in a suit unit; 상기 한 벌의 폰트를 구성하는 것이 폰트들인지의 여부를 구분하는 데이터를 저장하는 문자식별자 저장부;A character identifier storage unit which stores data for distinguishing whether fonts of the font are fonts; 상기 한 벌의 폰트를 구성하는 폰트들의 총 갯수를 저장하는 제2저장부;A second storage unit which stores a total number of fonts constituting the set of fonts; 상기 폰트를 형성할 수 있는 픽셀의 크기를 저장하는 크기저장부;A size storing unit which stores a size of a pixel capable of forming the font; 상기 한 벌의 폰트의 상기 폰트 롬내의 위치정보를 저장하는 시작위치저장부;A starting position storing unit for storing positional information in the font ROM of the set of fonts; 상기 한 벌의 폰트의 제1코드시작 및 종료 범위를 저장하는 제1코드저장부;A first code storage unit for storing a first code start and end range of the set of fonts; 상기 한 벌의 폰트의 제2코드시작 및 종료 범위를 저장하는 제2코드저장부;를 포함하는 것을 특징으로 하는 폰트 롬 저장 및 독출장치.And a second code storage unit for storing a second code start and end range of the set of fonts. 제4항 또는 제7항중 적어도 하나의 항의 단계를 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체.A computer-readable recording medium having recorded thereon a program for executing the steps of at least one of claims 4 and 7.
KR10-2001-0057174A 2001-09-17 2001-09-17 Method and apparatus for generating and storing Font Rom KR100392819B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2001-0057174A KR100392819B1 (en) 2001-09-17 2001-09-17 Method and apparatus for generating and storing Font Rom

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2001-0057174A KR100392819B1 (en) 2001-09-17 2001-09-17 Method and apparatus for generating and storing Font Rom

Publications (2)

Publication Number Publication Date
KR20030024154A true KR20030024154A (en) 2003-03-26
KR100392819B1 KR100392819B1 (en) 2003-07-28

Family

ID=27724251

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2001-0057174A KR100392819B1 (en) 2001-09-17 2001-09-17 Method and apparatus for generating and storing Font Rom

Country Status (1)

Country Link
KR (1) KR100392819B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650972A (en) * 2012-04-06 2012-08-29 国民技术股份有限公司 Data storage method, device and system
WO2020080644A1 (en) * 2018-10-14 2020-04-23 김봉근 Device and method for inputting characters

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6329791A (en) * 1986-07-23 1988-02-08 ミノルタ株式会社 Font conversion system of character/image generator
KR950004219B1 (en) * 1993-02-01 1995-04-27 주식회사건인시스템 Method and apparatus for font storage
KR950020124A (en) * 1993-12-30 1995-07-24 김광호 Font ROM supports multiple code pages
JPH08212198A (en) * 1995-02-01 1996-08-20 Canon Inc Front processing device and method thereof
KR100283745B1 (en) * 1997-12-31 2001-03-02 윤종용 Method and Apparutus for font Cash Manegement

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102650972A (en) * 2012-04-06 2012-08-29 国民技术股份有限公司 Data storage method, device and system
WO2020080644A1 (en) * 2018-10-14 2020-04-23 김봉근 Device and method for inputting characters
US11132497B2 (en) 2018-10-14 2021-09-28 Bonggeun Kim Device and method for inputting characters

Also Published As

Publication number Publication date
KR100392819B1 (en) 2003-07-28

Similar Documents

Publication Publication Date Title
JP4590433B2 (en) Image processing apparatus, image processing method, and computer program
JP2516294B2 (en) Method and apparatus for transmitting alphanumeric information along with document image information
US7900143B2 (en) Large character set browser
EP1024442A2 (en) Conversion between image representations used in image retrieval, and background exclusion
JP5788047B2 (en) Encoder for encoding text into matrix code symbols and decoder for decoding matrix code symbols
CN111222611B (en) Color-based stacked three-dimensional code encoding method, encoding device, decoding method, decoding device and storage medium
US5457776A (en) Compact memory for mixed text in graphics
JP2009169675A (en) Document processing apparatus, document processing method and document processing program
KR100392819B1 (en) Method and apparatus for generating and storing Font Rom
JP4164257B2 (en) Image processing apparatus, image processing method, program, and storage medium
CN111246249A (en) Image encoding method, encoding device, decoding method, decoding device and storage medium
JP5197694B2 (en) Image processing apparatus, image processing method, and computer program
JP5310206B2 (en) Document processing apparatus, document processing method, and document processing program
JPH11353317A (en) Drawing filing device, system therefor and its method and drawing identification code discriminating device and its method
JPS59135576A (en) Registering and retrieving device of document information
CN111259177B (en) Black-white binary signature picture storage method and system
CN112529643B (en) Electronic invoice processing method and device, storage medium and electronic equipment
JPH05292324A (en) Still picture coder
JP2009122841A (en) Image list image construction device, recording medium and image forming apparatus
CN110290483B (en) Multimedia message transmission method, system and terminal equipment
JP5501307B2 (en) Apparatus for decoding matrix code symbols and method for decoding matrix code symbols
JP3896683B2 (en) User-defined character management device and storage medium
JP3470377B2 (en) Information output device
JP2006146486A (en) Image processor
KR20020041330A (en) Contents server device

Legal Events

Date Code Title Description
A201 Request for examination
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20130708

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20140603

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20150629

Year of fee payment: 13

FPAY Annual fee payment

Payment date: 20160701

Year of fee payment: 14

FPAY Annual fee payment

Payment date: 20170629

Year of fee payment: 15

FPAY Annual fee payment

Payment date: 20180625

Year of fee payment: 16

FPAY Annual fee payment

Payment date: 20190701

Year of fee payment: 17