KR960016738B1 - Method and apparatus for processing information - Google Patents

Method and apparatus for processing information Download PDF

Info

Publication number
KR960016738B1
KR960016738B1 KR1019930025755A KR930025755A KR960016738B1 KR 960016738 B1 KR960016738 B1 KR 960016738B1 KR 1019930025755 A KR1019930025755 A KR 1019930025755A KR 930025755 A KR930025755 A KR 930025755A KR 960016738 B1 KR960016738 B1 KR 960016738B1
Authority
KR
South Korea
Prior art keywords
data
font
dot
dots
font data
Prior art date
Application number
KR1019930025755A
Other languages
Korean (ko)
Other versions
KR940012096A (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
Priority claimed from JP4320666A external-priority patent/JP2972466B2/en
Priority claimed from JP5178254A external-priority patent/JPH0736431A/en
Application filed by 캐논 가부시끼가이샤, 미따라이 하지메 filed Critical 캐논 가부시끼가이샤
Publication of KR940012096A publication Critical patent/KR940012096A/en
Application granted granted Critical
Publication of KR960016738B1 publication Critical patent/KR960016738B1/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/22Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of characters or indicia using display control signals derived from coded signals representing the characters or indicia, e.g. with a character-code memory
    • G09G5/24Generation of individual character patterns
    • G09G5/28Generation of individual character patterns for enhancement of character form, e.g. smoothing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Dot-Matrix Printers And Others (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

요약없음No summary

Description

정보 처리 방법 및 장치Information processing method and device

제1도는 본 실시예의 폰트 데이타의 압축 및 신장처리를 실행할수 있는 프린터 장치의 개요 구성을 도시한 블럭도.Fig. 1 is a block diagram showing a schematic configuration of a printer apparatus capable of performing compression and decompression processing of font data of this embodiment.

제2도는 본 실시예의 폰트 데이타의 압축 및 신장처리를 실행할 수 있는 표시 장치의 개략 구성을 도시한 블럭도.2 is a block diagram showing a schematic configuration of a display device capable of performing compression and decompression processing of font data of this embodiment.

제3도는 본 실시에의 장치의 ROM의 데이타 구성을 도시한 도면.Fig. 3 is a diagram showing the data structure of the ROM of the apparatus in this embodiment.

제4도는 본 발명의 제1실시예에 의한 문자 패턴의 백 도트 수의 증가 및 코드화의 구체적인 예를 도시한 도면.4 is a diagram showing a concrete example of the increase and the number of back dots of a character pattern according to the first embodiment of the present invention.

제5도는 본 발명의 제1실시예에서 예측 함수치에 대응하는 도트 패턴을 설명하기 위한 도면.5 is a diagram for explaining a dot pattern corresponding to a predictive function value in the first embodiment of the present invention.

제6도는 본 발명의 제1실시예에서 예측 함수치를 도시한 도면.6 is a diagram showing prediction function values in the first embodiment of the present invention.

제7도는 본 발명의 제1실시예에서 폰트 데이타를 절취하여 설명하기 위한 도면.FIG. 7 is a diagram for explaining cut-out of font data in the first embodiment of the present invention. FIG.

제8도는 본 발명의 실시예에서 폰트 데이타의 코드화를 설명하기 위한 도면.8 is a diagram for explaining encoding of font data in an embodiment of the present invention.

제9도는 본 발명의 제1실시예에서 폰트 데이타의 백 도트 수의 증대 및 코드화 처리를 도시한 플로우차트.Fig. 9 is a flowchart showing the process of increasing the number of back dots of font data and encoding in the first embodiment of the present invention.

제10도는 본 발명의 제2실시예에 의한 문자 패턴의 백 도트 수의 증가 및 코드화의 구체적인 예를 도시한 도면.FIG. 10 is a diagram showing a concrete example of the increase and the number of back dots of a character pattern according to the second embodiment of the present invention. FIG.

제11도는 본 발명의 제2실시예에서 폰트 데이타의 백 도트 수를 증대하는 처리를 설명하기 위한 도면.Fig. 11 is a diagram for explaining the process of increasing the number of back dots of font data in the second embodiment of the present invention.

제12도는 본 발명의 제2실시예에서 폰트 데이타의 백 도트 수의 증대 및 코드화 처리를 도시한 플로우차트.Fig. 12 is a flowchart showing the process of increasing the number of back dots and encoding of font data in the second embodiment of the present invention.

제13도는 본 발명의 제3실시예에서 폰트 데이타의 백 도트 수의 증대 및 코드화 처리를 도시한 플로우차트.Fig. 13 is a flowchart showing the process of increasing the number of back dots of font data and encoding in the third embodiment of the present invention.

제14도는 본 발명의 제3실시예에서 훅 도트의 위치를 도시한 데이타를 설명하기 위한 도면.14 is a diagram for explaining data showing the position of a hook dot in the third embodiment of the present invention.

제15도는 제3실시예에서 다음 데이타를 도시한 데이타를 설명하기 위한 도면.FIG. 15 is a diagram for explaining data showing the following data in the third embodiment; FIG.

제16도는 본 발명의 제3실시예에 의해 제4도 또는 제10도의 문자 폰트를 압축한 결과를 도시한 도면.FIG. 16 shows the results of compressing the character fonts of FIG. 4 or FIG. 10 according to the third embodiment of the present invention. FIG.

제17도는 본 발명을 적용한 압축 폰트 탑재된 인자 장치를 도시한 블럭도.Fig. 17 is a block diagram showing a printing apparatus with a compressed font on which the present invention is applied.

제18도는 본 발명을 적용한 압축 폰트가 탑재된 인자 장치 및 표시 장치의 기억소자의 내부 블럭 장치를 도시한 도면.Fig. 18 is a diagram showing an internal block device of a printing device on which a compressed font is applied and a storage device of a display device according to the present invention.

제19도는 예측 함수에 있어서, (A)는 예측 함수의 백으로 변환되는 도트 패턴이고, (B)는 예측 함수의 변환표이며, (C)는 예측 함수 처리의 기법을 도시한 도면.FIG. 19 is a diagram of a prediction function in which (A) is a dot pattern transformed into a bag of a prediction function, (B) is a conversion table of a prediction function, and (C) is a diagram showing a technique of prediction function processing.

제20도는 예측 함수에 의한 처리 결과를 도시한 도면.20 is a diagram showing processing results by a prediction function.

제21도는 제4의 실시예의 코드 표를 도시한 도면.21 shows a code table of the fourth embodiment.

제22도는 제4의 실시예의제어 절차를 도시한 플로우차트.FIG. 22 is a flowchart showing a control procedure of the fourth embodiment. FIG.

제23도는 본 발명을 적용한 압축 폰트가 탑재된 표시 장치를 도시한 블럭도.Fig. 23 is a block diagram showing a display device on which a compressed font to which the present invention is applied is mounted.

제24도는 종횡 방향의 배타적 논리합에 의한 처리 결과를 도시한 도면.FIG. 24 is a diagram showing processing results by an exclusive OR in the vertical and horizontal directions. FIG.

제25도는 종횡 방향 배타적 논리합의 기법에 있어서, (A)는 횡 방향 배타적 논리합의 기법이고, (B)는 종방향 배타적 논리합의 기법을 도시한 도면.25 is a technique of longitudinal exclusive OR, (A) is a technique of lateral exclusive OR, and (B) is a technique of longitudinal exclusive OR.

제26도는 제5의 실시예의 제어 절차를 도시한 플로우차트.FIG. 26 is a flowchart showing a control procedure of the fifth embodiment.

제27도는 제6의 실시예의 제어 절차를 도시한 플로우차트.FIG. 27 is a flowchart showing a control procedure of the sixth embodiment.

제28도는 제6의 실시예에서 코드화의 기법에 있어서, (A)는 제6의 실시예의 데이타 표현 방법이고, (B)는 다음의 데이타의 표현 방법이며, (C)는 제6의 실시예의 코드 데이타를 도시한 도면.FIG. 28 shows the coding scheme in the sixth embodiment, where (A) is the data representation method of the sixth embodiment, (B) is the representation method of the following data, and (C) is the sixth embodiment. Figure shows code data.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

101, 201 : 워크 메모리102, 202 : CPU101, 201: work memory 102, 202: CPU

103, 203 : ROM104, 204 : 데이타 수신부103, 203: ROM104, 204: data receiving unit

105 : 비트 맵 메모리106 : 인자 제어기105: bitmap memory 106: argument controller

107 : 인자 기구부205 : 표시용 메모리107: printing mechanism unit 205: display memory

206 : 표시 제어부207 : 표시부206: display control unit 207: display unit

본 발명은 비트맵 형식으로 표시되는 폰트 데이타를 압축 또는 신장하는 정보 처리 방법 및 장치에 관한 것이다.The present invention relates to an information processing method and apparatus for compressing or decompressing font data displayed in a bitmap format.

복수의 도트에 의해 문자 또는 도형을 구성하는 폰트 데이타를 구비한 프린터 장치와 표시 장치에서는, 그 장치의 성능에 맞는 데이타 사이즈의 폰트 데이타를 구비하고 있다. 예를 들면, 180dpi(도트/인치)의 해상도를 갖는 프린터 장치에는 종폭 10CPI(문자/인치) 10포인트의 문자를 인자(印字)하기 위해서는 종 24도트, 횡 24도트의 폰트 데이타가 필요하게 되고, 이 1문자당 폰트데이타의 바이트 수는 72바이트가 된다. 또한, 360dpi 프린터 장치로 동일한 테이타를 인자하기 위해서는 종 48비트, 횡 48비트의 폰트 데이타가 필요하고 이 경우의 1문자에 대하여 데이타 수는 288바이트가 된다.In a printer apparatus and a display apparatus having font data constituting characters or figures by a plurality of dots, font data having a data size suitable for the performance of the apparatus is provided. For example, a printer device having a resolution of 180 dpi (dots / inch) requires font data of 24 dots vertically and 24 dots horizontally to print characters of 10 points of 10 CPI (character / inch) width. The number of bytes of font data per character is 72 bytes. Further, in order to print the same data with a 360 dpi printer device, font data of 48 bits in length and 48 bits in width is required, and the number of data is 288 bytes for one character in this case.

이와 같은 폰트 데이타는 전술한 표시 장치나 프린터 장치의 해상도에 맞춰 도트 형식으로 장치 내부의 ROM등에 기억되어 있고 상위 장치에서의 표시 지령 신호 또는 지령 신호에 따라 문자 코드에 대응하여 차례로 독출되고, 비트맵에 전개된 후 표시 또는 프린트된다.Such font data is stored in the ROM inside the apparatus in a dot format in accordance with the resolution of the display apparatus or printer apparatus described above, and sequentially read out in correspondence with the character code in accordance with the display command signal or the command signal from the host apparatus and the bitmap. After being deployed to, it is displayed or printed.

이와 같은 폰트 데이타는, 문자의 종류 및 문자 수에 따라 그 용량이 변화하고, 특히 한자와 같이 많은 서체를 가지고, 하나의 서체마다 약 8000 문자 정도의 폰트 데이타를 필요로 하는 문자의 경우는, 그 데이타량은 막대한 것이 된다. 또한, 전술한 표시 장치와 프린터 장치의 해상도의 증가와 함께, 하나의 문자당 폰트 데이타량이 증대한다. 이로 인해 폰트 데이타를 기억하기 위해 보다 많은 메모리(기억소자)가 필요하게 되고, 제품 코스트의 증대, 제품의 대형화를 초래하는 우려가 있다.Such font data may vary in size depending on the type and number of characters, particularly for characters that have many fonts such as Chinese characters and require about 8000 font data per font. The amount of data is huge. In addition, as the resolution of the display device and the printer device described above increases, the amount of font data per character increases. As a result, more memory (memory element) is required to store the font data, which may increase the product cost and increase the size of the product.

본 발명은 상기의 종래예를 감안하여 실시된 것으로서, 폰트 데이타를 고효율로 압축할 수 있는 정보 처리 방법 및 장치를 제공하는 것을 목적으로 한다.The present invention has been made in view of the above-described conventional example, and an object thereof is to provide an information processing method and apparatus capable of compressing font data with high efficiency.

본 발명은 비트맵 폰트 데이타의 0 또는 1의 데이타 어느 하나를 증가시키도록 폰트 데이타를 변환하는 변환 공정과, 그 변환된 폰트 데이타에서 증가된 데이타의 연속되는 길이와 증가되지 않은 데이타를 증가시킨 데이타의 수가 0으로 코트화하는 공정을 갖는 정보 처리 방법 및 장치를 제공하는데 있다.The present invention provides a conversion process of converting font data to increase one of zero or one data of bitmap font data, and data of increasing contiguous length and non-increased data of increased data in the converted font data. The present invention provides an information processing method and apparatus having a step of coating the number of to zero.

본 발명의 목적은 비트맵 폰트 데이타의 0 또는 1의 데이타 어느 하나를 증가시키도록 폰트 데이타를 변환하고, 그 변환된 폰트 데이타에서 증가된 데이타의 연속된 길이와, 증가되지 않은 데이타의 수가 0으로 코드화하는 정보 처리 방법 및 장치를 제공하는데 있다.It is an object of the present invention to convert font data to increment either zero or one data of the bitmap font data, wherein the contiguous length of the increased data and the number of non-increased data in the converted font data is zero. An information processing method and apparatus for encoding are provided.

본 발명의 목적은 종 N라인, 횡 M라인으로 구성되는 문자·도형 폰트를 인자 또는 표시함에 있어서, 일정한 기법에 의해 백 또는 흑 데이타의 한쪽 데이타를 다른 쪽의 데이타로 치환하고, 이 변환된 데이타를 백 또는 흑의 데이타 만으로 표현하는 압축 처리를 실시함으로써, 생성된 압축 폰트는 종래의 본래 폰트 데이타에 대하여 현격하게 압축할 수 있고, 전체로서의 폰트 데이타 용량을 삭감할 수 있는 정보 처리 방법 및 장치를 제공하는데 있다.SUMMARY OF THE INVENTION An object of the present invention is to print or display a character / graphic font composed of vertical N lines and horizontal M lines by replacing a piece of white or black data with the other data by a certain technique, and converting the converted data. By performing the compression process of expressing the data as only white or black data, the generated compressed font can be significantly compressed with respect to the original original font data, and an information processing method and apparatus capable of reducing the font data capacity as a whole are provided. It is.

실시예 1Example 1

다음에 첨부된 도면을 참조하여 본 발명의 적절한 실시예를 상세히 설명한다. 또, 본 발명은 복수의 기기로 구성된 시스템에 적용하여도, 1개의 기기로 구성된 장치에 적용하여도 좋다. 또한, 본 발명은 시스템 또는 장치에, 본 발명을 실시하는 프로그램을 공급함으로써 달성되는 경우에도 적용할 수 있는 것은 말할 필요도 없다.Next, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. In addition, the present invention may be applied to a system composed of a plurality of apparatuses, or may be applied to an apparatus composed of one apparatus. It goes without saying that the present invention can also be applied to a system or an apparatus which is achieved by supplying a program for implementing the present invention.

제1도는 본 발명의 실시예의 폰트 압축 방법에 의해 폰트 데이타를 압축할 수 있는 프린터 장치의 개략 구성을 도시한 블럭도이다. 또, 이 장치는 예를 들면 일본어 워드프로세서이거나, 워크 스테이션 또는 컴퓨터 시스템도 좋다.1 is a block diagram showing a schematic configuration of a printer apparatus capable of compressing font data by the font compression method of the embodiment of the present invention. This device may be, for example, a Japanese word processor, or may be a workstation or a computer system.

제1도에서, 102는 프린터 장치 전체를 제어하기 위한 CPU로서, 압축 프린트를 신장하는 기능도 갖추고 있다. 101은 CPU(102)에 의한 각종 제어 처리의 실행시에 사용되는 워크 메모리로서, 압축된 폰트 데이타를 신장하기 위해, 압축된 폰트 데이타를 일시적으로 기억하고 신장된 폰트 데이타를 일시적으로 보존한다. 103은 ROM로서, CPU(102)의 제어 프로그램과 각종 데이타를 기억하고 있고, 더욱이 본 실시예의 압축 방법에 의해 압축된 압축 폰트 데이타로 기억하고 있다. 104는 데이타 수신부로서, 호스트 컴퓨터 등의 상위 장치로부터 송신되는 데이타를 수신한다. 105는 비트 맵 메모리로서 인자 기구부(107)에 의한 인지되는 비트맵 데이타가 격납되고 있다. 이 비트맵 메모리(105)에는 압축된 폰트 데이타를 신장한 영상 데이타도 비트 데이타로서 전개되고, 이 영상 데이타에 의거하여 인자 기구부(107)에 의한 피기록 매체로서의 인쇄가 실시된다. 106은 인자제어부에서 인자 기구부(107)의 모터의 제어 및 기록 헤드의 구동 제어 등을 하고 있다.In FIG. 1, 102 is a CPU for controlling the entire printer apparatus, and also has a function of expanding a compressed print. 101 is a work memory used when executing various control processes by the CPU 102, in order to expand the compressed font data, temporarily storing the compressed font data and temporarily storing the expanded font data. Numeral 103 denotes a ROM, which stores a control program and various data of the CPU 102, and further, stored as compressed font data compressed by the compression method of the present embodiment. 104 is a data receiving unit that receives data transmitted from a host device such as a host computer. Reference numeral 105 denotes a bit map memory, in which bitmap data recognized by the print mechanism unit 107 is stored. The bitmap memory 105 also develops image data in which the compressed font data are expanded as bit data, and is printed as a recording medium by the printing mechanism 107 based on the image data. In the printing control unit 106, control of the motor of the printing mechanism unit 107, driving control of the recording head, and the like are performed.

제2도는 본 실시예의 폰트 압축 방법에 의해 폰트 데이타를 압축할 수 있는 다른 장치의 한 예인 표시 장치의 개략 구성을 도시한 블럭도이다.2 is a block diagram showing a schematic configuration of a display device which is an example of another device capable of compressing font data by the font compression method of this embodiment.

제2도에 있어서, 202는 표시 장치의 전체를 제어하기 위한 CPU이고, 압축 폰트를 신장하는 기능도 갖추고 있다. 201은 CPU(202)의 워크 영역으로서 사용되고, 각종 데이타를 일시적으로 보존할 수 있다. 또한, 이 워크 메모리(201)에는, 신장되는 압축된 폰트 데이타가 일시적으로 격납되어, 이 신장 처리 중에는 이 중에서 모든 데이타가 변환된다. 203은 CPU(202)의 제어 프로그램과 각종 데이타를 기억하고 있는 ROM로서, 본 실시예의 압축 방법에 의해 압축된 폰트 데이타도 기억하고 있다. 204는 데이타 수신부로서, 호스트 컴퓨터등의 상위 장치로부터의 데이타를 수신한다. 205는 표시 메모리로서, 표시부(207)에 표시되는 표시용 데이타를 격납하고 있다. 이 표시용 메모리(205)에는, 폰트 데이타를 신장한 영상 데이타가 비트 맵 전개되어, 표시부(207)의 화면 상에 표시된다. 206은 표시제어부로서, 표시부(207)에서의 표시를 제어하기 위해 필요한 휘도(輝度)의 제어 및 표시 위치의 제어 등을 실시한다.In FIG. 2, 202 is a CPU for controlling the entire display device, and also has a function of expanding the compressed font. 201 is used as a work area of the CPU 202 and can temporarily store various data. In addition, the compressed font data to be decompressed is temporarily stored in the work memory 201, and all data is converted among them during this decompression processing. 203 is a ROM which stores the control program and various data of the CPU 202, and also stores font data compressed by the compression method of this embodiment. 204 is a data receiving unit that receives data from a host device such as a host computer. 205 denotes a display memory, which stores display data displayed on the display unit 207. In this display memory 205, video data obtained by expanding font data is bitmap developed and displayed on the screen of the display unit 207. FIG. Reference numeral 206 denotes a display control unit which controls the brightness required for controlling the display on the display unit 207, the control of the display position, and the like.

이와 같은 프린터 장치 또는 표시 장치에 탑재되는 본 실시예의 폰트 데이타는, 제3도에 도시된 바와 같은 데이타 구성으로, ROM 103(203)에 기억되어 있다. 제3도는 ROM 103(203)에 기억된 데이타 구성을 설명하기 위한 도면이다.The font data of this embodiment mounted on such a printer apparatus or display apparatus is stored in the ROM 103 203 with the data structure as shown in FIG. 3 is a diagram for explaining a data structure stored in the ROM 103 (203).

제3도에 있어서, 301은 CPU 102(202)의 제어 프로그램이 기억되어 있는 영역이다. 이들 장치는 이 제어 프로그램에 따라 제어된다. 302는 장치의 제어에 필요한 데이타가 격납되어 있는 각종 테이블을 나타내고 있다. 303은 폰트 데이타가 기억되고 있는 영역을 나타내고, 이 폰트 데이타는 압축된 폰트 데이타부와, 그 압축된 폰트 데이타 수 및 폰트 데이타의 신장에 필요한 각종 데이타를 기억하고 있는 데이타 테이블(304)를 갖추고 있다. 또, 이 ROM 103(203)은 데이타의 용량 및 ROM의 용량 등에 의해, 복수의 ROM으로 구성되어도 좋은 것은 물론이다.In FIG. 3, 301 is an area | region in which the control program of CPU102 (202) is stored. These devices are controlled according to this control program. 302 shows various tables in which data necessary for controlling the apparatus is stored. 303 indicates an area in which font data is stored, and this font data has a compressed font data portion, and a data table 304 for storing the compressed font data number and various data necessary for decompression of the font data. . It goes without saying that the ROM 103 203 may be composed of a plurality of ROMs depending on the data capacity, the ROM capacity, and the like.

본 실시예에서는, 폰트 데이타를 압축함에 있어서, 먼저 도트로 표시된 폰트데이타의 백 도트를 증대시키고, 그 후에 데이타를 압축하고 있다. 다음에 그 압축 처리에 대하여 설명한다.In the present embodiment, in compressing font data, first, the back dots of the font data represented by the dots are increased, and then the data is compressed. Next, the compression process will be described.

제5도-제7도는 본 실시예에 있어서, 폰트 데이타의 백 도트의 수를 증대시키기 위한 처리를 도시한 도면이다.5 to 7 show the processing for increasing the number of back dots of the font data in this embodiment.

먼저, 원래 도트 형식의 폰트 데이타(본래 폰트)에 대하여 제7도에 나타낸 바와 같이, m×n도트의 폰트를 고려했을 경우 그 폰트 데이타를 두께가 1도트의 패턴(701)으로 둘러싼다. 이에 의하여 (m+2)×(n+2)의 패턴이 형성된다. 패턴을 2×2의 매트릭스 패턴(501)을 이용하여 차례로 주사하여, 각 도트를 백으로부터 흑, 또는 흑으로부터 백으로 변환하다.First, as shown in FIG. 7 with respect to the original dot format font data (original font), when fonts of m × n dots are considered, the font data is surrounded by a pattern 701 having a thickness of one dot. As a result, a pattern of (m + 2) × (n + 2) is formed. The pattern is sequentially scanned using a 2 × 2 matrix pattern 501 to convert each dot from white to black, or from black to white.

제5도 및 제6도는 이 도트 변환 처리를 설명하기 위한 도면이다. 제5도 및 제6도의 도트 매트릭스(501)에 있어서, 각 도트를 a,b,c,d로 표시하고, 도트(d)에 위치하고 있는 도트를 대상 도트(501)으로 한다. 이들 도트(a∼c)의 값에 대응하여 예측되는 대상 도트(d)의 값이 제6도에 나타나 있다. 그래서, 이들 예측치에 대응하는 도트 패턴이 제5도의 502∼509로 표시되어 있다.5 and 6 are diagrams for explaining this dot conversion process. In the dot matrix 501 of FIG. 5 and FIG. 6, each dot is represented by a, b, c, d, and the dot located in the dot d is made into the object dot 501. FIG. The value of the target dot d predicted corresponding to the values of these dots a to c is shown in FIG. Thus, dot patterns corresponding to these prediction values are indicated by 502 to 509 in FIG.

여기서, 상기의 제7도의 도트 패턴에 대하여, 제5도의 매트릭스(501)을 차례로 적용시켜 가고, 그 2×2의 도트 팬턴이 제5도의 패턴(502-509)의 어느 것과 일치할 경우에는, 그 위치하고 있는 매트릭스(501)의 도트 d(510)에 대응하는 폰트 데이타의 도트를 백(0)으로 변환한다. 한편, 패턴(502-509)의 어느 것과도 일치하지 않았을 경우에는 그 도트(510)에 대응하는 폰트 데이타의 도트를 흑(1)로 변환한다.Here, when the matrix 501 of FIG. 5 is applied to the dot pattern of FIG. 7 in turn, and the 2 × 2 dot pantone coincides with any of the patterns 502-509 of FIG. 5, The dot of the font data corresponding to the dot d (510) of the matrix 501 located is converted into the bag (0). On the other hand, when none of the patterns 502-509 match, the dot of the font data corresponding to the dot 510 is converted into black (1).

제4도는 이와 같이 하여 문자 "H"의 도트 패턴을 변화한 예를 도시한 도면이다.4 shows an example in which the dot pattern of the letter "H" is changed in this way.

여기서는 폰트 데이타(401)의 주위를 두께가 1도트인 패턴(701)로 둘러싸고, 그 폰트 데이타에 상기의 매트릭스(501)을 차례로 적용시켜, 1행의 처리가 종료하면 다음 행의 가장 선두(부가된 패턴(701)을 포함한 가장위의 데이타)로 돌아가 최종의 도트까지 동일한 처리를 행하고, 폰트 데이타(401)의 각 도트의 값을 결정한다. 이렇게 해서 변환된 도트 데이타가 402로 표시되고 있다. 이 도트 데이타(402)를 보면, 원래의 폰트 데이타(401)에 비하여 백 도트의 수가 증가하고 있는 것을 알 수 있다. 그리고, 403은 이 도트 데이타(402)에 의거하여, 제8도에 나타낸 규칙에 의거하여 코드화한 예를 나타내고 있다.Here, the periphery of the font data 401 is surrounded by a pattern 701 having a thickness of one dot, and the matrix 501 is sequentially applied to the font data. Returning to the uppermost data including the pattern 701), the same processing is performed to the last dot, and the value of each dot of the font data 401 is determined. The dot data converted in this way is indicated by 402. The dot data 402 shows that the number of back dots is increasing compared to the original font data 401. 403 shows an example of coding based on the rule shown in FIG. 8 based on this dot data 402.

제8도(A)도에 있어서, 데이타 수는 백 도트가 연속하는 길이(데이타 수)를 나타내고, 각 데이타 수에 대응하여 도면과 같이 오퍼랜드가 정해져 있다. 에를들면, 백 데이타가 "25"도트 연속하고, 그 후에 훅 도트가 있을 경우에는, 그 오퍼랜드 "1"이 되고, 그 데이타부는(25-24=1)로부터 "1"이 된다. 제8(B)는 오퍼랜드부와 데이타부로 구성되는 코드의 데이타 포맷을 나타내고 있고, 이에 의하여 이때의 코드는 "100001"이 된다.In Fig. 8A, the number of data indicates the length (number of data) of continuous back dots, and the operand is determined as shown in the figure corresponding to the number of data. For example, if the back data is " 25 " dots consecutively and there is a hook dot thereafter, the operand is " 1 ", and the data portion is " 1 " from (25-24 = 1). Eighth (B) shows a data format of a code composed of an operand portion and a data portion, whereby the code at this time becomes "100001".

또, 흑 도트가 4도트 연속할 경우에는 백 도트 수가 "0"이 3도트 연속하고 있는 상태로 표시된다. 즉, 백도트의 데이타 수 "0"이 오퍼랜드 "1", 데이타부 "0"으로 표시된다. 이에 의하여 4도트가 연속하는 훅 도트는 "100010001000"으로 표시된다. 이경우, 나머지의 1도트는 전회의 데이타가 있을 경우에는 불필요하게 되나, 데이타가 없을 경우에는 필요하게 된다. 여기에서는 백 데이타에 관하여 코드화하고, 반드시 데이타의 최후 끝에는 훅 데이타가 있다는 조건 하에 코드화되어 있다. 따라서 처리 데이타가 가장 최후일때는, 최후의 흑 도트가 있다고 판단하여 처리를 종료한다. 또한 신장시에는 최후의 흑은 소정 데이타 수를 넘고 있기 때문에 표현되지 않는다.When the black dots are continuous for 4 dots, the number of back dots is displayed in a state where "0" is 3 dots continuous. That is, the data number "0" of the backdot is represented by the operand "1" and the data portion "0". As a result, a hook dot in which four dots are continuous is indicated as "100010001000". In this case, the remaining one dot is unnecessary when there is previous data, but is required when there is no data. In this case, the back data is encoded, and must be coded under the condition that hook data exists at the end of the data. Therefore, when the processing data is the last, it is determined that there is the last black dot and the processing ends. At the time of decompression, the last black is not represented because it exceeds the predetermined number of data.

다시 제4도의 코드 데이타(403)를 설명하면, 여기서는 변환된 도트 데이타(402)는 수직 방향으로 주사되어 코드화되어 있으며, 먼저 최초의 흑 도트(401)까지는 "74"개의 백 도트가 있으므로 제8도로부터 오퍼랜드가 "1", 데이타부가 (74-56=18) "10010"이 되고, 코드 "0001010010" (411)로 표시된다. 다음에 흑 도트가 연속하고 있기 때문에, 그 코드는 상기와 같이 하여 "1000"(412)로 부호화 되고, 이어서 16개의 백 도트가 연속하고 있기 때문에 "11000"(413)으로 부호화된다. 코드(414)는 다음에 연속하는 흑 도트(420)의 존재를 나타내고, 다음코드(415)는 도트(420)부터 도트(430)까지의 백 도트 수 "29"를 부호화한 코드"100101"이다. 이하, 마찬가지로 하여 도트 패턴(402)를 부호화 하면, 원래 576 비트로 표시된 도트 패턴이 403으로 나타내도록 합계 141 도트의 코드로 표현된다.Referring again to the code data 403 of FIG. 4, here, the converted dot data 402 is scanned and coded in the vertical direction. First, since there are "74" back dots up to the first black dot 401, FIG. From the figure, the operand is " 1 ", the data portion is (74-56 = 18) " 10010 ", and the code " 0001010010 " Next, since the black dots are continuous, the code is encoded as "1000" 412 as described above, and then 16 "dots" (413) are encoded because 16 back dots are continuous. The code 414 indicates the presence of subsequent black dots 420, and the next code 415 is a code " 100101 " that codes the number of back dots " 29 " from dots 420 to dots 430. . In the same manner, when the dot pattern 402 is encoded in the same manner, a total of 141 dots is expressed so that the dot pattern originally expressed by 576 bits is represented by 403.

다음에 제9도의 플로우차트르 참조하여 본 실시예의 폰트 데이타의 압축 처리를 설명한다. 이 처리를 실행하는제어 플로우는 ROM 103(203)에 기억되어 있다.Next, the compression process of the font data of this embodiment will be described with reference to the flowchart of FIG. The control flow for executing this process is stored in the ROM 103 (203).

먼저 스탭 S1은 1문자분의 폰트 데이타를 ROM 103(203)으로 독출하여 워크 메모리(101)의 워크 영역에 기입한다. 다음에 스텝 S2로 진행하여, 워크 메모리(101)에 격납되어 있는 폰트 데이타를 2×2 도트의 도트 매트릭스(501) 단위로, 폰트 데이타의 좌측 끝부터 검색하고, 상기의 제5도에 나타낸 패턴(502-509)와 일치하는 패턴이 존재하는가를 본다. 일치하는 패턴이 존재할 때는 그 매트릭스(501)의 도트(510)에 대응하는 위치의 도트을 백 도트로 변환하는 상기한 예측 함수에 의거하여 처리를 한다. 스텝 S1-스텝 S3에서, 원래의 폰트 데이타의 모든 도트에 대하여 이 처리를 실행한다. 이에 따라 예를 들면 제4도의 402로 표시한 도트 패턴이 얻어진다.First, the staff S1 reads font data for one character into the ROM 103 203 and writes it into the work area of the work memory 101. Subsequently, the procedure proceeds to step S2 where the font data stored in the work memory 101 is retrieved from the left end of the font data in units of a dot matrix 501 of 2x2 dots, and the pattern shown in FIG. See if there is a pattern that matches (502-509). When a matching pattern exists, processing is performed based on the above-described prediction function of converting the dot at the position corresponding to the dot 510 of the matrix 501 into a back dot. In step S1-step S3, this process is performed for all the dots of the original font data. Thereby, the dot pattern shown by 402 of FIG. 4 is obtained, for example.

다음에 스텝 S4으로 진행하여 백 데이타만으로 폰트 패턴을 표현하기 위하여 스텝 S1-S3에서 작성된 도트 패턴을 차례로 주사하여 도트를 검출할 때까지의 백 도트 수를 계수한다. 흑 도트를 검출하면 상기의 제8도에 나타낸 코드화 방식에 따라서 거기까지의 백 도트의 수를 코드화 한다. 스텝 S4-스텝 S6에서는 변환된 도트 패턴의 모두에 대해서 동일한 처리를 하여 모든 데이타를 코드화한다.Next, the flow advances to step S4 to scan the dot pattern created in steps S1-S3 in order to express the font pattern only with the back data, and counts the number of back dots until the dot is detected. When black dots are detected, the number of back dots up to that point is coded according to the coding scheme shown in FIG. Step S4-Step S6 performs the same processing on all of the converted dot patterns to code all the data.

이렇게하여 코드화가 종료하면 스텝 S7로 진행하여, 그 압축된 폰트 데이타를 워크 메모리(101) 또는 다른 메모리 등으로 기입한다. 그리고 스텝 S8로 진행하여 압축된 폰트 데이타에 문자 코드를 대응시켜 폰트 테이블을 작성한다. 이와 같은 처리를 진행함으로써 "576" 비트의 원래 폰트 데이타가, 예를 들면 제4도의 코드(403)에서 나타낸 바와 같이 "141"비트로 압축되어 기억된다.When coding is completed in this manner, the flow advances to step S7 to write the compressed font data into the work memory 101 or another memory. The flow advances to step S8 to associate a character code with the compressed font data to create a font table. By proceeding with such a process, the original font data of "576" bits is compressed and stored into "141" bits, for example, as shown by code 403 of FIG.

실시예 2Example 2

제 10도는 본 발명의 제2실시예의 압축 방법을 설명하기 위한 도면이다. 이 제2실시예는, 상기의 제1실시예에서는 예측 함수를 사용하여 백 도트 수를 증대시켰던 것에 대하여, 이 제2실시예에서는 폰트 데이타의 상하좌우 방향에 대하여 배타적 논리합을 실시함으로써 실현하고 있다.10 is a view for explaining the compression method of the second embodiment of the present invention. In the second embodiment, the number of back dots is increased by using the prediction function in the first embodiment, and in the second embodiment, an exclusive logical sum is performed on the up, down, left, and right directions of the font data. .

제10도에 있어서, 710은 제1실시예와 마찬가지로 24도트×24도트로 구성되는 문자 "H"의 폰트 데이타를 나타내고 있다. 711은 후술하는 처리에 의하여 백 도트 수를 증대시킨 결과를 나타내고, 712는 그것을 코드화한 결과를 나타내고 있다.In Fig. 10, 710 denotes font data of the letter " H " composed of 24 dots x 24 dots, similarly to the first embodiment. 711 shows a result of increasing the number of back dots by the processing described later, and 712 shows a result of coding it.

제11도는 이 배타적 논리합에 의한 백 도트 수를 증대시키는 처리를 설명하기 위한 도면이고, 제11(A)도에서는 먼저 폰트 데이타의 종 방향의 데이타에 대하여 좌우열 데이타끼리의 배타적 논리합을 취하고, 그 결과를 우측의 데이타 열에 세트한다. 데이타의 처리는 모두 열 단위로 행하고, 계산 처리 후의 데이타 열도 열 단위로 세트한다. 이 경우에는 가장 좌측 끝의 열데이타는 처리되지 않고, 원래의 폰트 데이타가 남게 된다. 이 처리를 폰트 데이타 횡폭 처리를 종료한다.FIG. 11 is a diagram for explaining the process of increasing the number of back dots by this exclusive logical sum. In FIG. 11 (A), an exclusive logical sum of left and right column data is first taken for data in the longitudinal direction of font data. Set the result in the data column on the right. All data processing is performed in units of columns, and the data columns after the calculation processing are also set in units of columns. In this case, the leftmost column data is not processed and the original font data remains. This process ends the font data width processing.

다음에 제11(B)에 나타낸 바와 같이 폰트 데이타 행 방향의 데이타끼리의 배타적 논리합을 취해, 그 결과를 하측의 행에 세트하는 처리를 각행에 대하여 차례로 실행한다. 이에 의하여 가장 윗행의 데이타는 처리되지 않고 원래의 폰트 데이타가 남게 된다. 또한 폰트 데이타가 24×24의 폰트 데이타이면 횡 방향 및 종 방향의 처리 횟수는 각각 24회가 된다.Next, as shown in the eleventh (B), an exclusive logical OR of data in the font data row direction is taken, and the result of setting the result in the lower row is sequentially executed for each row. As a result, the data in the top row is not processed and the original font data remains. If the font data is 24x24 font data, the number of processing in the lateral direction and the longitudinal direction is 24 times, respectively.

이렇게 하여 처리된 결과가 제10도의 711로 표시되고, 그것을 상기의 제1실시예와 마찬가지로하여 코드화한 결과가 712로 표시되어 있다.The result thus processed is indicated by 711 in FIG. 10, and the result of encoding it in the same manner as in the first embodiment described above is indicated by 712. FIG.

다음에 이 제2실시예의 압축 처리를 제12도의 플로우차트를 참조하여 설명한다. 이 처리를 실행하는 제어 프로그램은 ROM 103(203)에 기억되고 있다.Next, the compression process of this second embodiment will be described with reference to the flowchart of FIG. The control program which executes this process is stored in the ROM 103 (203).

스텝 S11에서는, 제1실시예의 스텝 S1과 마찬가지로 원래의 폰트 데이타를 워크 메모리 101(201)에 독입한다. 다음에 스텝 S12에 진행하여, 이 폰트 데이타의 행끼리의 배타적 논리합을 취하고, 그 결과를 하측의 행에 세트하도록 하여 워크 메모리 101(201)에 기입한다. 스텝 S13에서는 행 방향의 모든 데이타 처리가 종료했는지 여부를 조사하여, 행 방향의 처리가 종료되면 스텝 S14로 진행한다. 이번은 폰트 데이타의 열 데이타 끼리의 배타적 논리합을 취하고, 그 결과가 우측의 열 데이타가 되도록 워크 메모리 101(201)에 기입한다. 스텝 S15에서는 열 방향의 모든 데이타에 대한 처리가 종료되었는지를 판단한다. 이렇게 하여 백 도트의 수가 증가된 도트 패턴이 작성되면, 스텝 S16-스텝 S20에 있어서 상기의 스텝 S4-스텝 S8과 마찬가지로 코드화되어 메모리에 격납된다.In step S11, original font data is read into the work memory 101 (201) similarly to step S1 of the first embodiment. Subsequently, the process proceeds to step S12, where an exclusive logical OR of the rows of the font data is taken, and the result is set in the lower row, and is written into the work memory 101 (201). In step S13, it is checked whether or not all data processing in the row direction has been completed. If the processing in the row direction ends, the process proceeds to step S14. This time, the exclusive logical sum of the column data of the font data is taken, and the result is written into the work memory 101 (201) so that the result is the right column data. In step S15, it is determined whether or not the processing for all data in the column direction is finished. In this way, when a dot pattern in which the number of back dots is increased is produced, in step S16 to step S20, it is coded in the same manner as in step S4-step S8 and stored in the memory.

이 플로우차트에서 표시된 처리에 의하여, 예를 들면 제10도에 나타낸 코드데이타(712)가 얻어진다. 이 경우는 원래의 폰트 데이타가 579비트였으나, 171비트의 코드 데이타에 압축되어 있다.By the processing shown in this flowchart, for example, code data 712 shown in FIG. 10 is obtained. In this case, the original font data was 579 bits, but is compressed to 171 bits of code data.

이 제2실시예에서는 상기 제1실시예와 상이한 방법으로 폰트 데이타 중의 백 도트를 증가시켜 폰트 데이타를 코드화했으나, 백 도트를 증가시키는 방법으로서는, 이 이외에도 어떤 방법을 사용해도 좋다. 이와 같이 본 실시예에 의하면 백 도트 수를 증대시켜 백 도트를 점재(点在)시킴으로써 폰트 데이타의 압축율을 향상시키는 것이다.In the second embodiment, the font data is coded by increasing the back dot in the font data in a manner different from that in the first embodiment, but any method other than this may be used as the method of increasing the back dot. As described above, according to the present embodiment, the compression ratio of the font data is improved by increasing the number of back dots to scatter the back dots.

실시예 3Example 3

다음에 본 발명의 제3실시예를 설명한다. 제13도는 제3실시예의 처리를 나타낸 플로우차트이고, 이 처리를 실행하는 제어 프로그램은 상기의 ROM 103(203)에 기억되어 있다.Next, a third embodiment of the present invention will be described. 13 is a flowchart showing a process of the third embodiment, and a control program for executing this process is stored in the above-described ROM 103 (203).

먼저 스텝31에서 ROM 103(203)으로부터 폰트 데이타를 독입하고, 워크 메모리 101(201)의 워크 영역에 격납한다. 다음에 스텝 S32로 진행하여, 상기의 제2실시예에서 사용한 배타적 논리합의 연산을 폰트 데이타의 인접 도트에 대하여 차례로 횡 방향으로 행하고, 스텝 S33에서 처리가 종료되었는지 여부를 판단한다. 스텝 S34에서도 마찬가지로 상기의 제2실시예에서 사용한 배타적 논리합을 종 방향으로 인접하는 도트끼리 실시하여 스텝 S35에서 그 처리가 종료되었는지를 판단한다.First, in step 31, font data is read from the ROM 103 (203) and stored in the work area of the work memory 101 (201). Next, the flow advances to step S32 to perform the exclusive OR operation used in the above-described second embodiment in the transverse direction with respect to the adjacent dots of the font data, and determines whether or not the process is finished in step S33. Similarly, in step S34, the exclusive logical sum used in the above-mentioned second embodiment is performed between dots adjacent to each other in the longitudinal direction, and it is determined whether or not the processing is completed in step S35.

이렇게 하여 스텝 S36으로 진행하여, 상기의 상하·좌우 방향으로 배타적 논리합을 취해 백 도트를 증가시킨 도트 패턴에 대하여, 행 방향에는 좌측부터, 상하방향으로 우측부터 차례로 흑 도트를 검색한다. 이렇게 하여 흑 도트를 발견하면 그 흑 도트에 인접하고 있는 흑 도트가 있는지 여부를 판단한다. 그 결과 스텝 S38에서는 제14도-제15도에 도시한 바와 같이 도트의 X방향(횡 방향)(140), Y방향(종 방향)(141), 다음 흑 데이타가 존재하는 방향을 나타낸 데이타(142)로 이루어지는 3종류의 데이타로 표현한다. 다음에 흑 데이타 방향을 나타낸 데이타는 인접 데이타가 연속하여 존재하는 경우에는 제14도에서 나타낸 내용이 연속하여 기술된다.In this manner, the flow advances to step S36, and the black pattern is searched sequentially from the left in the row direction and the right in the up and down directions for the dot pattern in which the exclusive dot is increased in the vertical, horizontal and left directions. When black dots are found in this way, it is determined whether or not there are black dots adjacent to the black dots. As a result, in step S38, as shown in Figs. 14 to 15, the data indicating the direction in which the dot X direction (the horizontal direction) 140, the Y direction (the longitudinal direction) 141, and the next black data exist ( It is represented by three types of data consisting of 142). Next, the data shown in the black data direction is described continuously in the case shown in FIG. 14 when adjacent data are continuously present.

예를 들면 제15도에 도시한 바와 같이 현재 위치를 지정하고 있는 도트(150)과 다음에 흑 데이타(151)이 도면과 같은 위치 관계일 때는 다음 데이타의 방향을 도시한 데이타(152)에서 도시한 바와 같이, 방향 데이타(142)의 우측 방향을 나타낸 비트만이 "1"이 되어 표시된다. 또 방향이 「오른측으로 기울어진 상측」,「오른족으로 기울어진 하측」, 「왼쪽으로 기울어진 상측」,「왼쪽으로 기울어진 하측」인 경우에는, 예를 들면 방향이 「오른쪽으로 기울어진 상측」일 때에는, 데이타(142)의 「우」와「상」에 대응하는 복수의 비트가 온이 됨으로써 지정된다. 또「좌」,「우」,「상」,「하」의 어느 경우에는 다음 데이타의 방향 데이타(142) 중 어느 한 비트만이 온(1)이 된다. 또한 다음 데이타의 방향 데이타(142) 비트가 모두 '0'일 경우에는 연속하는 데이타가 없음을 나타내고 있다.For example, as shown in FIG. 15, when the dot 150 designating the current position and the next black data 151 have a positional relationship as shown in the drawing, the data 150 shown in the direction of the next data is shown. As described above, only bits indicating the right direction of the direction data 142 are displayed as " 1 ". Moreover, when the direction is "upper side inclined to the right side", "lower side inclined to the right side", "upper side inclined to the left", "lower side inclined to the left", for example, the direction is "upper side inclined to the right" "," Is designated by turning on a plurality of bits corresponding to "right" and "upper" in the data 142. In any case of "left", "right", "up", and "down", only one bit of the direction data 142 of the next data is turned on (1). When all of the direction data 142 bits of the next data are '0', this indicates that there is no continuous data.

이 제3실시예에 의하여 제4도 또는 제10도의 문자 "H"를 코드화 한 결과가 제16도에 도시되어 있다. 또한 이 경우도 코드화의 알고리즘은 상기의 실시예의 경우와 동일하다. 이에 의하여 예를 들면 576 비트의 폰트 데이타가 288 비트의 코드에 압축된다.16 shows the result of encoding the letter "H" in FIG. 4 or 10 according to the third embodiment. Also in this case, the encoding algorithm is the same as in the above embodiment. This compresses, for example, 576 bits of font data into 288 bits of code.

또한 상기의 실시예에서는 폰트 데이타의 백 도트를 증가시키기 위하여 도트 패턴에 종횡 방향의 배타적 논리합을 이용했으나, 상기의 제1실시예에서 사용한 예측 함수, 또는 그 밖의 방법을 사용하여 백 도트를 증가시켜도 좋다.In the above embodiment, the exclusive logical sum of the vertical and horizontal directions is used for the dot pattern to increase the back dot of the font data. However, even if the back dot is increased by using the prediction function or other method used in the above first embodiment, good.

또, 백 도트를 증가시키는 방법으로서는 상기한 실시예의 방법에 한정되지 않고 여러 가지의 방법을 적용할 수 있다. 게다가 본 실시예에서는 백 도트 수를 증가시켰으나, 흑 도트 수를 증가시켜도 좋다.In addition, the method of increasing the back dot is not limited to the method of the above-described embodiment, and various methods can be applied. In addition, in the present embodiment, the number of back dots is increased, but the number of black dots may be increased.

본 실시예는 2개의 백 도트를 증가시키는 방법(예측 함수법, 상하 좌우의 배타적 논리합)에 관하여 기재했으나, 그 방법은 어떤 방법이어도 좋다. 또 문자종류등에 따라서는 백 도트 수를 증가시키지 않고, 백 및 흑 도트 단독으로 표현할 수도 있다.Although the present embodiment has described a method of increasing two back dots (predictive function method, exclusive logical sum of up, down, left, and right), any method may be used. Depending on the character type or the like, the white and black dots may be expressed alone without increasing the number of back dots.

또 코드화의 방법에 괸해서도 제3실시예에 나타낸 바와 같이 폰트 데이타 중의 흑 또는 백 데이타에 착안하여 압축하는 수법을 실시하는 것이라면 어떠한 코드화 처리를 채용해도 좋다.In addition to the method of encoding, as shown in the third embodiment, any encoding process may be employed as long as the technique of focusing on and compressing black or white data in the font data is performed.

이상 설명한 바와 같이 본 실시예에 의하면 흑 또는 백, 단독으로 데이타로 폰트 데이타를 코드화하여 압축함으써 압축율이 향상되고, 폰트 데이타를 탐재하는 장치의 기억 소자의 용량을 감소시킬 수가 있다.As described above, according to the present embodiment, the compression ratio is improved by encoding and compressing the font data into black or white data alone, and the capacity of the storage element of the device interrogating the font data can be reduced.

또, 본 실시예의 폰트 압축 방법에 의하면 신장 처리를 간소화시킬 수 있다.In addition, according to the font compression method of the present embodiment, the decompression processing can be simplified.

이상 설명한 바와 같이 본 발명에 의하면 폰트 데이타를 고효율로 압축할 수 있는 효과가 있다.As described above, the present invention has the effect of compressing font data with high efficiency.

실시예 4Example 4

이하 본 발명의 제4실시예를 설명한다.Hereinafter, a fourth embodiment of the present invention will be described.

제17도는 압축된 압축 폰트를 탑재가능한 인자 장치의 블럭도이다. 여기서 102는 인자 장치의 전체를 제어하기 위한 CPU로서, 압축 폰트를 신장하는 기능도 겸비하고 있다. 101은 신장하기 위한 압축 폰트를 일시 격납하기 위한 워크 메모리로서, 신장 처리 중에는 이 중에서 모든 데이타 변환이 행해진다. 103은 ROM이고, 본 실시예 특유의 압축 방법에 의하여 압축된 압축 폰트와 장치 전체를 제어하기 위한 프로그램 및 인자를 위하여 사용되는 각종 파라미터의 데이타가 격납되어 있다.Fig. 17 is a block diagram of a printing apparatus capable of loading a compressed compressed font. 102 denotes a CPU for controlling the entire printing apparatus, and also has a function of expanding a compressed font. Reference numeral 101 denotes a work memory for temporarily storing compressed fonts to be decompressed, and all data conversion among them is performed during decompression processing. Numeral 103 denotes a ROM, which stores compressed fonts compressed by a compression method peculiar to the present embodiment, and data of various parameters used for programs and parameters for controlling the entire apparatus.

104는 상위 장치로부터 데이타를 수신하기 위한 데이타 수신부이다. 105는 인자되는 데이타를 격납하기 위한 인자 메모리이고, 압축 폰트를 신장시킨 데이타도 이 인자 메모리 상에 비트 맵 데이타로서 전개되어 기록매체 상에 인자된다. 106은 인자를 행하기 위하여 필요한 데이타의 제어 및 인자 비트 제어를 하기 위한 인자 제어부이다.104 is a data receiving unit for receiving data from the host device. Numeral 105 denotes a print memory for storing data to be printed, and data in which the compressed font is expanded is also developed as bit map data on the print memory and printed on the recording medium. 106 denotes a print control unit for controlling data necessary for printing and controlling the print bit.

상기 인자 장치에 탑재되는 폰트 데이타는 제18도의 내부 구조를 가진 ROM상에 격납되어 있다. 여기서 301은 본 장치의 제어에 필요한 프로그램의 격납영역이고, 본 인자 장치는 이 프로그램에 따라 제어된다. 302는 본 장치의 제어에 필요한 데이타가 격납되어 있는 영역이다. 303은 폰트 데이타의 격납 영역이다. 이 폰트 데이타는 압축된 데이타부와 그 압축된 데이타 수 및 신장에 필요한 데이타 테이블(304)로 구성되어 있다.The font data mounted on the printing device is stored on a ROM having the internal structure of FIG. Here, 301 is a storage area of a program necessary for controlling the apparatus, and the printing apparatus is controlled according to this program. 302 is an area in which data necessary for controlling the apparatus is stored. 303 is a storage area for font data. This font data is composed of a compressed data portion and a data table 304 necessary for the number and compression of the compressed data.

또한, 상기 ROM은 데이타의 용량, ROM의 용량에 의하여 복수의 기억 소자에 분할되어 있는 경우도 포함된다.Note that the ROM is also divided into a plurality of storage elements by the capacity of the data and the capacity of the ROM.

제19도는 폰트 데이타의 백 도트를 많게 하기 위한 처리에 관하여 기재한 것이다. 폰트의 원래 데이타에 대하여 제19도(C)도에 나타낸 바와 같이 폰트 박스 상부에 폰트 데이타, 횡폭분, 폰트 박스의 종폭분 좌단에 1도드씩 데이타를 부가하고 상하좌우 2비트씩 박스형의 영역을 만들고 제16(A)도에 도시한 패턴을 검색하고 이 패턴과 일치하는 경우에는 제17(A)도의 d의 위치 처리 대상 도트에 치환한다. 이 패턴과 일치하지 않는 경우에는 제19(A)도의 d의 위치 처리 대상 도트를 흑 도트로 치환하다.Fig. 19 describes the processing for increasing the number of back dots of font data. As shown in FIG. 19 (C) with respect to the original data of the font, font data, width width, and data of the font width of the font box are added by one dot to the left end of the font box, and the box-shaped area is divided into two bits up, down, left, and right. The pattern shown in Fig. 16 (A) is searched and replaced with the position processing target dot in d in Fig. 17 (A) when it matches the pattern. When it does not match this pattern, the position processing target dot of d of FIG. 19 (A) is replaced by black dot.

이것을 보다 상세히 설명하면 다음과 같다.This will be described in more detail as follows.

먼저, 종 48*횡 48의 폰트 박스 상부에 1도트, 좌단에 1도트, NULL 데이타를 폰트 본래 데이타에 부가하여, 전체로서 384도트로 형성되는 폰트 데이타로 변환된다. 다음에, 데이타를 부과하지 않는 폰트 본래 데이타의 좌상부로부터 차례로 2×2의 마스크로 데이타를 샘플링한다(최초의 데이타인 경우 2×2의 데이타의 우하의 데이타가 본래 폰트의 최초의 데이타로 우상, 좌상, 좌하의 데이타는 모두 부가된 NULL 데이타이다.)First, one dot at the top of the vertical 48 * 48 font box, one dot at the left end, and NULL data are added to the font original data, and converted into font data formed of 384 dots as a whole. Next, data is sampled in the order of 2x2 masks from the upper left of the font original data that does not impose data (in the case of the first data, the lower right data of the 2x2 data is the upper right of the original font). , Upper left and lower left are all added NULL data.)

샘플링된 데이타는 제19도(A)의 패턴과 비교되어, 그중의 하나와 같으면 예측 후의 데이타를 "0"으로 하고, 같은 것이 하나도 없으면, 예측 후의 데이타를 "1'로 한다. 제19(A)의 예측 함수는 폰트의 특징에 맞춘 것이기 때문에, 본래 데이타로부터 예측 후의 데이타는 "0"이 많아진다.The sampled data is compared with the pattern in FIG. 19A, and if it is equal to one of them, the predicted data is set to "0", and if none is found, the predicted data is set to "1". Since the predictive function in () is adapted to the characteristics of the font, the data after the prediction from the original data increases by "0".

제19(B)는 제19도(A)의 데이타를 표로 표시한 것이다.FIG. 19B shows the data of FIG. 19A in a table.

백 도트, 흑 도트에의 치환은 백, 흑 어느 데이타를 증가시키느냐에 따라 패턴을 변경할 필요가 있다. 본 실시예의 제19도(B)는 백 도트를 증가시키기 위한 데이타 변환표이다.In the replacement of the back dots and the black dots, it is necessary to change the pattern depending on which data is increased. 19B of this embodiment is a data conversion table for increasing the back dot.

제20도는, 제19도에서 설명한 방법에 의해 백 도트 수를 증가시킨 예를 문자 "H"를 사용하여 설명한 것이다. 처리의 방법은 데이타의 좌상으로부터 상하 좌우 2도트의 데이타를 취하고, 제19도(B)에 따라 데이타의 치환을 행한다. 1행의 처리가 종료하면 다음 행의 첫번 선두로 뒤돌아가서 처리가 계속되고 데이타의 최후까지 같은 처리를 행한다.20 shows an example in which the number of back dots is increased by the method described in FIG. 19 using the letter "H". In the method of processing, the data is taken from the upper left and right sides of the data from two dots, and the data is replaced according to Fig. 19B. When the processing in one row is finished, the processing returns to the first head of the next row and processing continues, and the same processing is performed until the end of the data.

