Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0815796B2 - Character font generation method - Google Patents
[go: Go Back, main page]

JPH0815796B2 - Character font generation method - Google Patents

Character font generation method

Info

Publication number
JPH0815796B2
JPH0815796B2 JP63235240A JP23524088A JPH0815796B2 JP H0815796 B2 JPH0815796 B2 JP H0815796B2 JP 63235240 A JP63235240 A JP 63235240A JP 23524088 A JP23524088 A JP 23524088A JP H0815796 B2 JPH0815796 B2 JP H0815796B2
Authority
JP
Japan
Prior art keywords
character
character font
font
outline
dot
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
JP63235240A
Other languages
Japanese (ja)
Other versions
JPH0281657A (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 JP63235240A priority Critical patent/JPH0815796B2/en
Publication of JPH0281657A publication Critical patent/JPH0281657A/en
Publication of JPH0815796B2 publication Critical patent/JPH0815796B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K15/00Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers
    • G06K15/02Arrangements for producing a permanent visual presentation of the output data, e.g. computer output printers using printers
    • 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/26Generation of individual character patterns for modifying the character dimensions, e.g. double width, double height
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K2215/00Arrangements for producing a permanent visual presentation of the output data
    • G06K2215/0002Handling the output data
    • G06K2215/002Generic data access
    • G06K2215/0037Generic data access depending on an output condition, e.g. size, resolution
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K2215/00Arrangements for producing a permanent visual presentation of the output data
    • G06K2215/0002Handling the output data
    • G06K2215/004Generic data transformation
    • G06K2215/0042Rasterisation
    • G06K2215/0045Converting outline to bitmap

Landscapes

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

Description

【発明の詳細な説明】 産業上の利用分野 この発明は、日本語ワードプロセッサやデスクトップ
パブリッシングにおける文字フォント生成方法に関し、
特に、アウトラインフォントをビットマップ展開してド
ット表示式の任意サイズの文字フォントを生成する方法
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character font generation method in a Japanese word processor or desktop publishing,
In particular, the present invention relates to a method of expanding an outline font into a bitmap to generate a dot display type character font of arbitrary size.

従来の技術 ドットフォントより高品質な文字を生成する方法とし
てアウトラインフォントが開発され、ワードプロセッサ
やデスクトップパブリッシング等で実用化されている
(特開昭53−15624号、特開昭53−41017号公報)。
2. Description of the Related Art Outline fonts have been developed as a method of generating higher quality characters than dot fonts, and have been put to practical use in word processors, desktop publishing, etc. (Japanese Patent Laid-Open Nos. 53-15624 and 53-41017). .

アウトラインフォントの場合もディスプレイやプリン
タで文字を出力する際には、アウトラインフォントのソ
ースデータをビットマップ展開してドット表示式の文字
フォントに変換する。もちろん文字の出力サイズ(生成
サイズ)を変えることができる。文字生成サイズを指定
すると、アウトラインフォントをビットマップ展開する
際に指定サイズに従って拡大・縮小の処理が行なわれ
る。
Even in the case of outline fonts, when outputting characters on a display or printer, the outline font source data is expanded into a bitmap and converted to a dot display type character font. Of course, the output size (generation size) of characters can be changed. When the character generation size is specified, when the outline font is bitmap-expanded, enlargement / reduction processing is performed according to the specified size.

発明が解決しようとする課題 上述した従来の方法では、一定のデザインの文字フォ
ントを単純に拡大・縮小することで文字生成サイズを変
えているので、サイズが異なってもすべて相似形の文字
フォントになっていた。
Problems to be Solved by the Invention In the above-mentioned conventional method, the character generation size is changed by simply enlarging / reducing the character font of a certain design, so even if the size is different, all of the character fonts of similar shape are created. Was becoming.

文字の大小に関わらず字形が相似であるのは高品質な
文字とは言えない。縮小文字では線幅のバラつきや文字
のつぶれが問題になる。拡大文字では文字の縦横の棒の
太さの関係がアンバランスになる。そのため、一定サイ
ズ以上の文字用として、デザインを変えた別のアウトラ
インフォントを持つ装置もあるが、これは非常にコスト
高になる。
It cannot be said that high-quality characters have similar character shapes regardless of the size of the characters. With reduced characters, variations in line width and crushed characters become problems. With enlarged characters, the relationship between the vertical and horizontal bar widths of the characters is unbalanced. Therefore, some devices have different outline fonts with different designs for characters of a certain size or larger, but this is very expensive.

この発明は上述した従来の問題点に鑑みなされたもの
で、一定のデザインのアウトラインフォントを基に出力
サイズに応じた適切なプロポーションの文字フォントを
ビットマップ展開できるようにした文字フォント生成方
法を提供することにある。
The present invention has been made in view of the above-described conventional problems, and provides a character font generation method capable of expanding a character font having an appropriate proportion according to an output size into a bitmap based on an outline font having a certain design. To do.

課題を解決するための手段 本発明は上記目的を達成するため、アウトラインフォ
ントのソースデータを任意の拡大・縮小率でビットマッ
プ展開してドット表示式の任意サイズの文字フォントを
生成するに際し、所定の輪郭線幅で文字フォントを所望
の大きさに拡大・縮小してメモリに描画した後、文字フ
ォントの拡大・縮小率と縦横方向の輪郭線の増加ドット
数とを対応付けて記憶させた補正パラメータテーブルを
参照して、文字フォントの輪郭線幅を太くするようにし
たものである。
Means for Solving the Problems In order to achieve the above object, the present invention provides a predetermined method for generating a dot display type character font by bitmap-expanding outline font source data at an arbitrary enlargement / reduction ratio. The character font is enlarged / reduced to the desired size with the contour line width and drawn in the memory, and then the enlargement / reduction ratio of the character font and the increased number of contour lines in the vertical and horizontal directions are stored in association with each other. The outline width of the character font is made thicker by referring to the parameter table.

作用 本発明は、予め、文字フォントの拡大・縮小率に最適
な輪郭線幅の増加分をテーブルに記憶させて保持し、文
字フォントの拡大・縮小時には、一旦、文字フォントを
拡大または縮小して細線の輪郭線幅でメモリ上に展開
し、テーブルを参照して増加値を得、縦方向、横方向に
走査しながら増加分だけ文字フォントの輪郭線を縦横そ
れぞれに厚みを加える。このことにより、拡大・縮小前
のアウトラインフォントのデザインを基本としながら、
拡大・縮小後のサイズに応じた適切なプロポーション、
デザインの文字フォントの生成が簡単な構成と処理によ
り可能となる。
Effect The present invention stores the increase amount of the contour line width optimal for the enlargement / reduction ratio of the character font in advance in the table and holds it, and when enlarging / reducing the character font, the character font is temporarily enlarged or reduced. The contour line width of the thin line is expanded on the memory, the increase value is obtained by referring to the table, and the contour line of the character font is added to the vertical and horizontal thicknesses by the increment while scanning in the vertical and horizontal directions. This makes the outline font design before enlargement / reduction basic,
Appropriate proportions according to the size after enlargement / reduction,
Generation of design character fonts is possible with a simple configuration and processing.

実施例 第3図は本発明を適用した文字フォント生成装置の概
略構成を示す。キーボード等の入力部1で文字コードや
文字出力サイズ等の各種情報をプロセッサ2に入力す
る。プロセッサ2は以下に述べる手順でビットマップメ
モリ6上に指定された文字フォントを生成し、ディスプ
レイやプリンタ等の出力部3に与える。アウトラインフ
ォントのソースデータはメモリ4に格納され、補正パラ
メータテーブル5には第4図に示すように文字出力サイ
ズに対応して拡大率、X方向およびY方向の拡幅ドット
数が予め設定されている。
Third Embodiment FIG. 3 shows a schematic configuration of a character font generation device to which the present invention is applied. Various information such as a character code and a character output size is input to the processor 2 using an input unit 1 such as a keyboard. The processor 2 generates a designated character font on the bitmap memory 6 by the procedure described below and supplies it to the output unit 3 such as a display or a printer. The outline font source data is stored in the memory 4, and the correction parameter table 5 is preset with the enlargement ratio and the number of widening dots in the X and Y directions corresponding to the character output size, as shown in FIG. .

生成すべき文字のコードとその出力サイズが指定され
ると、プロセッサ2は、メモリ4から該当文字のアウト
ラインフォントを取り出すとともに、テーブル5から該
当サイズの拡大率、X方向拡幅ドット数、Y方向拡幅ド
ット数を読み出す。たとえば文字サイズとして(5×
5)が指定され、テーブル5から拡大率(5)、X方向
拡幅ドット数(4)、Y方向拡幅ドット数(1)を引き
出したとする。この場合プロセッサ2は、アウトライン
フォントをメモリ6にビットマップ展開して文字のアウ
トラインを描画する際に、同時に文字の原サイズを縦横
それぞれ5倍に拡大する処理を行ない、その拡大寸法の
文字アウトラインを1ドット幅の細線でメモリ6に描画
する。
When the code of the character to be generated and the output size thereof are specified, the processor 2 retrieves the outline font of the character from the memory 4, and enlarges the corresponding size from the table 5, the number of X-direction widening dots, and the Y-direction widening. Read the number of dots. For example, as the character size (5 ×
5) is specified and the enlargement ratio (5), the X-direction widening dot number (4), and the Y-direction widening dot number (1) are extracted from the table 5. In this case, the processor 2 expands the outline font into the memory 6 by bit map and draws the outline of the character. At the same time, the processor 2 simultaneously enlarges the original size of the character by 5 times in each of the vertical and horizontal directions, and the character outline having the enlarged size is displayed. Drawing in the memory 6 with a thin line having a width of 1 dot.

第1図(A)は上述のようにビットマップ展開されて
メモリ6に描画された文字アウトラインを例示してい
る。プロセッサ2は次にX方向およびY方向の拡幅処理
を実行する。X方向拡幅ビット数が前記のように4であ
ったとする。プロセッサ2はビットマップメモリ6をX
方向に上から順に走査し、一走査ライン上で最初に“1"
ドットを検出したとき(第1図のa点)、そのドットの
左側4ドットを“1"にする。次にb点で2番目の“1"ド
ットを検出したとき、そのドットの右側4ドットを“1"
にする。次にc点で3番目の“1"ドットを検出したと
き、そのドットの左側4ドットを“1"にする。次にd点
で4番目の“1"ドットを検出したとき、そのドットの右
側4ドットを“1"にする。この結果、第1図(A)の文
字アウトラインがX方向両側に4ドットずつ拡幅された
ことになる。
FIG. 1 (A) exemplifies the character outline drawn in the memory 6 by being bit-mapped as described above. The processor 2 then executes widening processing in the X and Y directions. It is assumed that the number of widening bits in the X direction is 4 as described above. The processor 2 sets the bitmap memory 6 to X
Scan from top to bottom in the direction, and the first "1" on one scan line
When a dot is detected (point a in FIG. 1), the four dots to the left of that dot are set to "1". Next, when the second "1" dot is detected at point b, the four dots to the right of that dot are "1"
To Next, when the third "1" dot is detected at point c, the four dots to the left of that dot are set to "1". Next, when the fourth "1" dot is detected at point d, the four dots to the right of that dot are set to "1". As a result, the character outline in FIG. 1A is widened by 4 dots on both sides in the X direction.

次はY方向両側に1ドットずつ拡幅する処理を行な
う。第1図(A)に示すように、ビットマップメモリ6
上をY方向に順次走査し、e点で最初の“1"ドット群を
検出したならば、そのドット群の上1ドットを“1"にす
る。次にf点で2番目の“1"ドット群を検出したとき、
そのドット群の下1ドットを“1"にする。次にg点で3
番目の“1"ドット群を検出したとき、そのドット群の上
1ドットを“1"にする。次にh点で4番目の“1"ドット
群を検出したとき、そのドット群の下1ドットを“1"に
する。
Next, a process of widening one dot on both sides in the Y direction is performed. As shown in FIG. 1 (A), the bitmap memory 6
When the first "1" dot group is detected at the point e by sequentially scanning the upper part in the Y direction, one dot above the dot group is set to "1". Next, when the second "1" dot group is detected at point f,
The lower dot of the dot group is set to "1". Then 3 at point g
When the second "1" dot group is detected, one dot above the dot group is set to "1". Next, when the fourth "1" dot group is detected at the point h, the lower 1 dot of the dot group is set to "1".

以上の拡幅処理の結果、ビットマップメモリ6上の文
字アウトラインは第1図(A)から(B)のように変化
し、文字の線幅が縦横それぞれに設定されたビット数分
だけ拡大され、文字のプロポーション、デザインが変化
する。つまり第1図(B)の字形は(A)と合同ではな
く、したがってアウトラインフォントの原サイズの字形
と相似ではなくなっている。このあと周知のようにスプ
ライン処理やポリゴン処理を施し、さらにぬりつぶし処
理によって文字アウトラインで囲まれているドットをす
べて“1"にする。以上の処理手順を第2図のフローチャ
ートに示している。
As a result of the above widening processing, the character outline on the bitmap memory 6 changes from FIG. 1 (A) to (B), and the line width of the character is expanded by the number of bits set vertically and horizontally, Character proportions and designs change. That is, the character shape in FIG. 1 (B) is not congruent with (A), and is therefore not similar to the original size character shape of the outline font. After that, as well known, spline processing and polygon processing are performed, and further, the dots surrounded by the character outline are all set to "1" by the filling processing. The above processing procedure is shown in the flowchart of FIG.

発明の効果 以上の説明から明らかなように、本発明は、予め、文
字フォントの拡大・縮小率に最適な輪郭線幅の増加分を
テーブルに記憶させて保持し、文字フォントの拡大・縮
小時には、一旦、文字フォントを拡大または縮小して細
線の輪郭線幅でメモリ上に展開し、テーブルを参照して
増加値を得、縦方向、横方向に走査しながら増加分だけ
文字フォントの輪郭線を縦横それぞれに厚みを加えるこ
とにより、拡大・縮小前のアウトラインフォントのデザ
インを基本としながら、拡大・縮小後のサイズに応じた
適切なプロポーション、デザインの文字フォントの生成
が簡単な構成と処理により可能となるという効果を有し
ている。
EFFECTS OF THE INVENTION As is apparent from the above description, according to the present invention, an increase amount of the contour line width which is optimal for the enlargement / reduction ratio of a character font is stored and held in a table in advance, and when the character font is enlarged / reduced. , Once expand or shrink the character font and expand it in the memory with the outline width of the thin line, obtain the increased value by referring to the table, scan the vertical and horizontal directions, and increase the outline of the character font by the increment By adding thickness to each of the vertical and horizontal directions, the outline font design before enlarging / reducing can be used as a basis, while the appropriate proportions according to the size after enlarging / reducing and the generation of a character font of the design can be easily configured and processed. It has the effect of being possible.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明による文字フォント生成過程の一例を示
す概念図、第2図は本発明による一実施例方法の処理手
順を示すフローチャート、第3図は本発明を適用した文
字フォント生成装置のブロック図、第4図は第3図にお
けるテーブル内容の概念図である。
FIG. 1 is a conceptual diagram showing an example of a character font generation process according to the present invention, FIG. 2 is a flowchart showing a processing procedure of an embodiment method according to the present invention, and FIG. 3 is a character font generation device to which the present invention is applied. A block diagram and FIG. 4 are conceptual diagrams of the table contents in FIG.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】アウトラインフォントのソースデータを任
意の拡大・縮小率でビットマップ展開してドット表示式
の任意サイズの文字フォントを生成するに際し、所定の
輪郭線幅で文字フォントを所望の大きさに拡大・縮小し
てメモリに描画した後、文字フォントの拡大・縮小率と
縦横方向の輪郭線の増加ドット数とを対応付けて記憶さ
せた補正パラメータテーブルを参照して、文字フォント
の輪郭線幅を太くすることを特徴とする文字フォント生
成方法。
1. When a source data of an outline font is bitmap-expanded at an arbitrary enlargement / reduction ratio to generate a character font of a dot display type of an arbitrary size, a character font having a predetermined contour line width and a desired size can be used. After drawing in the memory after enlarging / reducing the size of the character font, refer to the correction parameter table that stores the enlargement / reduction ratio of the character font and the increased number of dots in the vertical / horizontal direction in correspondence with the outline of the character font. A character font generation method characterized by widening the width.
JP63235240A 1988-09-20 1988-09-20 Character font generation method Expired - Fee Related JPH0815796B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63235240A JPH0815796B2 (en) 1988-09-20 1988-09-20 Character font generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63235240A JPH0815796B2 (en) 1988-09-20 1988-09-20 Character font generation method

Publications (2)

Publication Number Publication Date
JPH0281657A JPH0281657A (en) 1990-03-22
JPH0815796B2 true JPH0815796B2 (en) 1996-02-21

Family

ID=16983155

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63235240A Expired - Fee Related JPH0815796B2 (en) 1988-09-20 1988-09-20 Character font generation method

Country Status (1)

Country Link
JP (1) JPH0815796B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2836086B2 (en) * 1989-03-10 1998-12-14 セイコーエプソン株式会社 Character pattern data generator
JPH047594A (en) * 1990-04-25 1992-01-10 Mitsubishi Electric Corp Generation system for character or the like
JPH0553558A (en) * 1991-08-26 1993-03-05 Sharp Corp Information processing equipment
EP0604685A1 (en) * 1992-12-28 1994-07-06 Océ-Nederland B.V. Method of modifying the fatness of characters

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59765A (en) * 1982-02-16 1984-01-05 Nippon Denki Kanji Syst Kk Generating system of character of the like
JPS6230053A (en) * 1985-08-01 1987-02-09 Casio Comput Co Ltd Dot-shaped scaling method
JPS62272295A (en) * 1986-05-20 1987-11-26 富士通株式会社 Expansion/reduction system of character pattern with line width control function

Also Published As

Publication number Publication date
JPH0281657A (en) 1990-03-22

Similar Documents

Publication Publication Date Title
JPH01174463A (en) Dot pattern correction method
JP2909273B2 (en) Outline font line width adjusting method and apparatus
US5519412A (en) Pattern processing method
JPH0815796B2 (en) Character font generation method
JPH0725068A (en) Character generation method and apparatus
JP3055187B2 (en) Contour data processing device
JP3156294B2 (en) Data processing device
JPH05216456A (en) Character output device
JPH0823741B2 (en) How to process vector characters or graphics
JP3072756B2 (en) Drawing equipment
JP3473046B2 (en) Non-erected character drawing method and apparatus
JP2803746B2 (en) Character processing method and apparatus
JP2835056B2 (en) High quality character pattern generation method
JPH0752466B2 (en) Raster operation device and method
JPH06251010A (en) Character pattern generator
JPH05113780A (en) Character pattern scaling method
JPH07234868A (en) Document creation device
JPH07226837A (en) Output method and device
JPH0553558A (en) Information processing equipment
JPH11110150A (en) Image processing system, image processing method, and computer-readable recording medium on which image processing control program is recorded
JPH0321990A (en) Pattern genertaing system
JPH05173539A (en) Print control device
JPS63136278A (en) Production system for repetitive pattern
JPH09305161A (en) Character pattern generator
JPH06167961A (en) System and device for character correction

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees