JPH04235594A - Character generation - Google Patents
Character generationInfo
- Publication number
- JPH04235594A JPH04235594A JP3065748A JP6574891A JPH04235594A JP H04235594 A JPH04235594 A JP H04235594A JP 3065748 A JP3065748 A JP 3065748A JP 6574891 A JP6574891 A JP 6574891A JP H04235594 A JPH04235594 A JP H04235594A
- Authority
- JP
- Japan
- Prior art keywords
- pattern
- character
- information
- dot
- line width
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 claims abstract description 21
- 238000005562 fading Methods 0.000 claims 3
- 239000011159 matrix material Substances 0.000 abstract 3
- 238000010586 diagram Methods 0.000 description 11
- 238000006243 chemical reaction Methods 0.000 description 9
- 238000011946 reduction process Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
Landscapes
- Digital Computer Display Output (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
Description
【0001】0001
【産業上の利用分野】本発明は文字発生方法に関するも
のであり、特に、筆で書いた文字のようにかすれのある
文字パターンを発生する文字発生方法に関するものであ
る。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character generation method, and more particularly to a character generation method for generating a character pattern that is blurred like characters written with a brush.
【0002】0002
【従来の技術】レーザプリンタやディスプレイ装置等の
各種出力装置で図2に例示するようなかすれ文字を発生
するためには、
(1).かすれのある文字パターンをかすれごと文字パ
ターンデータとして記憶する。
(2).特開昭62−229376号公報のように、文
字パターンに濃度の情報を持たせ、別途発生した乱数と
比較し、濃度値が大きければ1ドットを黒とし、小さけ
れば白とする。等の方法があった。2. Description of the Related Art In order to generate blurred characters as shown in FIG. 2 using various output devices such as laser printers and display devices, (1). To store a character pattern with blur as character pattern data, including the blur. (2). As in Japanese Patent Application Laid-Open No. 62-229376, density information is given to the character pattern and compared with a separately generated random number. If the density value is large, one dot is set to black, and if the density value is small, one dot is set to white. There were other methods.
【0003】0003
【発明が解決しようとする課題】しかし(1)の方法で
は、
a.メモリ容量が莫大となる
b.変倍等の処理に対応できないなどの不都合があった
。また(2)の方法でも、
a.乱数を用いているので全体にざらついた感じで、か
すれパターンが線状でない。
b.かすれが線幅の全体に均一で、めりはりがない。
c.乱数を用いているので、黒の濃くなって欲しい部分
にもかすれを生じてしまう。などの問題があった。[Problems to be Solved by the Invention] However, in method (1), a. Memory capacity becomes huge b. There were inconveniences such as inability to handle processing such as scaling. Also, in method (2), a. Since random numbers are used, the overall appearance is rough, and the blur pattern is not linear. b. The blurring is uniform throughout the line width and there is no sharpness. c. Since random numbers are used, areas where you want the black to be darker will also be blurred. There were other problems.
【0004】0004
【課題を解決するための手段】本発明は以上の点から成
したものであり、文字データを莫大なものとすることな
しに、濃度情報からかすれ文字を発生する文字発生方法
を提供することを目的とし、その特徴とするところは、
階調情報を1次元にmドット配列した閾値パターンと、
文字パターンデータの複数の濃度情報Di(i=1,2
,…,n)とに基づいてかすれパターンを順次作成して
かすれ文字を発生することである。[Means for Solving the Problems] The present invention has been made based on the above points, and it is an object of the present invention to provide a character generation method that generates blurred characters from density information without increasing the amount of character data. The purpose and characteristics are:
A threshold pattern in which gradation information is arranged one-dimensionally in m dots,
A plurality of density information Di (i=1, 2
, . . . , n) to generate blurred characters by sequentially creating blurring patterns.
【0005】[0005]
【実施例】図1は本発明の実施例を示す処理フローであ
る。図3は本発明を実施するに好適な装置の一例を示す
図である。Embodiment FIG. 1 is a processing flow showing an embodiment of the present invention. FIG. 3 is a diagram showing an example of a device suitable for carrying out the present invention.
【0006】図3において、31はCPU、32はシス
テムバス、33は文字パターンのデータを記憶する文字
パターン記憶部である。本実施例では文字パターンのデ
ータを、例えば図4に例示する情報で構成する。In FIG. 3, 31 is a CPU, 32 is a system bus, and 33 is a character pattern storage section that stores character pattern data. In this embodiment, the character pattern data is composed of information illustrated in FIG. 4, for example.
【0007】図4は文字パターンの1つのストロークを
表す文字パターンデータを例示する図である。先頭には
データの全体の長さを示すデータ長41が来る。それに
続き骨格点情報1,2,…,nと続き、最後に終了コー
ド42が来る。FIG. 4 is a diagram illustrating character pattern data representing one stroke of a character pattern. At the beginning comes a data length 41 indicating the total length of the data. This is followed by skeleton point information 1, 2, . . . , n, and finally an end code 42.
【0008】各骨格点情報は、基本的には、(1).骨
格点PiのX座標値Xi
(2).骨格点PiのY座標値Yi
(3).骨格点Piにおける線幅情報Wi(4).骨格
点Piにおける濃度情報Diで構成される。濃度情報D
iは、後述する閾値パターンに基づいてかすれパターン
を作成したとき、各骨格点ごとに好適な状態のかすれ文
字となるように考慮して定める。Each skeleton point information basically consists of (1). X coordinate value Xi of skeleton point Pi (2). Y coordinate value Yi of skeleton point Pi (3). Line width information Wi(4) at skeleton point Pi. It is composed of density information Di at the skeleton point Pi. Concentration information D
i is determined in consideration so that when a faded pattern is created based on a threshold pattern to be described later, a faded character will be in a suitable state for each skeleton point.
【0009】34はかすれ文字発生部で、文字パターン
記憶部33に記憶している文字パターンデータを使用し
てかすれ文字を発生する処理を行う。Reference numeral 34 denotes a faded character generating section, which performs processing for generating faded characters using the character pattern data stored in the character pattern storage section 33.
【0010】35は閾値パターン記憶部で、前記濃度情
報Diと比較してかすれパターンを作成するための、図
5(1)のような1次元の閾値パターン51の情報を記
憶している。図5(1)は16階調の閾値52で構成し
た例である。この閾値パターン51は図5(1)のもの
だけに限定されず、階調数、閾値の配置等は任意に定め
ることができる。Reference numeral 35 denotes a threshold pattern storage section which stores information on a one-dimensional threshold pattern 51 as shown in FIG. 5(1), which is used to create a blur pattern by comparing with the density information Di. FIG. 5(1) is an example configured with threshold values 52 of 16 gradations. This threshold pattern 51 is not limited to that shown in FIG. 5(1), and the number of gradations, arrangement of threshold values, etc. can be arbitrarily determined.
【0011】図5(2)は、図5(1)の閾値パターン
51に従って作成した、濃度が“7”のときのかすれパ
ターンを示す。図5(3)は、濃度が“12”から“7
”まで変化したときのそれぞれのかすれパターンを合成
した例である。FIG. 5(2) shows a blur pattern when the density is "7", created according to the threshold pattern 51 of FIG. 5(1). Figure 5 (3) shows that the density is from “12” to “7”.
This is an example of combining the respective blur patterns when the image changes to ``.''.
【0012】36は拡大変換テ−ブルで、その詳細は後
述する。37はかすれ文字発生部34で発生したかすれ
パターンをビット展開するビットマップメモリ、38は
かすれ文字等を表示する表示部、39はかすれ文字等を
出力するプリンタである。Reference numeral 36 denotes an enlarged conversion table, the details of which will be described later. Reference numeral 37 denotes a bitmap memory for bit-expanding the blur pattern generated by the blur character generation section 34, 38 a display section for displaying blur characters, etc., and 39 a printer for outputting blur characters.
【0013】次に、図1,図3を使用して本発明の実施
例を説明する。尚、以下では文字の1つのストロークの
かすれパターンを発生する場合について説明する。Next, an embodiment of the present invention will be explained using FIGS. 1 and 3. In the following, a case will be described in which a blur pattern of one stroke of a character is generated.
【0014】はじめにCPU31は閾値パターン記憶部
35から図5(1)のような閾値パターン51の情報を
読出し、システムバス32を介してかすれ文字発生部3
4へ送る(図1S1)。本実施例では閾値パターン51
の幅(サイズ)を図5(1)のように16ドットで構成
した場合について説明する。First, the CPU 31 reads out the information of the threshold pattern 51 as shown in FIG.
4 (Fig. 1S1). In this embodiment, the threshold pattern 51
A case will be described in which the width (size) of is configured with 16 dots as shown in FIG. 5(1).
【0015】かすれ文字発生部34は、文字パターン記
憶部33からかすれ文字を作成する文字パターンの1つ
の骨格点情報iを読み出す(S2)。The faded character generation unit 34 reads out one skeleton point information i of a character pattern for creating a faded character from the character pattern storage unit 33 (S2).
【0016】次にかすれ文字発生部34は、閾値パター
ン51の各閾値52と骨格点情報iの濃度情報Diを比
較し、濃度情報Diが大きいビットを“1”とした、図
5(2)に例示する16ドットのソースパターン(かす
れパターン)53を作成する(S3)。Next, the blurred character generation unit 34 compares each threshold value 52 of the threshold value pattern 51 with the density information Di of the skeleton point information i, and sets the bit with the larger density information Di to "1", as shown in FIG. 5(2). A 16-dot source pattern (faint pattern) 53 illustrated in (S3) is created.
【0017】次にかすれ文字発生部34は、ソースパタ
ーン53のサイズと骨格点情報iの線幅Wiとを比較す
る(S4)。Next, the blurred character generating section 34 compares the size of the source pattern 53 and the line width Wi of the skeleton point information i (S4).
【0018】比較の結果、両者が一致するときは、ソ−
スパターン53をビットマップメモリ37の骨格点情報
iの骨格点PiのX座標Xi,Y座標Yiが示す位置に
そのまま出力する(S7)。As a result of the comparison, if the two match, the source
The spacing pattern 53 is directly output to the position indicated by the X coordinate Xi and Y coordinate Yi of the skeleton point Pi of the skeleton point information i in the bitmap memory 37 (S7).
【0019】一方、ソースパターン53のサイズと骨格
点情報iの線幅Wiとを比較した結果、線幅Wiの方が
ソースパターン53のサイズより小さいときは、ソース
パターン53に対して縮小処理を行って縮小パターンを
作成する(S5)。On the other hand, as a result of comparing the size of the source pattern 53 and the line width Wi of the skeleton point information i, if the line width Wi is smaller than the size of the source pattern 53, the reduction process is performed on the source pattern 53. Then, a reduced pattern is created (S5).
【0020】反対に線幅Wiの方が大きいときは、ソー
スパターン53に対して拡大処理を行って拡大パターン
を作成する(S6)。On the other hand, when the line width Wi is larger, an enlargement process is performed on the source pattern 53 to create an enlarged pattern (S6).
【0021】ここでS5における縮小処理について説明
する。The reduction process in S5 will now be explained.
【0022】図6はS5における縮小処理を詳細に示す
処理フローである。ここでソースパターン53のサイズ
をA,線幅WiのサイズをB,AとBの最小公倍数をC
とし、16ドットのソースパターンを12ドットの縮小
パターンに縮小する場合を例に以下の説明を行う。FIG. 6 is a processing flow showing the reduction processing in S5 in detail. Here, the size of the source pattern 53 is A, the size of the line width Wi is B, and the least common multiple of A and B is C.
The following explanation will be given using an example in which a 16-dot source pattern is reduced to a 12-dot reduced pattern.
【0023】はじめにかすれ文字発生部34は、ソース
パターン53の1ドットをそれぞれ(C/A)倍した、
図7に71として示すような暫定パターン71を作成す
る(図6S51)。本実施例の場合C/A=3なので、
図7のようにソースパターン53の1ドットをそれぞれ
3倍した、48ドットの暫定パターン71を作成する。First, the blur character generation unit 34 multiplies each dot of the source pattern 53 by (C/A).
A temporary pattern 71 as shown as 71 in FIG. 7 is created (S51 in FIG. 6). In this example, C/A=3, so
As shown in FIG. 7, a temporary pattern 71 of 48 dots is created by multiplying each dot of the source pattern 53 by three.
【0024】次に暫定パターン71から(C/B)ドッ
トを読出す(S52)。本実施例の場合C/B=4なの
で、図7のように暫定パターン71から4ドットを読出
す。Next, (C/B) dots are read out from the temporary pattern 71 (S52). In this embodiment, since C/B=4, four dots are read out from the provisional pattern 71 as shown in FIG.
【0025】次に読出した(C/B)ドットの白ドット
と黒ドットの比率を判定し(S53)、黒ドットが50
%以上であれば縮小パターンの当該ドットを黒ドットと
し(S54)、50%未満であれば当該ドットを白ドッ
トとする(S55)。Next, the ratio of white dots to black dots of the read (C/B) dots is determined (S53), and the number of black dots is 50.
% or more, the dot in the reduced pattern is set as a black dot (S54), and if it is less than 50%, the dot is set as a white dot (S55).
【0026】上記S52〜S55の処理を繰り返して行
い(S56)、図7に72として示すような12ドット
の縮小パターン72を作成する。The processes of S52 to S55 are repeated (S56) to create a 12-dot reduced pattern 72 as shown as 72 in FIG.
【0027】次に図1S6の拡大処理について説明する
。Next, the enlargement process shown in FIG. 1S6 will be explained.
【0028】図8は拡大処理を詳細に示す処理フローで
ある。ここでソースパターン53のサイズをA,線幅W
iのサイズをBとし、16ドットのソースパターンを2
4ドットの拡大パターンに拡大する場合を例に以下の説
明を行う。FIG. 8 is a processing flow showing the enlargement processing in detail. Here, the size of the source pattern 53 is A, the line width W
The size of i is B, and the source pattern of 16 dots is 2.
The following explanation will be given using, as an example, the case of enlarging to a 4-dot enlarged pattern.
【0029】はじめにかすれ文字発生部34は、拡大パ
ターンを作成するために、ソースパターン53を何倍に
するかを算出する(図8S61)。即ち(B/A)を計
算し、商の整数部をCとする。16ドットから24ドッ
トに拡大するときは、C=1となる。First, the blurred character generating section 34 calculates how many times the source pattern 53 should be multiplied in order to create an enlarged pattern (S61 in FIG. 8). That is, calculate (B/A) and let C be the integer part of the quotient. When expanding from 16 dots to 24 dots, C=1.
【0030】次に、(B/A)の余りのドット数Dを求
める(S62)。24ドットに拡大するときは、(B−
A×C)=D(=8)となる。Next, the number D of dots remaining from (B/A) is determined (S62). When enlarging to 24 dots, (B-
A×C)=D(=8).
【0031】次に図9に例示する拡大変換テーブル36
aの、余りのドット数Dが示すアドレスから割り振りビ
ットを1ビット読出す(S63)。図9の拡大変換テー
ブル36aは、上述した(B/A)の余りのドット数D
をアドレス91とし、ソースパターン53と同一サイズ
、即ち本実施例の場合は16ビットの割り振りビット9
2をデータとする。この割り振りビットのk番目のビッ
トが“1”であれば、ソースパターン53のk番目のド
ットを(C+1)ドットに、“0”であれば、Cドット
にそれぞれ拡大して拡大パターンを作成することを意味
する。Next, the enlarged conversion table 36 illustrated in FIG.
One allocated bit is read from the address indicated by the remaining number of dots D in a (S63). The enlargement conversion table 36a in FIG.
is the address 91, and the allocated bit 9 is the same size as the source pattern 53, that is, 16 bits in the case of this embodiment.
2 is data. If the kth bit of this allocated bit is "1", the kth dot of the source pattern 53 is enlarged to (C+1) dots, and if it is "0", it is enlarged to C dots to create an enlarged pattern. It means that.
【0032】かすれ文字発生部34は、拡大変換テーブ
ル36aから読出したk番目のビットが“1”か否かを
判断する(S64)。本実施例の場合はD=8なので、
拡大変換テーブル36aのアドレス8からk番目の1ビ
ットを読出して判断する。The blurred character generating unit 34 determines whether the k-th bit read from the enlarged conversion table 36a is "1" (S64). In this example, D=8, so
The determination is made by reading the kth 1 bit from address 8 of the enlarged conversion table 36a.
【0033】読出したビットが“1”であれば、ソース
パターン53のk番目のドットを(C+1)ドットに拡
大して拡大パターンを作成する(S65)。即ち本実施
例であれば、ソースパターン53のk番目のドットを2
倍して拡大パターンの2ドットを作成する。If the read bit is "1", the k-th dot of the source pattern 53 is enlarged to (C+1) dots to create an enlarged pattern (S65). That is, in this embodiment, the k-th dot of the source pattern 53 is
Multiply to create 2 dots of the enlarged pattern.
【0034】一方、読出したビットが“0”であれば、
ソースパターン53の当該ドットをCドットに拡大して
拡大パターンを作成する(S66)。即ち本実施例であ
れば、ソースパターン53の当該ドット1ドットをその
まま拡大パターンの1ドットとする。On the other hand, if the read bit is "0",
The corresponding dot of the source pattern 53 is enlarged to a C dot to create an enlarged pattern (S66). That is, in this embodiment, one dot of the source pattern 53 is directly used as one dot of the enlarged pattern.
【0035】上記S63〜S66の処理が終了したら、
拡大変換テーブル36aのアドレスDの割り振りビット
92から次のk+1番目の1ビットを読出して同様の処
理を繰り返して行い(S67)、図10のような拡大パ
ターン101を作成する。[0035] When the above steps S63 to S66 are completed,
The next (k+1)th 1 bit is read from the allocation bit 92 of address D of the enlargement conversion table 36a and the same process is repeated (S67) to create an enlarged pattern 101 as shown in FIG.
【0036】次に、拡大処理の他の実施例を説明する。
本実施例では拡大変換テーブル36に、図9に示したテ
ーブル36aのほかに、図11に示す拡大ビットテーブ
ル36bを備える。Next, another embodiment of the enlargement process will be described. In this embodiment, the expansion conversion table 36 includes an expansion bit table 36b shown in FIG. 11 in addition to the table 36a shown in FIG.
【0037】図11に示す拡大ビットテーブル36bは
、8ビットのアドレス111を持つ。8ビットのうち、
上位2ビットはソースパターン53の拡大するドットj
とその次のドットj+1であり、下位6ビットはソース
パターン1ドットが対応する拡大パターンのドット数(
拡大率)である。The expanded bit table 36b shown in FIG. 11 has an 8-bit address 111. Of the 8 bits,
The upper 2 bits are the expanding dot j of the source pattern 53
and the next dot j+1, and the lower 6 bits are the number of dots in the enlarged pattern to which one dot of the source pattern corresponds (
magnification rate).
【0038】拡大ビットテーブル36bは、上記アドレ
ス111に対応させてアドレスの下位6ビットが示すド
ット数の拡大パターン112を図11のように記憶して
いる。The enlarged bit table 36b stores an enlarged pattern 112 of the number of dots indicated by the lower six bits of the address in correspondence with the address 111, as shown in FIG.
【0039】本実施例は、図8S65,S66における
拡大パターンを発生する処理を次のようにして行う点で
前実施例と異なる。This embodiment differs from the previous embodiment in that the processing for generating enlarged patterns in S65 and S66 of FIG. 8 is performed as follows.
【0040】まずソースパターン53から拡大するドッ
トjと次のドットj+1を読出す。ソースパタ−ンのド
ットjが最後のドットのときは、j+1のドットとして
ソースパターンの先頭のドットを選択する。First, the dot j to be enlarged and the next dot j+1 are read out from the source pattern 53. When dot j of the source pattern is the last dot, the first dot of the source pattern is selected as the j+1 dot.
【0041】その2ドットを上位2ビットに、拡大パタ
ーンのドット数(拡大率)を下位6ビットとする計8ビ
ットのアドレスに対応する拡大パターンを、図11の拡
大ビットテーブル36bから読出す。An enlarged pattern corresponding to a total of 8 bits of address, with the 2 dots as the upper 2 bits and the number of dots (enlargement rate) of the enlarged pattern as the lower 6 bits, is read from the enlarged bit table 36b in FIG.
【0042】例えばソースパターンから読出したドット
j,j+1が“10”で拡大パターンのドット数が2ド
ットの場合、アドレス“10000010”から当該ド
ット“1”の拡大パターンとして“10”が読出される
。For example, if the dots j, j+1 read from the source pattern are "10" and the number of dots in the enlarged pattern is 2 dots, "10" is read from the address "10000010" as the enlarged pattern for the dot "1". .
【0043】以上のように、ソースパターンのドットj
を拡大する際、当該ドットjと次のドットj+1を読出
し、拡大ビットテーブル36bに従って拡大する。As described above, the dot j of the source pattern
When enlarging , the dot j and the next dot j+1 are read out and enlarged according to the enlargement bit table 36b.
【0044】このように前実施例は拡大する際、単純に
ソースパターンの当該ドットを拡大していたのに対し、
本実施例ではその次のビットの状態を反映させて拡大し
ている。そのため特に大きな倍率に拡大したとき(即ち
線幅が太いとき)、その大きさ(線幅)に依存すること
なく、図12に16ドットのソースパターン53から4
8ドットの拡大パターン121を作成した場合を例示す
るように、絶対的なかすれの密度がぼぼ一定の細かさの
かすれパターンを発生することができる。As described above, when enlarging in the previous embodiment, the corresponding dot of the source pattern was simply enlarged, whereas
In this embodiment, the state of the next bit is reflected and expanded. Therefore, when enlarged to a particularly large magnification (that is, when the line width is thick), the 16-dot source pattern 53 to 4 in FIG.
As exemplified in the case where an 8-dot enlarged pattern 121 is created, it is possible to generate a fine blur pattern with a nearly constant absolute blur density.
【0045】以上のようにして図1S5,S6で作成し
た縮小パターン、拡大パターンをビットマップメモリ3
7の骨格点情報iの骨格点PiのX座標Xi,Y座標Y
iが示す位置に出力する(S7)。The reduced pattern and enlarged pattern created in S5 and S6 of FIG. 1 as described above are stored in the bitmap memory 3.
X coordinate Xi, Y coordinate Y of skeleton point Pi of skeleton point information i of 7
It is output to the position indicated by i (S7).
【0046】上記S2〜S7の処理によって1つの骨格
点Piにおけるかすれパターンを作成する処理が終了し
たら、次は骨格点Pi+1における処理を行う。この処
理を1つのストロークの全骨格点について行う(S8)
。After completing the process of creating a blur pattern at one skeleton point Pi through the processes of S2 to S7, the next process is to perform the process at skeleton point Pi+1. This process is performed for all skeleton points of one stroke (S8)
.
【0047】以上の様にしてかすれパターンを作成すれ
ば、表示部38やプリンタ39で筆で書いた文字のよう
なかすれ文字を出力することができる。By creating a blur pattern as described above, the display section 38 or printer 39 can output faded characters similar to those written with a brush.
【0048】以上本発明の実施例を説明した。上記実施
例はストロークが横方向の場合の例であるが、縦方向や
斜め方向についても同様にして実施することができる。The embodiments of the present invention have been described above. Although the above embodiment is an example in which the stroke is in the horizontal direction, it can be similarly implemented in the vertical direction or diagonal direction.
【0049】また文字パターンデータの持ち方も上述の
ものに限定されるものではない。Furthermore, the way of holding character pattern data is not limited to the above-mentioned method.
【0050】更に本発明はかすれ文字の発生だけでなく
、濃度情報と閾値パターンを工夫するすることによって
、文字の端部に丸みを付けたり、あるいは線の右端部に
いわゆる明朝体の“ウロコ”を付した文字等を発生する
こともできる。Furthermore, the present invention not only solves the problem of blurred characters, but also makes it possible to round the edges of characters by devising density information and threshold patterns, or to create so-called "scales" in Mincho fonts at the right end of lines. It is also possible to generate characters with ``.
【0051】[0051]
【発明の効果】以上説明したように、本発明によれば、
記憶する文字のデータを莫大なものとすることなしに、
従来不可能であった筆で書いた文字のようなかすれのあ
る文字を発生することができる。しかもそのパターンは
閾値パターンを適当に変更することにより、多様に変化
させることができる。また文字の線幅の変化にも柔軟に
対応できる等の効果を有する。[Effects of the Invention] As explained above, according to the present invention,
Without increasing the amount of character data to be memorized,
It is possible to generate blurred characters similar to those written with a brush, which was previously impossible. Furthermore, the pattern can be varied in a variety of ways by appropriately changing the threshold pattern. It also has the advantage of being able to flexibly respond to changes in the line width of characters.
【図1】 本発明の実施例を示す処理フロー[Figure 1] Processing flow showing an embodiment of the present invention
【図2】
かすれ文字を例示する図[Figure 2]
Diagram illustrating blurred text
【図3】 本発明を実施するに好適な装置の一例を示
す図[Fig. 3] A diagram showing an example of a device suitable for carrying out the present invention.
【図4】 文字パターンデータを例示する図[Figure 4] Diagram illustrating character pattern data
【図5】
閾値パターンなどを例示する図[Figure 5]
Diagram illustrating threshold patterns etc.
【図6】 縮小処
理を詳細に示す処理フロー[Figure 6] Processing flow showing detailed reduction processing
【図7】 縮小処理の説明
図[Figure 7] Explanatory diagram of reduction processing
【図8】 拡大処理を詳細に示す処理フロー[Figure 8] Process flow showing enlargement processing in detail
【図9】
拡大変換テーブルの一実施例を示す図[Figure 9]
A diagram showing an example of an enlarged conversion table
【図10】
拡大パターンを例示する図[Figure 10]
Diagram illustrating an enlarged pattern
【図11】拡大ビットテー
ブルを示す図[Figure 11] Diagram showing an expanded bit table
【図12】拡大処理の説明図[Figure 12] Explanatory diagram of enlargement processing
33 文字パターン記憶部 34 かすれ文字発生部 35 閾値パターン記憶部 36 拡大変換テーブル 37 ビットマップメモリ 33 Character pattern storage section 34 Faint character occurrence part 35 Threshold pattern storage unit 36 Enlargement conversion table 37 Bitmap memory
Claims (2)
パターンと、文字パターンデータの複数の濃度情報Di
(i=1,2,…,n)とに基づいてかすれパターンを
順次作成してかすれ文字を発生することを特徴とする文
字発生方法。1. A threshold pattern in which gradation information is arranged one-dimensionally in m dots, and a plurality of density information Di of character pattern data.
(i=1, 2, . . . , n), and generates blurred characters by sequentially creating blurring patterns.
n)における位置情報Xi,Yi、線幅情報Wi、濃度
情報Diを具備する文字パターンデータからかすれ文字
を発生する文字発生方法において、階調情報を1次元に
mドット配列した閾値パターンと、文字パターンデータ
の骨格点Piの濃度情報Diとに基づいてmドットのか
すれパターンを作成し、前記mドットのかすれパターン
と前記線幅情報Wiとの大きさを比較し、両者が同じと
きはかすれパターンをそのまま出力し、線幅情報Wiが
小さい場合は縮小パターンを、線幅情報Wiが大きい場
合は拡大パタ−ンをそれぞれ前記かすれパターンから作
成して出力する処理を、各骨格点Piに対して行ってか
すれ文字を発生することを特徴とする文字発生方法。Claim 2: At least skeleton points Pi (i=1, 2,...,
In the character generation method for generating blurred characters from character pattern data having position information Xi, Yi, line width information Wi, and density information Di in n), a threshold pattern in which m dots of gradation information are arranged one-dimensionally, and a character An m-dot fading pattern is created based on the density information Di of the skeleton point Pi of the pattern data, and the size of the m-dot fading pattern and the line width information Wi is compared, and when both are the same, it is a fading pattern. For each skeleton point Pi, output a reduced pattern as is, create a reduced pattern when the line width information Wi is small, and create and output an enlarged pattern from the faded pattern when the line width information Wi is large. A character generation method characterized by generating blurred characters.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3065748A JPH04235594A (en) | 1991-01-10 | 1991-01-10 | Character generation |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP3065748A JPH04235594A (en) | 1991-01-10 | 1991-01-10 | Character generation |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH04235594A true JPH04235594A (en) | 1992-08-24 |
Family
ID=13295951
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP3065748A Pending JPH04235594A (en) | 1991-01-10 | 1991-01-10 | Character generation |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH04235594A (en) |
-
1991
- 1991-01-10 JP JP3065748A patent/JPH04235594A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5185852A (en) | Antialiasing apparatus and method for computer printers | |
| US7397972B2 (en) | Image transform method for obtaining expanded image data, image processing apparatus and image display device therefor | |
| US4851825A (en) | Grayscale character generator and method | |
| JPH0631934B2 (en) | Character enlargement method | |
| JP2909273B2 (en) | Outline font line width adjusting method and apparatus | |
| US5444825A (en) | Method and apparatus for scaling line patterns | |
| US4967376A (en) | Method for displaying characters and/or figures in a computer graphics and apparatus thereof | |
| US5526474A (en) | Image drawing with improved process for area ratio of pixel | |
| US5553219A (en) | Font outline and bit map generator synthesizing filling data with selected outline data or duplicate outline data | |
| JPH05314250A (en) | Method and device for smoothing enlarged image | |
| JP2842479B2 (en) | Generating image display patterns | |
| TW438686B (en) | An apparatus and method of printing raster images while economizing printing material | |
| JPH04240695A (en) | Gradational character generating method | |
| EP0568360B1 (en) | Graphics system using quadratic polynomial fragments | |
| JPH0815796B2 (en) | Character font generation method | |
| JP2980732B2 (en) | How to generate outline fonts | |
| JP2806679B2 (en) | Character generator | |
| JPS5950070B2 (en) | Character pattern generation method | |
| JP3133787B2 (en) | Halftone font generator | |
| JP2927080B2 (en) | Character / graphic generator and method | |
| JP3133790B2 (en) | Halftone font generator | |
| JP2891318B2 (en) | How to create a bitmap font | |
| JPH0752466B2 (en) | Raster operation device and method | |
| JP3133788B2 (en) | Halftone font generator | |
| JPH0137748B2 (en) |