즉, 제20도는 상술한 변환 방법을 이용하여 문자 "H"의 데이타를 변환시킨 것이다. 변환 절차는 본래 폰트 좌상으로부터 1도트씩 2×2의 마스크의 우하에 배치하고, 제19도(A)의 패턴과 적합하는지를 조사하여, 예측함수 후의 데이타를 작성한다.That is, Fig. 20 converts the data of the letter " H " using the above-described conversion method. The conversion procedure is placed at the bottom of the mask of 2x2 by one dot from the top left of the original font, checks whether it matches the pattern of Fig. 19A, and creates data after the prediction function.

처리는 종 방향으로 행하기 위해, 2번째는 좌상, 좌하는 부가된 데이타로 우상과 전회의 처리 대상 데이타로, 우하가 이번의 대상 데이타가 된다.In order to carry out the processing in the longitudinal direction, the second is the upper left and the left added data, the upper right and the previous processing target data, and the lower right becomes the current target data.

종1행의 처리가 종료하면, 우측으로 이동하여 종 방향에는 본래 폰트의 첫번째 상으로 뒤돌아간다(우상, 좌상이 부가된 데이타로, 좌하가 1행 전의 종 방향으로 같은 위치의 데이타, 우하는 처리대상 데이타).When the processing of one vertical line is finished, it moves to the right side and returns to the first image of the original font in the vertical direction (data with the upper right and the upper left added, the data at the same position in the longitudinal direction before the lower left one row, and the lower right processing) Target data).

이것을 본래 폰트 분을 되풀이 하여, 예측 함수 후의 데이타를 형성한다. 예를 들어, 문자 "H"인 경우, 최초의 데이타는 '0"으로 2×2의 마스크를 형성하는 데이타 중, 처리 대상 데이타 이외는 부가된 NULL 데이타이기 때문에, 제19도(A)의 좌상과 적합되도록 하기 위해 예측 함수 후의 데이타는 "0"이 된다. 이와 같은 처리를 반복하여, 예측 함수 후의 데이타는 제20도의 402와 같이 되어, 제20도의 401의 본래 데이타보다 데이타 "0"의 도트가 증가하고 있음을 알 수 있다.This is repeated for the original font to form data after the prediction function. For example, in the case of the letter "H", since the first data is "0" and the data forming the mask of 2x2 is NULL data added other than the data to be processed, the upper left of Fig. 19A. The data after the prediction function is " 0 " in order to make it fit to ". &Quot; By repeating this processing, the data after the prediction function becomes 402 in FIG. 20, and the dot of data " 0 " It can be seen that is increasing.

그 결과가 402이다. 401에 비하여, 백 데이타가 증가하고 있음을 알 수 있다. 403은 상기 백을 증가시키는 처리를 행한 후에, 제21도에 나타낸 표에 따라 데이타를 코드한 결과이다. 예를 들면, 백 데이타가 25도트 연속한 후에 흑 도트가 있을 경우는, "100001", 흑 도트가 4도트 연속할 경우는 "100010001000"이 되고, 흑 도트 분이 백 데이타 없이 표현된다.The result is 402. Compared to 401, it can be seen that the back data is increasing. 403 is the result of coding the data according to the table shown in FIG. 21 after performing the process of increasing the bag. For example, when there are black dots after 25 dots of continuous data, it is "100001", and when black dots are continuous by 4 dots, it is "100010001000", and the black dots are represented without the back data.

이 경우, 남은 1도트 분은 전회의 데이타가 갖는 경우는 불필요하지만, 데이타가 없을 경우는 필요하게 된다.In this case, the remaining one dot is unnecessary when the previous data is present, but is required when there is no data.

또, 상기 코드는 백 데이타에 대하여 기재되어 있으나, 반드시 데이타의 최후미에는 흑 데이타가 있다는 조건으로 기재되어 있다.Although the above code is described with respect to the back data, it is always described under the condition that black data is at the end of the data.

처리 데이타가 맨 최후인 때에는, 최후에 흑 도트가 있다고 판단하여 처리를 끝낸다. 신장시에는 최후의 흑은 소정 데이타 수를 초과하고 있기 때문에 표현되지 않는다.When the processing data is the last, it is determined that there is a black dot at the end, and the processing ends. At the time of decompression, the last black is not represented because it exceeds the predetermined number of data.

다음에, 제22도를 사용하여 본 실시예의 제어 플로우를 설명한다.Next, the control flow of this embodiment is explained using FIG.

STEP 1에서는, 폰트 데이타의 독출부에 해당하고, 1문자 분의 데이타를 모두 도시 안된 워크 메모리에 독입한다.In STEP 1, it corresponds to the reading part of the font data, and all data for one character is read into the work memory which is not shown in figure.

STEP 2에서는 워크 메모리에 격납되어 있는 폰트 데이타를 상하 좌우 2도트의 블럭으로 분할하여, 폰트의 좌로부터 처리한다. 처리 내용은 제19도에 표시된 바와 같다.In step 2, the font data stored in the work memory is divided into two dots of up, down, left and right, and processed from the left of the font. The processing contents are as shown in FIG.

STEP 3은 모든 데이타의 처리가 끝난 것을 확인하기 위한 것이다.STEP 3 is to ensure that all data has been processed.

STEP 4은 백 데이타만으로 표현하기 위한 처리이고, 먼저 흑 데이타가 발생하기까지 백 데이타를 계산한다. 흑이 발생한 단계에서, 그 곳까지의 백 데이타를 제21도의 표에 따라 코드화한다(STEP 5).STEP 4 is a process for expressing only white data, and first calculates white data until black data is generated. In the stage where black has occurred, the white data up to that point is coded according to the table of Fig. 21 (STEP 5).

STEP 6은 모든 데이타가 처리되었는지 여부를 판단하는 판단 스텝이다.STEP 6 is a judgment step of determining whether all data has been processed.

STEP 7에서는 압축 데이타로서 도시 안된 메모리에 서입한다.STEP 7 writes to memory not shown as compressed data.

STEP 8에서는 압축 데이타에 대응한 정보에 따라 테이블을 작성한다.In STEP 8, tables are created according to the information corresponding to the compressed data.

상기 처리를 행함으로서, 예를 들면 폰트 본래 데이타로 576 비트의 데이타가 제20도의 403에 표시한대로 141 비트로 표현할 수 있다.By performing the above process, for example, 576 bits of data in the font original data can be represented by 141 bits as indicated by 403 in FIG.

본 실시예에 있어서는, 인자 장치에 탑재되어 폰트 데이타의 압축 수단에 관하여 기재했으나, 제23도에 표시하는 표시 장치에서도 데이타 처리의 순번을 상하방향으로부터 좌우방향으로 변경시킴으로써, 동일한 압축처리가 가능하다.In the present embodiment, the font data compression means mounted on the printing device has been described. However, the same compression process is possible by changing the order of data processing from the up-down direction to the left-right direction in the display device shown in FIG. .

제23도에 있어서, 202는 표시 장치의 전체를 제어하기 위한 CPU이고, 압축폰트를 신장하는 기능도 구비하고 있다. 201은 신장하기 위한 압축 폰트를 일시 격납하기 위한 워크 메모리이고, 신장 처리 중에는 이 중에서 모든 데이타의 변환이 행하여진다. 203은 ROM이고, 본 실시예 특유의 압축 방법에 의해 압축된 압축 폰트와 장치 전체를 제어하기 위한 프로그램, 표시하기 위해 사용되는 각종 파라미터의 데이타가 격납되어있다.In FIG. 23, reference numeral 202 denotes a CPU for controlling the entire display device, and also has a function of extending a compression font. 201 is a work memory for temporarily storing compressed fonts for decompression, and all data are converted among them during decompression processing. 203 is a ROM, which stores a compressed font compressed by a compression method peculiar to this embodiment, a program for controlling the entire apparatus, and data of various parameters used for display.

204는 상위 장치로부터 데이타를 수신하기 위한 데이타 수신부이다. 205는 표시되는 데이타를 격납하기 위한 표시용 메모리이고, 압축 폰트를 신장한 데이타도 표시용 메모리 상에 비트맵 데이타로서 전개되어, 표시 매체 상에 표시된다. 206은 표시를 하기 위해 필요한 휘도의 제어 및 표시 위치의 제어를 하기 위한 표시 제어부이다.204 is a data receiving unit for receiving data from the host device. 205 is a display memory for storing data to be displayed, and data in which the compressed font is expanded is also developed as bitmap data on the display memory and displayed on the display medium. 206 is a display control unit for controlling the luminance necessary for displaying and controlling the display position.

실시예 5Example 5

제24도는 본 발명의 제5의 실시예를 도시한 설명도이다. 제5의 실시예와 제1의 실시예와의 상이점은 다음과 같다. 백 도트를 증가시키는 처리에 있어서, 제1의 실시예에서는 예측 함수를 사용했는데 비하여, 제5의 실시예에서는 상하좌우 방향에 대하여 배타적 논리합 처리를 실시함으로써 실행하고 있다.24 is an explanatory diagram showing a fifth embodiment of the present invention. The differences between the fifth embodiment and the first embodiment are as follows. In the process of increasing the back dot, the first embodiment uses a prediction function, whereas in the fifth embodiment, the processing is performed by performing an exclusive OR operation on the up, down, left, and right directions.

제24도의 701은 제1의 실시예와 동일하게 24도트×24도트로 구성되는 "H"의 문자로 표시하고 있다.701 in FIG. 24 is indicated by the letter " H " composed of 24 dots × 24 dots as in the first embodiment.

제25도(A)에 도시한 바와 같이, 백 도트를 증가시키는 방법으로서, 먼저 폰트의 종 데이타에 대하여 좌우의 열 데이타의 배타적 논리합 처리를 실시하고, 우측의 데이타에 세트한다. 데이타 처리는 모두 열 단위로 행하고, 처리 후의 데이타도 열 단위로 세트한다. 맨 좌의 열의 데이타는 처리하지 않고, 본래 데이타가 남는다.As shown in FIG. 25A, as a method of increasing the back dot, an exclusive OR operation of left and right column data is first performed on the seed data of the font, and the data is set to the right data. All data processing is performed in units of columns, and the data after the processing is also set in units of columns. The data in the leftmost column is not processed, and the original data remains.

이 처리를 폰트 데이타의 횡폭(橫幅)분을 반복하여, 처리를 종료한다.This process is repeated for the width of the font data to end the process.

다음에, 폰트 데이타의 종 방향에 대하여 상하의 데이타를 배타적 논리합 처리를 실시하고, 하측에 데이타를 세트한다. 맨 위의 열의 데이타는 처리하지 않고, 본래의 데이타가 남는다.Next, the exclusive OR operation is performed on the upper and lower data in the longitudinal direction of the font data, and the data is set on the lower side. The data in the top row is not processed, leaving the original data.

이 종 방향의 배타적 논리합 처리를 데이타의 종폭 분을 반복하여, 처리를 끝낸다. 본 실시예의 경우, 데이타 수는 24×24의 데이타 수를 위해, 종횡의 반복 회수는 양쪽 모두 24회이다.This longitudinal OR processing is repeated by repeating the length of the data. In the case of the present embodiment, the data count is 24 × 24, so that the number of repetitions in both sides is 24.

다음에, 본 실시예의 동작을 제26도의 플로우차트를 사용하여 설명한다. STEP 1에서는 제4의 실시예와 동일하게 본래 폰트 데이타를 메모리에 독입한다.Next, the operation of this embodiment will be described using the flowchart of FIG. In step 1, original font data is read into the memory as in the fourth embodiment.

STEP 2에서는 상기 횡 방향의 배타적 논리합을 행하여, 먼저 메모리에 서입한다.In STEP 2, the exclusive logical OR of the lateral direction is performed, and the memory is first written to the memory.

STEP 3에서는 횡 방향의 모든 데이타의 처리가 끝난 것을 확인한다. 그후, STEP 4에 상기 종 방향에 배타적 논리합을 행하여 메모리에 서입한다.STEP 3 confirms that all data in the horizontal direction has been processed. Thereafter, an exclusive logical OR is performed in the longitudinal direction in STEP 4 to be written into the memory.

STEP 5에서는 횡 방향의 모든 데이타의 처리가 종료된 것을 확인한다.STEP 5 confirms that the processing of all data in the lateral direction has been completed.

STEP 6 내지 STEP 10은 제4의 실시예의 동작을 표시한 제22도의 STEP 4 내지 STEP 8에 대응하며 내용은 동일하다.STEP 6 to STEP 10 correspond to STEP 4 to STEP 8 of FIG. 22 showing the operation of the fourth embodiment, and the contents are the same.

상기 제어 플로우에서 설명한 처리를 실시함으로써, 제24도의 703에 표시된 결과가 얻어지고, 본래 데이타로 579 비트의 폰트 데이타를 171 비트의 코드 데이타에 압축할 수 있다.By performing the processing described in the above control flow, the result shown in 703 in FIG. 24 is obtained, and 579 bits of font data can be compressed into 171 bits of code data as original data.

본 실시예는 제4의 실시예와 다른 방법으로 백 도트를 증가시켜 폰트 데이타를 코드화했으나, 백 도트를 증가시키는 방법은 어떤 방법도 사용할 수 있으며, 백 도트의 수가 증가하고 또한, 백 도트가 점재함으로써 압축율은 더욱 향상한다.In this embodiment, the font data is coded by increasing the back dot in a manner different from that in the fourth embodiment, but any method of increasing the back dot can be used, and the number of the back dots increases, and the back dots are dotted. As a result, the compression ratio is further improved.

실시예 6Example 6

제27도는 본 실시예의 제어 플로우를 나타낸다. STEP 1에서는 폰트 데이타를 독입하고, 도시안된 워크 메모리 상에 배치된다. STEP 2에서는, 전술한 제5의 실시예에서 사용한 배타적 논리합을 횡 방향에 행하고, STEP 3에서는 처리의 종료를 확인한다.27 shows the control flow of this embodiment. In step 1, font data is read and placed on a work memory, not shown. In STEP 2, the exclusive logical sum used in the above-mentioned fifth embodiment is performed in the horizontal direction, and in STEP 3, the end of the process is confirmed.

STEP 4에서도 동일하게, 전술한 제5의 실시예에서 사용하나 배타적 논리합을 종 방향으로 행하고, STEP 5에서는 처리의 종료를 확인한다.Similarly in STEP 4, the exclusive logical sum used in the above-described fifth embodiment is performed in the longitudinal direction, and in STEP 5, the end of the processing is confirmed.

STEP 6에서는 전술한 상하죄우 방향으로 배타적 논리합을 행하는 수법에 의해 백 도트를 증가시킨 데이타에 대하여, 훅 도트를 좌우 방향에는 좌측으로부터 상하 방향에는 상부로부터 차례로 검색한다. 그리고, 훅 도트를 발견한 경우에는 그 도트에 인접한 훅 도트가 있나 없나를 검색한다(STEP 7).In STEP 6, the hook dots are searched sequentially from the left in the left and right directions from the top in the left and right directions for data in which the back dot is increased by the above-described method of performing an exclusive OR in the upper and lower sinus directions. When a hook dot is found, it is searched whether there is a hook dot adjacent to the dot (STEP 7).

그 결과에 의해, STEP 8에서는 제28도에 표시되어 있는 도트의 X방향(횡 방향), Y방향(종 방향), 다음 데이타의 방향의 3종류 데이타로 표현한다. 다음 데이타의 방향의 3종류 데이타로 표현한다. 다음 데이타의 방향 데이타는 인접 데이타가 연속하여 존재할 경우에는 제28도(A)로서 표시된 내용이 연속하여 기술된다. 우측 경사상, 우측 경사하, 좌측 경사상, 좌측 경사하 데이타는 다늠 데이타의 바향의 데이타 비트가 복수 액티브가 됨으로써 표현된다.As a result, in STEP 8, it expresses with three types of data of the X direction (lateral direction), Y direction (vertical direction), and the direction of the next data of the dot shown in FIG. It is represented by three kinds of data of the direction of the next data. The direction data of the next data is described in succession as indicated in FIG. 28A when adjacent data are continuously present. The right inclined, right inclined, left inclined, and left inclined data are represented by a plurality of active data bits of multiple data.

또, 우, 좌, 상하의 데이타는 다음의 데이타의 방향의 데이타가 1비트만 액티브하게 된다. 다음 데이타 방향의 데이타가 모두 "0"인 경우에는, 연속 데이타가 존재하지 않음을 의미한다.In the data of the right, left, and top and bottom, only one bit of data in the direction of the next data becomes active. If all data in the next data direction are "0", it means that there is no continuous data.

본 실시예의 방법에 의해 제24도의 701에 표시되 "H"문자를 코드화한 결과가 제28(C)이다. 즉, 본래 데이타 576 비트에 대하여 288 비트에 코드화되어 압축되고 있다.28 (C) shows the result of encoding the letter “H” shown in 701 in FIG. 24 by the method of the present embodiment. That is, the original data is coded and compressed into 288 bits for 576 bits of data.

본 실시예에서는 백 도트를 증가시키는 방법에 종횡 방향의 배타적 논리합을 사용했으나, 제4의 실시예에서 사용한 예측 함수 및 그 외의 백 도트를 증가시키는 방법으로도 실현가능하다.In this embodiment, an exclusive logical OR in the longitudinal direction is used for the method of increasing the back dot, but it is also possible to realize the prediction function and other methods of increasing the back dot used in the fourth embodiment.

또, 백 도트를 증가시키는 방법은 본 실시예의 방법에 한정되지 않고, 어떤 방법으로도 가능하다.Incidentally, the method of increasing the back dot is not limited to the method of the present embodiment, but may be in any manner.

본 실시예에 있어서, 모두 백 도트를 증가시키는 수법을 사용했으나, 흑 도트를 증가시키는 방법으로 상관없다. 본 발명의 실시예로서 2개의 백 도트를 증가시키는 방법(예측 함수법, 상하 좌우의 배타적 논리합)에 대하여 기재했으나, 그 방법은 어떤 방법으로도 가능하다. 문자의 종류 등에 의해 상기 백 도트를 증가시키는 방식을 사용하지 않고, 백 및 흑 도트 단독으로 표현하는 것도 가능하다.In this embodiment, all the methods of increasing the back dot were used, but it does not matter as a method of increasing the black dot. As an embodiment of the present invention, a method of increasing two back dots (predictive function method, exclusive logical sum of up, down, left, and right) is described, but the method may be used in any method. It is also possible to express by white and black dots alone, without using the method of increasing the said back dot according to the kind of characters.

또, 코드화의 숫법에 대하여도 제3실시예에 표시한 바와 같이, 폰트 데이타 중의 흑 또는 백 데이타에 주목하여 압축하는 수법을 실시하는 것이면, 어떤 크드화의 수법을 사용하여도 실현가능하며, 그 효과에 변화는 없다.In addition, as shown in the third embodiment, as to the numbering method of encoding, if the technique of paying attention to the black or white data in the font data is carried out and compressed, it is possible to use any method of coding. There is no change in the effect.

이상에서 설명한 바와 같이 본 발명에 의하면, 흑 또는 백 단독의 데이타로 폰트 데이타를 코드화하고 압축함으로써, 압축율이 향상되어 폰트 데이타의 기억소자의 용량을 감소할 수가 있다.As described above, according to the present invention, by encoding and compressing the font data with black or white data alone, the compression ratio is improved, and the capacity of the storage element of the font data can be reduced.

또, 본 발명을 적용한 폰트 압축 처리에 의하면, 백 또는 흑 단독의 데이타로 폰트 데이타를 코드화하기 위해 압축 탑재한 장치에서는 압축 폰트를 정규의 폰트에 전개하는 신장 방법이 간소화된다.Further, according to the font compression process to which the present invention is applied, the decompression method of expanding the compressed font into a regular font is simplified in the apparatus equipped with compression to encode the font data into white or black data alone.

이렇게 하여, 저가격이면서 고기능을 갖는 인자장치 및 표시 장치를 표현하는 것이 가능하다.In this way, it is possible to represent a printing device and a display device having low cost and high functionality.

Claims (8)

비트맵 폰트데이타의 0 또는 1의 데이타 중 어느 하나를 증가시키도록 폰트 데이타를 변환하는 변환 공정 및 그 변환된 폰트 데이타에서 증가된 데이타의 연속되는 길이와 증가되지 않는 데이타를 증가된 데이타의 수 0으로 하여 코드화하는 공정을 갖는 것을 특징으로 하는 정보 처리 방법.A conversion process of converting font data to increment either zero or one data of the bitmap font data, and the successive length of the increased data in the converted font data and the number of data increased by zero. The information processing method characterized by having the process of coding as a function. 제1항에 있어서, 상기 변환 공정이 예측 함수에 근거하여 폰트 데이타의 0 또는 1의 데이타 중 어느 하나를 증대시키는 것을 특징으로 하는 정보 처리 방법.The information processing method according to claim 1, wherein the conversion step increments any one of zero or one data of font data based on a prediction function. 제1항에 있어서, 상기 변환 공정이 폰트 데이타의 행 또는 열끼리의 배타적 논리합에 따라 폰트 데이타의 0 또는 1의 데이타중 어느 하나를 증대시키는 것을 특징으로 하는 정보 처리 방법.The information processing method according to claim 1, wherein the converting step increments any one of zero or one data of the font data according to an exclusive logical OR of rows or columns of font data. 제1항에 있어서, 상기 변환 공정이 폰트 데이타의 행 또는 열 방향에 인접하는 도트끼리의 배타적인 논리합에 따라 폰트 데이타의 0 또는 1의 데이타중 어느 하나를 증대시키는 것을 특징으로 하는 정보 처리 방법.The information processing method according to claim 1, wherein the conversion step increases one of zero or one data of the font data according to an exclusive logical sum of dots adjacent to the row or column direction of the font data. 비트 맵 폰트 데이타의 0 또는 1의 데이타 중 어느 하나를 증가시키도록 폰트 데이타를 변환하는 변환 수단 및 그 변환된 폰트 데이타에서 증가된 데이타의 연속되는 길이와 증가되지 않는 데이타를 증가된 데이타의 수 0으로 하여 코드화하는 부호화 수단을 갖는 것을 특징으로 하는 정보 처리 장치.Conversion means for converting the font data to increment one of zero or one data of the bitmap font data, and a continuous length of the increased data in the converted font data and the number of the data increased by zero. And encoding means for encoding the data. 종 N라인, 횡 M라인으로 구성되는 문자·도형 폰트의 도트 구성에 소정의 처리를 실행함으로써 백 또는 흑 데이타의 한 쪽 데이타를 다른 쪽 데이타로 치환하는 데이타 변환 수단 및 상기 데이타 변환 수단으로 변환된 데이타에 대하여 연속 데이타와 연속 데이타가 없는 것을 표시한 데이타를 포함하는 형태로 란렌그스법에 의해 압축 코드화하는 압축 수단을 구비한 것을 특징으로 하는 정보 처리 장치.Data conversion means for replacing one piece of white or black data with the other data by converting the dot data of the character / graphic font composed of vertical N lines and horizontal M lines into the other data and converted into the data conversion means. And compression means for compressing and encoding the data by the Lanlens method in a form including continuous data and data indicating that there is no continuous data. 제6항에 있어서, 상기 압축 수단이 연속 데이타 없이 코드르 형성하는 것을 특징으로 하는 정보 처리 장치.An information processing apparatus according to claim 6, wherein said compression means forms a code without continuous data. 제6항에 있어서, 상기 압축 수단에 의해 압축된 폰트 데이타를 격납하는 압축 폰트 격납 수단과 상기 압축 폰트를 신장하는 압축 폰트 신장 수단을 구비한 것을 특징으로 하는 정보 처리 장치.The information processing apparatus according to claim 6, further comprising compressed font storage means for storing font data compressed by said compression means and compressed font decompression means for decompressing the compressed font.
KR1019930025755A 1992-11-30 1993-11-30 Method and apparatus for processing information KR960016738B1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP4320666A JP2972466B2 (en) 1992-11-30 1992-11-30 Dot pattern compression method and apparatus and output method and apparatus
JP92-320666 1992-11-30
JP93-178254 1993-07-19
JP5178254A JPH0736431A (en) 1993-07-19 1993-07-19 Method for visualizing font data

Publications (2)

Publication Number Publication Date
KR940012096A KR940012096A (en) 1994-06-22
KR960016738B1 true KR960016738B1 (en) 1996-12-20

Family

ID=26498492

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930025755A KR960016738B1 (en) 1992-11-30 1993-11-30 Method and apparatus for processing information

Country Status (2)

Country Link
KR (1) KR960016738B1 (en)
CN (1) CN1060873C (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0212472A (en) * 1988-06-30 1990-01-17 Yokogawa Medical Syst Ltd Method and device for reconstituting picture having double-magnification function
US5043711A (en) * 1989-06-09 1991-08-27 Xerox Corporation Representation of polygons defined by non-zero winding numbers
JP2781050B2 (en) * 1989-06-29 1998-07-30 沖電気工業株式会社 How to create rotation pattern data

Also Published As

Publication number Publication date
KR940012096A (en) 1994-06-22
CN1100826A (en) 1995-03-29
CN1060873C (en) 2001-01-17

Similar Documents

Publication Publication Date Title
EP0115584B1 (en) Image producing apparatus and methods of processing image-representing signals for use by such apparatus
US5727140A (en) Character generating method and apparatus
US4300206A (en) Flexible text and image generator for a raster printer
US4715006A (en) Image forming apparatus
US6582046B1 (en) Method and device for image processing
US6195473B1 (en) Non-integer scaling of raster images with image quality enhancement
EP0712095B1 (en) Method and apparatus for image data compression
JPS5936778B2 (en) data printing device
US6135653A (en) Data compression method and apparatus and data expansion method and apparatus
US5146554A (en) Page memory control in a raster image processor employed for digital halftoning
US5537131A (en) Character generating method and apparatus
EP0375219B1 (en) Method and apparatus for forming outline character
KR960016738B1 (en) Method and apparatus for processing information
US7259891B2 (en) Image compression method, decompression method thereof and program therefor
JPH06344601A (en) Outputting apparatus and outputting method
JPH0818790A (en) Compression system for half tone image
JP2972466B2 (en) Dot pattern compression method and apparatus and output method and apparatus
JPH0113117B2 (en)
JPH03213367A (en) Multicolor printer
JPH0736431A (en) Method for visualizing font data
JP2854344B2 (en) How to display mixed mode documents
JPH08279915A (en) Method for compressing data in page printer
JPH01130957A (en) Character controlling apparatus
JP2881924B2 (en) Data storage device
JPH06202610A (en) Method and device for pattern compression

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: 20060626

Year of fee payment: 10

LAPS Lapse due to unpaid annual fee