[go: up one dir, main page]

JPH025095A - Character output system - Google Patents

Character output system

Info

Publication number
JPH025095A
JPH025095A JP63154694A JP15469488A JPH025095A JP H025095 A JPH025095 A JP H025095A JP 63154694 A JP63154694 A JP 63154694A JP 15469488 A JP15469488 A JP 15469488A JP H025095 A JPH025095 A JP H025095A
Authority
JP
Japan
Prior art keywords
character
pattern
output
character pattern
frame
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.)
Granted
Application number
JP63154694A
Other languages
Japanese (ja)
Other versions
JP2669539B2 (en
Inventor
Hideko Kagimasa
鍵政 秀子
Kenji Takeda
武田 健二
Tetsuzo Uehara
上原 徹三
Kenji Shimoi
下位 憲司
Motohide Kunisai
国西 元英
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP63154694A priority Critical patent/JP2669539B2/en
Priority to KR1019890008426A priority patent/KR960009837B1/en
Priority to CN89104257A priority patent/CN1014836B/en
Publication of JPH025095A publication Critical patent/JPH025095A/en
Application granted granted Critical
Publication of JP2669539B2 publication Critical patent/JP2669539B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/153Digital output to display device ; Cooperation and interconnection of the display device with other functional units using cathode-ray tubes

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は文字列出力法に係り、特に日本語文字列の印字
および表示方法の改良に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method for outputting character strings, and particularly to improvements in methods for printing and displaying Japanese character strings.

〔従来の技術〕[Conventional technology]

従来の印刷システムやワード・プロセッサでの文字出力
法では文字枠に対する文字パターンの大きさと位置が文
字毎に決められている文字枠内での文字パターン部分(
これを字面と呼ぶことである)の大きさや位置はその文
字パターンを含む文字セットであるフォントのデザイン
時に、各文字のパターンの性質や同一フォント内の複数
文字のバランス等を考慮して定められたフォント・パタ
ーンとして確定する。
In conventional printing systems and word processors, the size and position of the character pattern relative to the character frame are determined for each character.
The size and position of the font (this is called a font) is determined when designing the font, which is a character set that includes the character pattern, taking into account the nature of each character pattern and the balance of multiple characters in the same font. The selected font pattern is confirmed.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記の従来技術では、同一フォント内の各文字パターン
の大きさや位置を当該フォントの文字を並へたときにバ
ランスよく感ぜられるように考えてデザインするわけで
あるが、いかなる文字を隣接させた場合にもバランスよ
く感じられる文字パターンを定めることは実際には難し
い。つまり、全く同じパターンの文字が、それに隣接す
る文字によって、ある場合は適切な大きさと感じられ、
別の場合には太き目に感ぜられ、また別の場合には小さ
目に感ぜられることがあり得る。第3図の(a)(b)
で「田」の文字パターンは同一であるが、(a)の文字
列では適当なサイズに感ぜられ、(b)の文字列では小
さ目に感ぜられる。
In the above-mentioned conventional technology, the size and position of each character pattern in the same font are designed so that the characters of the font will feel well-balanced when they are arranged side by side. In some cases, it is actually difficult to define a character pattern that feels well-balanced. In other words, letters with the exact same pattern may be perceived as having the appropriate size depending on the letters adjacent to it,
In other cases, it may feel thicker, and in other cases, it may feel smaller. Figure 3 (a) and (b)
The character patterns for ``田'' are the same, but the character string in (a) feels like an appropriate size, and the character string in (b) feels small.

この解決のために、異なるサイズの文字パターンを用い
るという方法は採用できない。それは、サイズの異なる
文字では、文字枠の幅が異なってしまい、文字列として
の割付けが損なわれるからである。第5図はそれを示す
例である。第5図(a)の「田」という文字パターン5
01が小さすぎるという問題を解決するためにより大き
いサイズの文字パターンを用いた例が(b)である。
To solve this problem, it is not possible to use character patterns of different sizes. This is because characters of different sizes have different character frame widths, which impairs their layout as character strings. FIG. 5 is an example of this. Character pattern 5 for “田” in Figure 5(a)
(b) is an example in which a larger size character pattern is used to solve the problem that 01 is too small.

(b)における「田」の文字パターン502は、そのサ
イズのみを比較すると他の文字とバランスは良いが、文
字サイズそのものが大きくなっているため、次の文字「
さ」の配置位置が右にずれてしまっている。つまり、上
記問題の解決のために別サイズの文字パターンをそのま
ま利用するという方法は採れない。
The character pattern 502 for "田" in (b) has a good balance with other characters when only its size is compared, but since the character size itself is large, the next character "
The placement position of "Sa" has shifted to the right. In other words, it is not possible to use a character pattern of a different size as is to solve the above problem.

本発明の目的は、上記の問題を解決するため、指定サイ
ズの文字枠の文字パターン列を出力する際に、その文字
枠内での文字パターンの大きさ及び位置の変更を可能と
し、隣接文字等の条件に応じてこの変更を実施し、文字
配列等の条件によらず常にバランスの良い文字パターン
出力を与え得る文字出力方式を提供することにある。
SUMMARY OF THE INVENTION In order to solve the above problems, an object of the present invention is to make it possible to change the size and position of a character pattern within the character frame when outputting a character pattern string in a character frame of a specified size, and to It is an object of the present invention to provide a character output method that can perform this change according to conditions such as character arrangement, etc., and can always provide a well-balanced character pattern output regardless of conditions such as character arrangement.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、文字パターンを文字字書に保持し、これを
拡大縮小する手段を備え、出力すべき文字列中の当該文
字の出力に際して当該文字の文字パターンを文字字書よ
り取出し、指定サイズの文字パターンを得たあと、更に
これを拡大縮小する必要があるか否かを判断し、その必
要があれば上記拡大縮小手段によってそれを行ない、そ
のパターンを文字字書中の配置位置情報を拡大縮小率に
応じて出力文字パターンの領域に配置することによって
達成される。
The above purpose is to store character patterns in a character font, provide means for enlarging and reducing the size of the character, and when outputting a character in a character string to be output, extract the character pattern of the character from the font, and adjust the character pattern to a specified size. After obtaining a character pattern, it is determined whether it is necessary to further enlarge or reduce the character pattern, and if necessary, it is performed using the above-mentioned enlarging/reducing means, and the layout position information of the pattern in the character book is enlarged. This is achieved by arranging the area of the output character pattern according to the reduction ratio.

〔作用〕[Effect]

文字字書は、文字毎に文字の種別を表わすコード、表示
パターンを表わす文字のストロークの骨格点または輪郭
点の座標群、及び文字枠内の文字パターンの配置基準点
の位置情報等を記憶する。
The character writing stores a code representing the type of character for each character, a coordinate group of the skeleton points or outline points of the character stroke representing the display pattern, and position information of the arrangement reference point of the character pattern within the character frame. .

文字字書はこれを文字サイズ毎に保持することも可能で
ある。文字パターンを拡大縮小する手段は、文字字書か
ら読込んだ文字パターンを基に従来技術の図形処理によ
り変形を施すものである。文字のコードは文字字書内に
記憶された文字パターン群の中から処理対象とする文字
パターンを検索して取出すのに用い、一方文字サイズは
出力文字枠のサイズを決定するとともに文字字書又は文
字パターンの選択に用いる。文字字書内の文字パターン
配置基準点の位置情報は、指定サイズの文字行のどの位
置に当該文字枠を位置づけるかを定める。
It is also possible to hold this for each character size. The means for enlarging/reducing the character pattern is to transform the character pattern read from the character book using conventional graphic processing. The character code is used to search and extract the character pattern to be processed from among the character patterns stored in the character font, while the font size determines the size of the output character frame and also Used to select character patterns. The positional information of the character pattern arrangement reference point in the character book determines where in the character line of the specified size the character frame is positioned.

文字パターンの配置位置補正値を定める手段は、拡大縮
小後の文字パターンを出力サイズの文字枠内にバランス
よく配置できるよう文字パターンを移動する際の移動量
を決定する。文字パターン変更の条件は、変更の方法や
変更の有無を決定する。
The means for determining the correction value for the arrangement position of the character pattern determines the amount of movement when moving the character pattern so that the character pattern after scaling can be arranged in a well-balanced manner within the character frame of the output size. The conditions for changing the character pattern determine the method of change and whether or not to change it.

この条件としては、隣接文字や出力対象文字のコード、
文字パターンの性質又は変更対象文字セット等がある。
This condition includes the code of adjacent characters and characters to be output,
There are characteristics of character patterns, character sets to be changed, etc.

変更条件として用いる文字パターンの性質の基準値情報
とは、これと出力対象文字パターンの性質とを比較する
ことによって当該文字の文字パターン変更法を決定する
基準となる情報である。
The reference value information of character pattern properties used as a change condition is information that serves as a standard for determining a character pattern change method for the character by comparing this with the properties of the character pattern to be output.

以上により、文字出力の際の変更は文字枠内の文字パタ
ーンの変更のみに限るので、文字枠そのものは予め定め
られた位置に配置でき、それによって文字列としての割
付けを維持しつつ、より美しいバランスの出力結果が得
られる。
As a result of the above, changes made when outputting characters are limited to changing the character pattern within the character frame, so the character frame itself can be placed in a predetermined position, thereby maintaining the layout as a character string and making it more beautiful. A balanced output result is obtained.

〔実施例〕〔Example〕

以下、本発明の一実施例を図面を用いて詳細に説明する
Hereinafter, one embodiment of the present invention will be described in detail using the drawings.

第2図は日本語ワードプロセッサの構成図である。図中
の符号201は処理装置、符号202はキーボード、符
号203はデイスプレィ、符号204はプリンタ、符号
205はディスク記憶装置、符号206はメイン・メモ
リである。ディスク記憶装置205は、文字出力プログ
ラムおよび各文字の基本文字パターンを収容した文字字
書を格納する。文字出力プログラムはディスク記憶装置
t 205よりメイン・メモリ206に読込まれ、処理
装置201で実行される。本プログラムは、出力の対象
となる文字列に関して出力文字サイズ。
FIG. 2 is a block diagram of a Japanese word processor. In the figure, 201 is a processing device, 202 is a keyboard, 203 is a display, 204 is a printer, 205 is a disk storage device, and 206 is a main memory. The disk storage device 205 stores a character output program and a character book containing the basic character pattern of each character. The character output program is read into the main memory 206 from the disk storage device t205 and executed by the processing device 201. This program uses the output character size for the character string to be output.

文字コード列および各種のコマン1−をキーボード20
2より読込み、入力された値をデイスプレィ203に表
示する。本プログラムは、指定された文字コードの文字
パターンをディスク記憶装置205より読込む。この際
、字書中に文字サイズ毎の文字パターンが保持されてい
るのであれば指定サイズの文字パターンを取出す。他方
、字書には基準サイズの文字パターンが保持されている
のであれば、これに基づいて指定サイズの文字パターン
を作成する。このようにして、指定サイズの文字パター
ンを得たあと、本プログラムは、実に、条件に応じて、
文字枠内の文字パターンのみを変更して変更文字パター
ンを生成して出力文字パターン列上に配置し、デイスプ
レィ203またはプリンタ204に出力する。
Character code string and various commands 1- to keyboard 20
2 and displays the input value on the display 203. This program reads the character pattern of the specified character code from the disk storage device 205. At this time, if character patterns for each character size are held in the handwriting, a character pattern of the specified size is extracted. On the other hand, if the character pattern of the reference size is held in the handwriting, a character pattern of the specified size is created based on this. In this way, after obtaining the character pattern of the specified size, this program will actually, depending on the conditions,
Only the character pattern within the character frame is changed to generate a changed character pattern, placed on the output character pattern string, and output to the display 203 or printer 204.

本プログラムの動作の詳細を以下第1図により説明する
。第1図は、第2図の処理装置201で実行される本発
明の文字出力プログラムの動作を示すフローチャートで
ある。
The details of the operation of this program will be explained below with reference to FIG. FIG. 1 is a flowchart showing the operation of the character output program of the present invention executed by the processing device 201 of FIG.

本実施例における文字字書の文字パターン保持形式は、
文字の各ストロークの種別とそのストロークの骨格点列
と太さ等のパラメタという3種の情報の組合せとして文
字パターンをもつ、いわゆる骨格文字方式とする。この
方式の例は特願昭59−58263に記されている。骨
格文字方式について第7図により説明する。骨格文字方
式では文字パターンをいくつかの基本パターンの組合せ
で表現し、この基本パターンをストロークと呼ぶ。漢字
の場合は16種類程度のストロークがあればそれらの組
合せによってすべての文字パターンが表現できるとされ
ている。第7図のパターンは漢字を構成するストローク
の1つである「左払い」を表わす。[左払いJは上から
左下方向に筆を動かすストロークであり、例えば「休」
という文字の入側「イ」の第1−画の部分に用いられる
。文字字書の情報としては、文字を構成する各ストロー
クの種別とそのストロークの骨格点列と太さ等のパラメ
タという3種の情報を保持する。図のSi、 Sx、お
よびS8は骨格点を示す。骨格点は文字枠の左下隅を原
点とする直交座標(x、y)で表わす。
The character pattern retention format of the character script in this embodiment is as follows:
This is a so-called skeleton character system in which a character pattern is a combination of three types of information: the type of each stroke of a character, the skeleton point sequence of the stroke, and parameters such as thickness. An example of this method is described in Japanese Patent Application No. 59-58263. The skeleton character system will be explained with reference to FIG. In the skeletal character system, a character pattern is expressed by a combination of several basic patterns, and these basic patterns are called strokes. In the case of kanji, it is said that if there are about 16 types of strokes, all character patterns can be expressed by combining them. The pattern in FIG. 7 represents ``left hand'', which is one of the strokes that make up the kanji. [Left-handling J is a stroke that moves the brush from the top to the bottom left, for example, "Kyu"
It is used for the first stroke of the entry side of the character ``i''. Three types of information are held as character information: the type of each stroke that constitutes a character, the skeleton point sequence of the stroke, and parameters such as thickness. Si, Sx, and S8 in the figure indicate skeleton points. The skeleton points are represented by orthogonal coordinates (x, y) with the origin at the lower left corner of the character frame.

これらの各骨格点の位置と太さパラメタW 1 + W
 21W8とからストローク種別に特有の輪郭特徴点P
 f、 P 21 P sr P 41 P 5、およ
びP6を発生させる。これらの輪郭特徴点をストローク
種別に応じて直線、スプライン曲線およびベジェ曲線等
の線でつなぐことによりストロークの輪郭を作り、内部
を塗りつぶすことによって輪郭パターンを生成する。こ
のように生成したストロークの輪郭パターンを合成して
1文字のパターンを作る。骨格文字方式における文字パ
ターンの拡大縮小の方法としでは、まず骨格パターンの
拡大縮小を施したあと軸郭パターンを生成する方法が考
えられる。
The position and thickness parameter W 1 + W of each of these skeleton points
21W8 and contour feature points P specific to the stroke type.
f, P 21 P sr P 41 P 5, and P6 are generated. A stroke outline is created by connecting these outline feature points with a line such as a straight line, a spline curve, or a Bezier curve depending on the stroke type, and an outline pattern is generated by filling the inside. The contour patterns of the strokes generated in this way are combined to create a pattern for one character. As a method for enlarging and reducing character patterns in the skeleton character system, a method of first enlarging and reducing the skeleton pattern and then generating an axis pattern can be considered.

すなわち各骨格点の座m (X、Y)に対し、文字パタ
ーンの拡大縮小率りを乗じて座標の拡大縮小を行ない、
その結果、(n X、 n Y)を骨格点座標として得
、所望のサイズの骨格パターン情報を求める方法である
。また太さパラメタについても上記と同様に文字パター
ンの拡大縮小率nで定まる定数を乗することにより所望
のサイズの文字の太さを求めることができる。
That is, the coordinates are scaled by multiplying the locus m (X, Y) of each skeleton point by the scale ratio of the character pattern,
As a result, (nX, nY) is obtained as the skeleton point coordinates, and skeleton pattern information of a desired size is obtained. Further, as for the thickness parameter, the thickness of a character of a desired size can be obtained by multiplying it by a constant determined by the enlargement/reduction ratio n of the character pattern in the same manner as described above.

第1図において、符号101は出力文字のコードと、隣
接文字のコード及び出力文字の文字サイズSを読込む処
理、符号102は、上記出力文字の文字サイズ及び文字
コードを文字字書読出し部に対して与え文字パターンの
各骨格点の座標P+(Xl、 Yl)  (ただし、1
≦i≦骨格点数)と文字配置位置rを求める処理、符号
103は、出力文字コードをキーとして文字字書を検索
し、出力文字パターンの黒地密度Bを読込む処理、符号
104は、出力文字のコードが文字パターン変更テーブ
ルに含まれるか否かを判定しその結果に応じて分岐する
処理、符号105は、処理104の判定結果が’Yes
”の場合に隣接文字コードをキーとして文字字書を検索
し、隣接文字パターンの黒地密度Cを読込む処理、符号
106は、出力文字の文字パターン黒地密度Bと隣接文
字の文字パターン黒地密度Cとの比率mを求める処理、
符号107は、文字パターン拡大縮小条件の最小値Kを
読込む処理、符号108は、出力文字パターンを拡大縮
小する必要があるか否かを、上で求めたm、Kに基づい
て判定する処理、符号109は、処理108の判定結果
が’Yes’の場合に、処理106で求めた黒地密度比
mに基づいて出力文字の文字パターン拡大縮小率nを決
定する処理、符号110は、文字パターンの骨格点座標
を一時的に退避する処理、符号111は、文字パターン
骨格点の座標を処理109で決定した倍率nで拡大縮小
する処理、符号112は、文字パターン拡大縮小にとも
なう文字パターン移動に必要なX軸方向の配置位置補正
値dxを、文字サイズSと処理109で決定した文字パ
ターン拡大縮小率nとに基づいて決定する処理、符号1
13は、処理112と同様にY軸方向の配置位置補正値
dyを、文字配置位置rと文字パターン拡大縮小率nと
に基づいて決定する処理、符号114は、処理112と
処理113で決定した補正値の分だけ文字パターンの骨
格点座標を移動する処理、符号115は、処理114の
移動により出力文字枠からはみ出した骨格点が1一つで
もあるかどうかを判定する処理、符号116は、処理1
15の判定結果がYes’の場合に、文字パターンの骨
格点座標を処理110で退避しておいた値に回復する処
理、符号117は、処理104の判定結果が′NO′で
ある場合、処理108の判定結果が+NO′である場合
、処理115の判定結果が’ N o ’である場合、
及び処理116のあとで実行され、それぞれに定められ
た骨格点の座標P r (X i 、 Y I)に基づ
いて輪郭を発生させ文字パターンを生成し、出力文字枠
内に配置する処理である。
In FIG. 1, numeral 101 is a process of reading the code of the output character, the code of the adjacent character, and the character size S of the output character, and the numeral 102 is the process of reading the character size and character code of the output character into the character reading section. The coordinates of each skeleton point of the given character pattern P+(Xl, Yl) (where 1
≦i≦skeleton score) and the character arrangement position r. Reference numeral 103 is a process of searching the character script using the output character code as a key, and reading the black background density B of the output character pattern. Reference numeral 104 is the process of calculating the character arrangement position r. A process 105 that determines whether or not the code is included in the character pattern change table and branches according to the result is a process in which the determination result of process 104 is 'Yes.
”, the character script is searched using the adjacent character code as a key, and the black background density C of the adjacent character pattern is read. Reference numeral 106 refers to the character pattern black background density B of the output character and the character pattern black background density C of the adjacent character. The process of finding the ratio m of
Reference numeral 107 is a process of reading the minimum value K of the character pattern scaling conditions, and reference numeral 108 is a process of determining whether or not it is necessary to scale the output character pattern based on m and K determined above. , reference numeral 109 indicates a process of determining the character pattern enlargement/reduction ratio n of the output character based on the black ground density ratio m determined in process 106 when the determination result of process 108 is 'Yes'; reference numeral 110 indicates a process of determining the character pattern enlargement/reduction ratio n of the output character. 111 is a process for temporarily saving the coordinates of the skeleton point of the character pattern. Reference numeral 111 is a process for enlarging or reducing the coordinates of the character pattern skeleton point by the magnification n determined in process 109. Reference numeral 112 is a process for moving the character pattern as the character pattern is enlarged or reduced. A process of determining a necessary arrangement position correction value dx in the X-axis direction based on the character size S and the character pattern scaling ratio n determined in process 109, code 1
13 is a process of determining the arrangement position correction value dy in the Y-axis direction based on the character arrangement position r and the character pattern enlargement/contraction rate n, similar to process 112; and 114 is the process determined in process 112 and process 113. The process of moving the skeleton point coordinates of the character pattern by the amount of the correction value, reference numeral 115, is the process of determining whether even one skeleton point has protruded from the output character frame due to the movement in process 114, and the reference numeral 116 is, Processing 1
117 is a process of restoring the skeleton point coordinates of the character pattern to the values saved in process 110 when the determination result of process 104 is 'NO'. If the determination result of step 108 is +NO', if the determination result of step 115 is 'No',
This process is executed after the process 116 and generates a character pattern by generating an outline based on the coordinates P r (X i , Y I) of the respective skeleton points, and arranges it within the output character frame. .

処理101で読込む文字サイズは出力文字枠すイズを与
える。処理102はこの文字サイズと文字コードを字書
読出し部に与える。文書読出し部は字書中に当該サイズ
の文字パターンかあればそれを返し、なければ当該文字
サイズになるよう拡大縮小して返す。ここで返す文字パ
ターンは、文字枠の左下隅を原点とする直交座標で表わ
した文字ストロークの骨格点座標P+(Xt、Yl)の
系列である。これからストロークの輪郭を生成し文字の
出カバターンを生成することは特願昭59−58263
号等の方法で可能である。次に処理102の文字配置位
置rは、文字枠を行に割付ける際に必要な配置情報であ
り、ここでは横書き出力を前提として文字枠上Y−rの
線を出力行のベースライン上に配置すべきことを示すも
のとする。次の文字パターン黒地密度については後述す
る。処理104では、文字パターン変更テーブルを参照
してその中に当該文字コードが有る場合に限って、当該
文字パターンを拡大縮小することを決定する。通常のデ
ザインを経た文字フォントであれば、本特許の目的とす
る文字パターン変形を要する文字の種類は文字フォント
中の文字のごく一部分である。
The character size read in process 101 gives the output character frame size. Processing 102 provides the character size and character code to the character reading section. The document reading unit returns a character pattern of the relevant size if there is one in the text, and if not, scales the character pattern to the relevant character size and returns it. The character pattern returned here is a series of skeleton point coordinates P+(Xt, Yl) of character strokes expressed in orthogonal coordinates with the lower left corner of the character frame as the origin. Patent application No. 59-58263 describes how to generate stroke outlines and character appearance patterns from this.
This is possible using methods such as No. Next, the character placement position r in process 102 is placement information necessary when allocating a character frame to a line. Here, assuming horizontal writing output, the line Y-r on the character frame is placed on the baseline of the output line. This shall indicate what should be placed. The black background density of the next character pattern will be described later. In process 104, the character pattern change table is referred to, and only when the character code exists therein, it is determined to enlarge or reduce the character pattern. If the character font has undergone a normal design, the types of characters that require the character pattern transformation that is the object of this patent are only a small portion of the characters in the character font.

変更テーブルには、例えば1日」、「目」、「田j等の
比較的文字のデザインが単純であるために隣接文字との
関係で文字パターンの大きさの見え方が変わるような文
字のコード群を持つのが一法である。本テーブルは別途
更新することが可能である。以下処理105から処理1
16までは、文字パターン変更処理の主要部であり、後
で具体的に説明する。処理117は、従来の骨格方式の
文字パターン生成技術を用いて文字パターンを生成し、
出力行に配置する。
The change table contains, for example, characters whose character designs are relatively simple, such as ``1日'', ``目'', and ``田j'', so that the size of the character pattern changes depending on the relationship with adjacent characters. One method is to have a code group.This table can be updated separately.The following processes 105 to 1
The steps up to No. 16 are the main parts of the character pattern changing process, and will be explained in detail later. Processing 117 generates a character pattern using a conventional skeleton method character pattern generation technique,
Place it on the output line.

ここで第4図を用いて文字パターン変更法の具体例を示
す。この変更の必要性については第3図によって既に説
明した。第3図(、)(b)の各各に現われる「田」と
いう文字パターンは全く同一の文字パターンであるが隣
接文字が異なることによって、(a)では適切な大きさ
に、(b)では小さ過ぎると感ぜられる。そこで、第3
図の(b)における「田」の文字パターン301を文字
枠サイズを保存しつつ拡大したのが第4図(b)の「田
」の文字パターン401である。第4図におけるこの他
の3つの文字パターンは第3図の対応文字パターンと同
一である。ここで上記第4図(b、)の「田」の文字パ
ターン401の拡大率は、第3図(b)の「武」の文字
パターン303と「田」の文字パターン301の黒地密
度の値の比率で求めたものである。さて、文字パターン
の拡大縮小を行なうと、出力行上のベースラインに合わ
せて配置すべき位置である文字配置位置もそれに伴なっ
て拡大縮小するのが普通である。しかし、ここでは文字
枠サイズを保存してその中の文字パターンのみを拡大縮
小したいのであるから、拡大縮小後の文字配置位置の調
整が必要である。この調整量が配置位置補正値である。
Here, a specific example of the character pattern changing method will be shown using FIG. The necessity of this change has already been explained with reference to FIG. The character pattern ``田'' appearing in each of Figures 3 (,) and (b) is exactly the same character pattern, but because the adjacent characters are different, it is the appropriate size in (a), and in (b). It feels too small. Therefore, the third
The character pattern 401 for "田" in FIG. 4(b) is obtained by enlarging the character pattern 301 for "田" in FIG. 4(b) while preserving the character frame size. The other three character patterns in FIG. 4 are the same as the corresponding character patterns in FIG. Here, the magnification rate of the character pattern 401 for "Ta" in FIG. 4(b) is the value of the black background density of the character pattern 303 for "Take" and the character pattern 301 for "Ta" in FIG. 3(b). It was calculated using the ratio of Now, when a character pattern is enlarged or reduced, the character placement position, which is the position where the character should be placed in accordance with the baseline on the output line, is also usually enlarged or reduced accordingly. However, here, we want to preserve the character frame size and scale only the character pattern within it, so it is necessary to adjust the character placement position after scaling. This adjustment amount is the placement position correction value.

この値の決定方法について後に述へる。A method for determining this value will be described later.

次に、第1図の処理105から処理116に到る文字パ
ターン変更処理をより具体的に説明する。
Next, the character pattern changing process from process 105 to process 116 in FIG. 1 will be explained in more detail.

第1図では、文字パターンの性質を表わす情報の1つで
ある黒地密度に基づいて文字パターンを変更する。文字
パターンの黒地密度は、文字枠内の総ドツト数に対する
文字の出カバターン上のドツト数の割合で表わす。この
黒地密度は、これを予め文字字書に記憶しておくことに
より、前述の処理102のように文字コードによって検
索可能である。今、処理102で求めた結果として、文
字パターン「田」の黒地密度Bは31%であるとする。
In FIG. 1, the character pattern is changed based on the black background density, which is one of the information representing the properties of the character pattern. The black density of a character pattern is expressed as the ratio of the number of dots on the pattern of the character to the total number of dots in the character frame. By storing this black ground density in advance in a character book, it can be searched by character code as in the process 102 described above. Assume that as a result obtained in process 102, the black background density B of the character pattern "田" is 31%.

一方、既に出力済みの隣接文字である「武」303の黒
地密度Cは処理105において32.8%として求まる
ものとする。この結果、隣接文字と当該文字の黒地密度
の比mは32.8/39  によりm ’41 、05
8  と求められる。本実施例では、m−1の絶対値、
即ち1m−11がある範囲を越えるときに文字パターン
の拡大縮小処理を行なうものとする。そのしきい値Kを
字書に保持するものとし処理107でこれを読込む。処
理108は(黒地密度比−1)l>’にの判定を行なう
。例えば、K=0.04 であるとする。すると、m 
−141,058−1=0.058>0.04であるか
ら処理108の判定は成立するので当該文字パターンの
拡大縮小処理を行なう必要があり処理109に進む。処
理109では文字パターンの拡大縮小率nを求める。本
実施例はこれを、黒地密度比の平方根として求める。つ
まり、n = m 2とする。次の処理110では文字
パターンの骨格点座標P i(X 1. Y I)をす
べての骨格点について退避し後の処理116に備える。
On the other hand, it is assumed that the black background density C of the adjacent character "BU" 303, which has already been output, is determined as 32.8% in the process 105. As a result, the ratio m of the black background density of the adjacent character and that character is 32.8/39, so m '41,05
8 is required. In this example, the absolute value of m-1,
That is, when 1m-11 exceeds a certain range, the character pattern is enlarged/reduced. The threshold value K is stored in the text and is read in step 107. In process 108, it is determined that (black background density ratio-1)l>'. For example, assume that K=0.04. Then m
Since -141,058-1=0.058>0.04, the determination in step 108 is established, and it is necessary to perform enlargement/reduction processing for the character pattern, and the process proceeds to step 109. In process 109, the scaling ratio n of the character pattern is determined. In this embodiment, this is determined as the square root of the black background density ratio. In other words, n = m2. In the next process 110, the skeleton point coordinates P i (X 1. Y I) of the character pattern are saved for all the skeleton points in preparation for the subsequent process 116.

さて、処理111では各々の骨格点座標P + (X 
s 、 Y t )をn倍にする。次の処理112と処
理113では各々X軸方向及びY軸方向の配置位置補正
値を決定する。
Now, in process 111, each skeleton point coordinate P + (X
s, Yt) is multiplied by n. In the next process 112 and process 113, arrangement position correction values in the X-axis direction and the Y-axis direction are determined, respectively.

ここで、配置位置補正の必要性を具体的に説明しておく
。第6図は、文字字書に保持される文字パターンと配置
位置情報との関係を説明するものである。第6図の(a
)はこの配置位置rが文字列の領域上のベースライン上
の位置を示すものであることを表わす。(b)は「田」
という文字の文字枠と文字パターンと配置位Wrとの関
係を示す。(b)では、「田」の文字パターン中の骨格
点の代表としての一点P+(X+、Y+)を表示してい
る。これは骨格点P+の座標が(xt、 yt)である
ことを示す。座標は文字枠の左下隅を原点とする直交座
標系で表わし、右方向をX軸の正方向、上方向をY軸の
正方向とする。Plは文字の第j番目の骨格点を示すも
のとする。さて、文字パターンを出力する際には出力行
領域上にベースラインを設定し、その上に当該文字の文
字枠のY = r(rは配置位置の値とする)の線を合
わせて配置する。各文字パターンはこのことを前提に文
字枠内にデザインされている。文字パターン601を出
力行に配置した例を第6図(e)に示す。
Here, the necessity of the arrangement position correction will be specifically explained. FIG. 6 explains the relationship between character patterns held in a character book and arrangement position information. Figure 6 (a
) indicates that this arrangement position r indicates a position on the baseline in the character string area. (b) is "田"
The relationship between the character frame, character pattern, and placement position Wr of the character is shown. In (b), one point P+(X+, Y+) is displayed as a representative of the skeleton points in the character pattern of "田". This indicates that the coordinates of the skeleton point P+ are (xt, yt). The coordinates are expressed in an orthogonal coordinate system with the origin at the lower left corner of the character frame, with the right direction being the positive direction of the X axis and the upward direction being the positive direction of the Y axis. Let Pl indicate the j-th skeleton point of the character. Now, when outputting a character pattern, set a baseline on the output line area, and align the line of Y = r (r is the value of the placement position) of the character frame of the character on top of it. . Each character pattern is designed within the character frame with this in mind. An example in which a character pattern 601 is arranged on an output line is shown in FIG. 6(e).

次に、やはり第6図によって、文字パターンの拡大縮小
と配置位置の変化との関係を説明する。
Next, the relationship between enlargement/reduction of character patterns and changes in arrangement position will be explained with reference to FIG. 6 as well.

文字パターン601を拡大縮小率nで拡大すると、当該
文字の任意の骨格点Pl(xt、 yt)は、第1図の
処理111によりPt(n x、、 n Yt)に移る
When the character pattern 601 is enlarged by a scaling factor n, an arbitrary skeleton point Pl(xt, yt) of the character is moved to Pt(n x, , n Yt) by processing 111 in FIG.

この結果の文字パターンは第6図(Q)のようになる。The resulting character pattern is as shown in FIG. 6 (Q).

文字枠サイズもn倍され、配置位置rもr1倍されてい
る。出力文字列としては文字枠サイズをn倍したものを
配置してしまうと不都合であることは前述の通りである
。そこで、この文字枠の中から当該文字枠として変形前
の文字枠を示したのが(c)の破線部分である。この文
字枠サイズは出力の目的に合うものであり、その中の文
字パターン部分のサイズも適切なものであるはずである
が、文字枠内の文字パターンの位置が適当でない。そこ
でこの文字枠内で文字パターンの位置を補正するのが配
置位置補正であり、X軸方向・Y軸方向への補正の大き
さを表わす値が配置位置補正値である。この配置位置補
正値に従って文字パターン即ち各々の骨格点をX軸・Y
軸方向に平行移動させることにより、当該サイズの文字
枠上の適切な位置に文字パターンが収容された第6図(
d)のパターンが得られる。これを出力行上に配置した
結果を(f)に示す。
The character frame size is also multiplied by n, and the arrangement position r is also multiplied by r1. As mentioned above, it is inconvenient to arrange the output character string by n times the character frame size. Therefore, the broken line portion in (c) shows the character frame before transformation as the character frame in question. This character frame size is suitable for the purpose of output, and the size of the character pattern portion within it should also be appropriate, but the position of the character pattern within the character frame is not appropriate. Therefore, correcting the position of the character pattern within this character frame is arrangement position correction, and the value representing the magnitude of correction in the X-axis direction and Y-axis direction is the arrangement position correction value. According to this arrangement position correction value, the character pattern, that is, each skeleton point, is
By moving the character pattern in parallel in the axial direction, the character pattern is accommodated in the appropriate position on the character frame of the relevant size (Fig. 6).
The pattern d) is obtained. The result of placing this on the output line is shown in (f).

ここで、処理112,113及び114における配置位
置補正値の決定法とそれによる配置位置補正について説
明する。文字サイズをSとするとX軸力向の配置位置補
正値dxを、 dx=s(n−1)/2 で求める。ここで、nは処理109で求めた拡大縮小率
である。また、Y軸方向補正値dyは、dy=p(n−
1) として求める。この補正値dx、dyを用いて、処理1
14で実際に文字パターンの平行移動を行なうのである
。上記の補正値の決定では、X軸方向は文字サイズSか
ら求め、Y軸方向は文字配置位置rから求めているが、
Y軸方向の補正値をX軸方向と同様に文字サイズSから
求める方法もある。この場合は、 d y = S (n −1)/ 2 で求める。この方法によれば、拡大縮小文字パターンは
、配置位置補正後、出力文字枠内のX軸・Y軸方向とも
中央に配置される。出力文字枠内の中央に配置された文
字パターンの列を出力する一つの方法として、出力文字
枠の縦(縦書きの場合など)または横方向の2等分線を
出力行領域上のベースラインに重ねて配置する方法があ
る。第6図の(g)は、その例であり、出力文字枠の横
方向の2等分線を出力行のベースラインに重ねて配置し
た結果を表わす。
Here, the method of determining the arrangement position correction value in processes 112, 113, and 114 and the arrangement position correction based on the method will be explained. Assuming that the character size is S, the arrangement position correction value dx in the X-axis force direction is calculated as follows: dx=s(n-1)/2. Here, n is the enlargement/reduction ratio obtained in process 109. Further, the Y-axis direction correction value dy is dy=p(n−
1) Find as. Using these correction values dx and dy, processing 1
In step 14, the character pattern is actually translated in parallel. In determining the above correction value, the X-axis direction is determined from the character size S, and the Y-axis direction is determined from the character arrangement position r.
There is also a method in which the correction value in the Y-axis direction is obtained from the character size S in the same way as in the X-axis direction. In this case, it is determined by dy = S (n -1)/2. According to this method, the enlarged/reduced character pattern is arranged at the center of the output character frame in both the X-axis and Y-axis directions after the arrangement position is corrected. One way to output a string of character patterns centered in the output character frame is to set the vertical (for vertical writing, etc.) or horizontal bisector of the output character frame to the baseline on the output line area. There is a way to place them on top of each other. FIG. 6(g) is an example of this, and shows the result of arranging the horizontal bisector of the output character frame so as to overlap the baseline of the output line.

以上で、第1図の処理114までの説明を終った。次に
、上記の拡大縮小処理(拡大の場合)によって、文字パ
ターンか当該文字枠サイズを越えてしまう場合について
の本実施例での取扱いについて述べる。その取扱いは簡
単で、拡大縮小前の文字パターンをそのまま用いるので
ある。この文字枠からのはみ出しの判定が処理115で
ある。
This completes the explanation up to process 114 in FIG. Next, how this embodiment handles the case where the character pattern exceeds the character frame size due to the above-mentioned enlargement/reduction process (in the case of enlargement) will be described. It is easy to handle, and the character pattern before scaling is used as is. Process 115 determines whether the character protrudes from the character frame.

はみ出しと判定されると処理116に進み、処理110
で退避してあった文字パターンを回復して出力文字パタ
ーンとして処理117に進む。一方、はみ出しの判定で
N o ’ と判定されると、処理114の結果の文字
パターンを出力文字パターンとして処理117に進む。
If it is determined that there is a protrusion, the process proceeds to process 116, and the process 110
The character pattern saved in step 1 is recovered and used as an output character pattern, and the process proceeds to step 117. On the other hand, if the determination of protrusion is No', the character pattern resulting from the process 114 is used as the output character pattern and the process proceeds to process 117.

処理117は以上で得た出力文字パターンを元に、前述
の特願昭59−58263等の方々で骨格点より実際の
出カバターンに変換し、配置位置を出力文字パターン領
域内のベースラインに重ねて出方する。
In process 117, based on the output character pattern obtained above, the skeleton points are converted into an actual output pattern by the above-mentioned patent application No. 59-58263, and the placement position is superimposed on the baseline in the output character pattern area. I'll come out.

以上で第1図の説明を終る。以下では第1図で例示した
方法の代替方法について簡単に述べることとする。
This concludes the explanation of FIG. An alternative method to the method illustrated in FIG. 1 will be briefly described below.

第1図では、文字パターン変更の条件として文字パター
ンの黒地密度比を用いる例を示した。実際には、この変
更条件の基準としては次に示すような種々の場合が考え
られる。
FIG. 1 shows an example in which the black background density ratio of the character pattern is used as a condition for changing the character pattern. In reality, the following various cases can be considered as criteria for this change condition.

(1)隣接した文字の種類により当該文字の文字パター
ン変更を施すか否かを決める。文字パターン変更対象の
文字コードの組合せを設定しておき、それを参照するこ
とにより文字パターン変更の判定を行なう。
(1) Determine whether or not to change the character pattern of the adjacent character depending on the type of adjacent character. Combinations of character codes to be changed in the character pattern are set, and by referring to the combinations, the character pattern change is determined.

(2)隣接した文字のパターンの性質によって決める。(2) Determined by the nature of the pattern of adjacent characters.

性質としては、文字パターンを囲む最小の凸多角形のサ
イズ等がある。隣接文字の最小凸多角形のサイズを算出
し、当該文字の値と比較することにより文字パターン変
更の有無を決める。
The properties include the size of the smallest convex polygon surrounding the character pattern. The size of the minimum convex polygon of an adjacent character is calculated and compared with the value of the character in question to determine whether or not to change the character pattern.

(3)隣接文字について(2)と同様の性質を用いるが
、出力時に算出して求めるのではなく予め記憶しておい
た値を用いる方法。
(3) A method that uses the same properties as (2) for adjacent characters, but uses pre-stored values instead of calculating them at the time of output.

(4)当該文字について予め字書内に文字パターン変更
要否フラグを設定しておき、それに基づいて決定する。
(4) A character pattern change necessity flag is set in advance in the character for the character, and the determination is made based on the flag.

(5)文字パターンを変更すべき文字コード群を予め記
憶しておき、当該文字のコードがその中に含まれるなら
ば変更する。逆に変更が許されない文字コード群を記憶
しておく方法も可能である。
(5) A character code group whose character pattern is to be changed is stored in advance, and if the character code is included in the group, the character code is changed. Conversely, it is also possible to store a group of character codes that are not allowed to be changed.

(6)予め設定された情報(例えば、黒地密度の値)を
基準値とし、これと当該文字の該当する性質の値とを比
較し、その大小関係に応じて文字パターン変、更の要否
を決定する。
(6) Using preset information (for example, the value of black background density) as a reference value, compare this with the value of the relevant property of the character in question, and determine whether the character pattern needs to be changed or changed depending on the size relationship. Determine.

(7)当該文字パターンの出力以前に設定されたモード
(縦書きモード、可変ピッチ・モード等)に応じて文字
パターン変更を決定する。
(7) Deciding to change the character pattern according to the mode (vertical writing mode, variable pitch mode, etc.) set before outputting the character pattern.

上記の代替方法について図を用いて説明する。The above alternative method will be explained using figures.

ただし、代替方法と第1図の処理では共通する部分が多
いので、以降の説明では代替方法に特有の処理を中心に
図示し、更にその前後の処理として対応する第1図の処
理を付加することにした。
However, since there are many common parts between the alternative method and the processing shown in Figure 1, the following explanation will focus on the processing unique to the alternative method, and will also add the corresponding processing shown in Figure 1 as processing before and after it. It was to be.

以下において、第1図と同じ参照番号の処理は同じもの
をさす。
In the following, the same reference numbers as in FIG. 1 refer to the same processes.

代替方法(1)の例を第8図に示す。本処理は、第1図
の処理103から処理109までの代替である。符号8
01は、出力文字のコードと隣接文字のコードとの組合
せが文字パターン変更テーブルに含まれるか否かを判定
しその結果に応し′C分岐する処理、符号802は、処
理801の判定結果が’Yes’の場合に変更テーブル
から出力文字の文字パターン拡大縮小率nを読込む処理
である。処理801では、文字パターン変更対象の文字
コードの組合せと、それに関する文字パターン拡大縮小
率とを収容した変更テーブルを参照して、その中に当該
文字と隣接文字とのコードの組合せが有る場合に限って
、当該文字パターンを拡大縮小することを決定する。
An example of alternative method (1) is shown in FIG. This process is an alternative to processes 103 to 109 in FIG. code 8
01 is a process of determining whether the combination of the code of an output character and the code of an adjacent character is included in the character pattern change table, and branching to 'C' according to the result, and code 802 is a process in which the determination result of process 801 In the case of 'Yes', this is a process of reading the character pattern enlargement/reduction ratio n of the output character from the change table. In process 801, a change table containing combinations of character codes to be changed and character pattern enlargement/reduction ratios for the character code combinations to be changed is referred to, and if there is a code combination of the character and an adjacent character in the change table, only then, it is decided to scale the character pattern.

代替方法(2)の例を第9図に示す。本処理は、第1図
の処理103から処理106までの代替である。符号9
01は、出力文字の文字パターンを囲む最小凸多角形の
サイズBを算出する処理、符号902は、隣接文字の文
字パターンを囲む最小凸多角形のサイズCを算出する処
理、符号903は、出力文字と隣接文字の文字パターン
最小凸多角形の比率mを求める処理である。処理901
では、処理102で読込んだ出力文字の各骨格点座標か
ら出力文字パターンを囲む最小凸多角形を求め、そのサ
イズBを算出する。ここでいうサイズとは凸多角形の面
積のことである。処理902では、隣接文字の骨格点座
標から隣接文字パターンを囲む最小凸多角形のサイズC
を算出する。この場合、隣接文字の骨格点座標は、予め
隣接文字の出力の際に記憶しておいた情報から得ること
ができる。
An example of alternative method (2) is shown in FIG. This process is an alternative to processes 103 to 106 in FIG. code 9
01 is a process for calculating the size B of the minimum convex polygon surrounding the character pattern of an output character, 902 is a process for calculating the size C of the minimum convex polygon surrounding the character pattern of adjacent characters, and 903 is the output This process calculates the ratio m of the minimum convex polygon in the character pattern between a character and an adjacent character. Processing 901
Now, the minimum convex polygon surrounding the output character pattern is determined from the coordinates of each skeleton point of the output character read in step 102, and its size B is calculated. The size here refers to the area of a convex polygon. In process 902, the size C of the minimum convex polygon surrounding the adjacent character pattern is determined from the skeleton point coordinates of the adjacent character.
Calculate. In this case, the skeleton point coordinates of the adjacent characters can be obtained from information stored in advance when outputting the adjacent characters.

代替方法(3)の例を第10図に示す。本処理は第1図
の処理103から処理106までの代替である。符号1
001は、出力文字のコードをキーとして文字字書を検
索し、出力文字パターンの最小凸多角形のサイズBを読
込む処理、符号1002は、隣接文字のコードをキーと
して文字字書を検索し、隣接文字パターンの最小凸多角
形のサイズCを読込む処理、符号1003は、出力文字
と隣接文字の文字パターン最小凸多角形の比率mを求め
る処理である。
An example of alternative method (3) is shown in FIG. This process is an alternative to processes 103 to 106 in FIG. code 1
001 is a process of searching a character script using the code of an output character as a key, and reading the size B of the minimum convex polygon of the output character pattern. Code 1002 is a process of searching a character script using the code of an adjacent character as a key. , a process of reading the size C of the minimum convex polygon of the adjacent character pattern, and reference numeral 1003 is a process of calculating the ratio m of the minimum convex polygon of the character pattern of the output character and the adjacent character.

代替方法(4)の例を第11図に示す。本処理は第1図
の処理104の代替である。符号1001は。
An example of alternative method (4) is shown in FIG. This process is an alternative to process 104 in FIG. The code 1001 is.

出力文字のコードをキーとして文字字書を検索し、出力
文字の文字パターン変更要否フラグFを読込む処理、符
号1102は、処理1101で読込んだ変更要否フラグ
Fにより、出力文字パターンを変更する必要性があるか
否かを判定し、F=’l’ならば変更が必要であると判
断して’Yes’に分岐し、F−I:’1’ならば変更
が不要であると判断して’ N o ’ に分岐する処
理である。
A process of searching a character script using the code of an output character as a key and reading a character pattern change necessity flag F of the output character, reference numeral 1102, searches the output character pattern using the change necessity flag F read in process 1101. Determine whether or not there is a need to change, and if F = 'l', it is determined that change is necessary and branch to 'Yes', and if FI: '1', no change is necessary. This is a process in which the process branches to 'No'.

代替方法(5)の例を第12図に示す。本処理は第1図
の処理104の代替である。符号1201は、出力文字
のコードが文字パターン変更禁止テーブルに含まれてい
ないかどうかを判定しその結果に応じて分岐する処理で
ある。処理1201では、出力文字コードが変更禁止テ
ーブルに含まれていなければ文字パターン変更を行なう
ものと判断して’Yes’ に分岐し、逆に変更禁止テ
ーブルに含まれていれば文字パターン変更を行なわない
ものと判断してINo′に分岐する。
An example of alternative method (5) is shown in FIG. This process is an alternative to process 104 in FIG. Reference numeral 1201 is a process of determining whether the code of the output character is not included in the character pattern change prohibition table and branching depending on the result. In process 1201, if the output character code is not included in the change prohibition table, it is determined that the character pattern should be changed, and the process branches to 'Yes'; on the other hand, if the output character code is included in the change prohibition table, the character pattern is not changed. It is determined that there is no such file and branches to INo'.

代替方法(6)の例を第13図に示す。本処理は第1図
の処理104から処理106までの代替である。符号1
301は、黒地密度の基準値りを読込む処理、符号13
02は、出力文字の文字パターン黒地密度Bと黒地密度
の基準値りとの比mを求める処理である。処理1301
で参照する黒地密度基準値は、文字セット内に含まれる
文字全体の平均値を用いたり、または当該出力文字の処
理以前に出力済みの文字群から得た平均値を用いたりす
る方法がある。
An example of alternative method (6) is shown in FIG. This process is an alternative to processes 104 to 106 in FIG. code 1
301 is a process of reading the standard value of black background density; numeral 13;
02 is a process for calculating the ratio m between the character pattern black background density B of the output character and the reference value of the black background density. Processing 1301
As the black ground density reference value referred to in , there are methods of using the average value of all characters included in the character set, or using the average value obtained from a group of characters that have been output before processing the output character.

代替方法(7)の例を第14図に示す。本処理は第1図
の処理104の代替である。符号1401は、文字ピッ
チ・モードEを読込む処理、符号1402は、処理14
01で読込んだ文字ピッチ・モートEが可変ピッチ・モ
ードであるか否かを判定し、その結果に応じて分岐する
処理である。処理1402では、文字ピッチ・モードE
が可変ピッチ・モードであれば文字パターン変更を行な
うものと判断して’Yes’ に分岐し、逆に文字ピッ
チ・モードEが固定ピッチ・モードであれば文字パター
ン変更を行なわないものと判断して’ N o ’に分
岐する。
An example of alternative method (7) is shown in FIG. This process is an alternative to process 104 in FIG. Reference numeral 1401 indicates the process of reading character pitch mode E, and reference numeral 1402 indicates the process 14.
This process determines whether the character pitch mode E read in step 01 is in variable pitch mode or not, and branches depending on the result. In process 1402, character pitch mode E
If the character pitch mode E is in the variable pitch mode, it is determined that the character pattern should be changed and the process branches to 'Yes'; conversely, if the character pitch mode E is in the fixed pitch mode, it is determined that the character pattern is not to be changed. branch to 'No'.

第1図に述べた例では、基準サイズまたは各種サイズの
文字パターンが文字字書に保持されているものと仮定し
、同一文字枠サイズについて同一文字コードの文字パタ
ーンを複数個保持することはないと仮定している。
In the example shown in Figure 1, it is assumed that character patterns of standard size or various sizes are held in the character book, and multiple character patterns of the same character code are not held for the same character frame size. It is assumed that

しかし、この点については別の実施例が考えられる。つ
まり、文字字書内に予め同一の文字枠サイズで字面のサ
イズが異なるパターンを複数個保持する。条件によって
、これらのパターンのうちの1つを選択する手段を持つ
。この場合には、第1図の文字パターンの拡大縮小処理
を行なわずとも所望の文字パターンを文字字書から読込
んで用いることにより、本発明の目的を達成できる。こ
の方法はドツト文字による文字パターン保持方式を採用
した文字出力装置等で可能である。
However, other embodiments are possible in this regard. That is, a plurality of patterns with the same character frame size and different font sizes are held in advance in the character book. It has means for selecting one of these patterns depending on conditions. In this case, the object of the present invention can be achieved by reading the desired character pattern from the character book and using it without performing the scaling process of the character pattern shown in FIG. This method is possible with a character output device that employs a character pattern retention system using dot characters.

本実施例によれば、出力対象文字パターンと隣接文字パ
ターンの黒地密度等の性質の値の比率に応じて出力対象
文字パターンの字面サイズを変更し、かつ出力行中に適
切に配置することができる。
According to this embodiment, the font size of the output target character pattern can be changed according to the ratio of the values of properties such as black background density between the output target character pattern and the adjacent character pattern, and the font size can be appropriately arranged in the output line. can.

〔発明の効果〕〔Effect of the invention〕

本発明によれば、条件に応じて文字パターンのサイズと
それに伴う位置の調整ができるので、従来技術によるよ
りバランスのよい文字列の並びが得られるという効果が
ある。この際、文字枠の配置方法には影響を与えないの
で、既存の配置プログラム、出力装置の機能が利用でき
る。
According to the present invention, since the size of the character pattern and its associated position can be adjusted according to the conditions, it is possible to obtain a more balanced arrangement of character strings than in the prior art. At this time, since the method of arranging character frames is not affected, existing arrangement programs and functions of the output device can be used.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例の文字出力プログラムの動作
を示すフローチャート、第2図は第1図の文字出力プロ
グラムを実行する出力装置の構成図、第3図は文字パタ
ーン変更前の出力例、第4図は第3図の文字パターン変
更により改良した例、第5図は文字パターンの出力行と
文字枠の配置に関係を示す図、第6図は文字パターン配
置位置を詳細に説明した図、第7図は骨格文字方式の説
明図、第8図と第9図と第10図と第11図と第12図
と第13図と第14図は文字パターン変更の代替処理を
示すフローチャートである。 101・・・文字コード等の読込み、102・・・骨格
点座標等の読込み、103・・・出力文字の黒地密度の
読込み、104・・・文字パターン変更テーブルの参照
による判定、105・・・隣接文字の黒地密度の読込み
、106・・・黒地密度比の計算、107・・・拡大縮
小条件のしきい値の読込み、108・・・拡大縮小の必
要性の判定、109・・・文字パターン拡大縮小率の決
定、110・・・骨格点座標の退避、」−11・・・拡
大縮小処理、112・・・X方向補正値の決定、113
・・・Y方向補正値の決定、114・・・文字パターン
移動、115・・7はみ出しのチエツク、116・・・
骨格点座標の回復、117・・・文字パターンの生成・
配置。
Fig. 1 is a flowchart showing the operation of a character output program according to an embodiment of the present invention, Fig. 2 is a configuration diagram of an output device that executes the character output program of Fig. 1, and Fig. 3 is an output before changing the character pattern. For example, Fig. 4 is an example improved by changing the character pattern in Fig. 3, Fig. 5 is a diagram showing the relationship between the character pattern output line and the arrangement of character frames, and Fig. 6 is a detailed explanation of the character pattern arrangement position. Figure 7 is an explanatory diagram of the skeleton character system, and Figures 8, 9, 10, 11, 12, 13, and 14 show alternative processing for changing character patterns. It is a flowchart. 101... Reading of character code, etc., 102... Reading of skeleton point coordinates, etc., 103... Reading of black background density of output character, 104... Judgment by reference to character pattern change table, 105... Reading of black background density of adjacent characters, 106...Calculation of black background density ratio, 107...Reading of threshold value of scaling conditions, 108...Determination of necessity of scaling, 109...Character pattern Determination of enlargement/reduction ratio, 110... Saving of skeleton point coordinates, 11... Enlargement/reduction processing, 112... Determination of X-direction correction value, 113
...Determination of Y direction correction value, 114...Character pattern movement, 115...7 Check for protrusion, 116...
Recovery of skeleton point coordinates, 117...Character pattern generation/
Placement.

Claims (1)

【特許請求の範囲】 1、基準の大きさの文字パターンに対する拡大又は縮小
文字パターンを生成するための基準文字パターン情報か
ら、該基準の大きさの文字パターンに対して定められた
文字枠を越えない大きさを有する、該基準文字パターン
の拡大又は縮小文字パターンを生成し、該基準の大きさ
の文字枠と同じ大きさの文字枠内に該拡大又は縮小文字
パターンを出力することを特徴とする文字出力方式。 2、基準文字パターンを表わす基準パターン情報から、
該基準パターンの文字枠サイズと、それと異なる指定さ
れたサイズの文字枠のサイズとの比と異なる拡大又は縮
小率を有し、かつその指定された拡大又は縮小文字パタ
ーンを生成し、該指定された大きさの文字枠と同じ大き
さの文字枠内に、該拡大又は縮小文字パターンを出力す
ることを特徴とする文字出力方式。 3、上記生成した拡大又は縮小文字パターンを該出力文
字枠内に出力するに際し、その水平方向の位置を、該基
準文字パターンの文字枠を縦に2等分する線上に位置し
た点が、該出力文字枠を縦に2等分する線上に位置する
ように定めることを特徴とする特許請求の範囲第1項ま
たは第2項記載の文字出力方式。 4、上記生成した拡大又は縮小文字パターンを該出力文
字枠内に出力するに際し、その垂直方向の位置を、該基
準文字パターンの文字枠を横に2等分する線上に位置し
た点が、該出力文字枠を横に2等分する線上に位置する
ように定めることを特徴とする特許請求の範囲第1項ま
たは第2項記載の文字出力方式。 5、上記の基準パターン情報は、文字枠の水平方向の線
分である配置線の位置を与える配置位置情報を保持する
ものとし、出力文字枠の配置線の位置としては、該基準
文字枠における配置線の高さに対して、該出力文字枠の
該基準文字枠の大きさに対する比率と同比率を乗じて得
られる高さにあるものとして定めるものとし、上記生成
した拡大又は縮小文字パターンを該出力文字枠内に出力
するに際し、その垂直方向の位置を、該基準文字パター
ンの配置線上の点が該出力文字枠の配置線上に位置する
ように定めることを特徴とする特許請求の範囲第1項ま
たは第2項記載の文字出力方式。 6、指定された文字サイズと文字コード列に従つて文字
パターン列を出力する装置において、文字パターン列を
出力する領域の中に基準線を設定し、出力文字枠の縦又
は横方向の2等分線が該基準線に重なるように該出力文
字枠の位置を設定し、該出力文字枠内に拡大又は縮小文
字パターンを出力することを特徴とする特許請求の範囲
第3項または第4項記載の文字出力方式。 7、指定された文字サイズと文字コード列に従つて文字
パターン列を出力する装置において、文字パターン列を
出力する領域の中に基準線を設定し、出力文字枠の配置
線が該基準線に重なるように該出力文字枠の位置を設定
し、該出力文字枠の位置を設定し、該出力文字枠内に拡
大又は縮小文字パターンを出力することを特徴とする特
許請求の範囲第5項記載の文字出力方式。 8、指定された文字サイズと文字コード列に従つて文字
パターン列を出力する装置において、出力対象の文字の
文字パターンを生成するに際して、単に、当該文字の指
定文字サイズより定まる文字枠サイズと当該基準文字パ
ターンの文字枠サイズとの比率で定まる拡大縮小率とは
異なり拡大縮小率によつて当該基準文字パターンの拡大
又は縮小文字パターンを生成し出力すべき条件を検出す
ることを特徴とする特許請求の範囲第1項または第2項
記載の文字出力方式。 9、上記8項記載の検出は、1対の文字コードの集合を
予め記憶しておき、当該文字と隣接する1文字とのコー
ドの組合せが該集合に含まれるか否かにより該条件を検
出することを特徴とする特許請求の範囲第8項記載の文
字出力方式。 10、上記8項記載の条件の検出は、各々の文字パター
ンの性質を表わす特性値を予め基準文字パターン情報内
に保持するか、又は、当該文字の出力文字パターンの生
成前に算出し、当該文字の特性値と当該文字に隣接する
文字の特性値と比較し、その相違が大きいか否かにより
該条件を検出することを特徴とする特許請求の範囲第8
項記載の文字出力方式。 11、上記8項記載の条件の検出は、基準文字パターン
上に文字コード毎に保持された文字パターン変更要否を
示す情報により該検出を行うことを特徴とする上記特許
請求の範囲第8項記載の文字出力方式。 12、上記8項記載の条件の検出は、予め記憶された文
字コードの集合の中に当該文字コードが含まれるか否か
により該条件を検出することを特徴とする特許請求の範
囲第8項記載の文字出力方式。 13、上記8項記載の条件の検出は、予め設定した文字
パターンの性質を表わす特性値の限界値と、当該文字パ
ターンの特性値とを比較し、その比較結果によつて該条
件の成立を判定することを特徴とする上記特許請求の範
囲第8項記載の文字出力方式。 14、上記8項記載の条件の検出は、当該文字パターン
の出力以前に設定された状態情報により該検出をするこ
とを特徴とする特許請求の範囲第8項記載の文字出力方
式。 15、基準文字パターンに加えて、これと同一の文字枠
サイズで文字パターンの大きさの異なる文字パターン情
報を複数種保持し、文字パターン出力時に検出した条件
に応じて、該文字パターンの内から1つの文字パターン
を選択して、出力文字パターンを生成することを特徴と
する文字生成方式。 16、上記特許請求の範囲第1項から第15項のいずれ
か一つの文字出力方式を実行するようプログラムされた
計算機を有することを特徴とする文字列出力装置。 17、各々の文字パターンの性質を表わす特性値及び文
字パターン変更要否を示す情報を、基準文字パターン情
報内に保持することを特徴とする文字パターン記憶装置
[Claims] 1. From the reference character pattern information for generating an enlarged or reduced character pattern for a character pattern of a standard size, a character pattern beyond the character frame defined for the character pattern of the standard size is The method is characterized by generating an enlarged or reduced character pattern of the reference character pattern, which has a size that is not larger than that of the reference character pattern, and outputs the enlarged or reduced character pattern within a character frame of the same size as the character frame of the reference size. Character output method. 2. From the standard pattern information representing the standard character pattern,
Generates a specified enlarged or reduced character pattern that has an enlargement or reduction ratio that is different from the ratio of the character frame size of the reference pattern to the size of a character frame of a specified size different from that, and generates the specified enlarged or reduced character pattern, and A character output method characterized by outputting the enlarged or reduced character pattern within a character frame of the same size as a character frame of the same size. 3. When outputting the enlarged or reduced character pattern generated above into the output character frame, its horizontal position is determined so that the point located on the line that vertically bisects the character frame of the reference character pattern corresponds to the output character frame. 3. The character output method according to claim 1 or 2, wherein the character output method is determined to be located on a line that vertically bisects the output character frame. 4. When outputting the enlarged or reduced character pattern generated above within the output character frame, its vertical position is determined by the point located on the line that horizontally bisects the character frame of the reference character pattern. 3. The character output method according to claim 1, wherein the character output method is determined to be located on a line that horizontally bisects the output character frame. 5. The above reference pattern information shall hold placement position information that gives the position of the placement line, which is a horizontal line segment of the character frame, and the position of the placement line of the output character frame is determined by the position of the placement line in the reference character frame. The height of the layout line shall be determined by multiplying the height of the output character frame by the same ratio as the size of the reference character frame, and the enlarged or reduced character pattern generated above shall be When outputting within the output character frame, the position in the vertical direction is determined such that a point on the arrangement line of the reference character pattern is located on the arrangement line of the output character frame. Character output method described in item 1 or 2. 6. In a device that outputs a character pattern string according to a specified character size and character code string, a reference line is set in the area where the character pattern string is output, and the vertical or horizontal direction of the output character frame is Claim 3 or 4, characterized in that the position of the output character frame is set so that the dividing line overlaps the reference line, and an enlarged or reduced character pattern is output within the output character frame. Character output method described. 7. In a device that outputs a character pattern string according to a specified character size and character code string, a reference line is set in the area where the character pattern string is output, and the alignment line of the output character frame is aligned with the reference line. Claim 5 characterized in that the positions of the output character frames are set so that they overlap, the positions of the output character frames are set, and an enlarged or reduced character pattern is output within the output character frames. character output method. 8. In a device that outputs a character pattern string according to a specified character size and character code string, when generating the character pattern of the character to be output, simply use the character frame size determined by the specified character size of the character and the corresponding A patent characterized in that, unlike the enlargement/reduction ratio determined by the ratio of the reference character pattern to the character frame size, a condition for generating and outputting an enlarged or reduced character pattern of the reference character pattern is detected based on the enlargement/reduction ratio. A character output method according to claim 1 or 2. 9. The detection described in item 8 above stores a set of a pair of character codes in advance, and detects the condition based on whether or not the code combination of the character and an adjacent character is included in the set. A character output method according to claim 8, characterized in that: 10. Detection of the conditions described in item 8 above can be achieved by retaining characteristic values representing the properties of each character pattern in the standard character pattern information in advance, or by calculating them before generating the output character pattern of the character, and Claim 8, characterized in that the characteristic value of a character is compared with the characteristic value of a character adjacent to the character, and the condition is detected based on whether or not the difference is large.
Character output method described in section. 11. The condition described in claim 8 above is detected based on information indicating whether or not a character pattern change is necessary, which is stored for each character code on a reference character pattern. Character output method described. 12. The condition set forth in claim 8 is detected based on whether or not the character code is included in a pre-stored set of character codes. Character output method described. 13. Detection of the condition described in item 8 above is performed by comparing the characteristic value of the character pattern with a preset limit value of the characteristic value representing the character pattern, and based on the comparison result, it is determined that the condition is met. 9. The character output method according to claim 8, wherein the character output method determines whether or not the character is output. 14. The character output method according to claim 8, wherein the condition described in claim 8 is detected based on status information set before outputting the character pattern. 15. In addition to the standard character pattern, store multiple types of character pattern information with the same character frame size and different character pattern sizes, and select from among the character patterns according to the conditions detected when outputting the character pattern. A character generation method characterized by selecting one character pattern and generating an output character pattern. 16. A character string output device comprising a computer programmed to execute the character output method according to any one of claims 1 to 15. 17. A character pattern storage device characterized in that characteristic values representing the properties of each character pattern and information indicating whether or not to change the character pattern are held in reference character pattern information.
JP63154694A 1988-06-24 1988-06-24 Character output method and character output device Expired - Fee Related JP2669539B2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
JP63154694A JP2669539B2 (en) 1988-06-24 1988-06-24 Character output method and character output device
KR1019890008426A KR960009837B1 (en) 1988-06-24 1989-06-19 Character output method
CN89104257A CN1014836B (en) 1988-06-24 1989-06-23 Character output method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63154694A JP2669539B2 (en) 1988-06-24 1988-06-24 Character output method and character output device

Publications (2)

Publication Number Publication Date
JPH025095A true JPH025095A (en) 1990-01-09
JP2669539B2 JP2669539B2 (en) 1997-10-29

Family

ID=15589901

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63154694A Expired - Fee Related JP2669539B2 (en) 1988-06-24 1988-06-24 Character output method and character output device

Country Status (3)

Country Link
JP (1) JP2669539B2 (en)
KR (1) KR960009837B1 (en)
CN (1) CN1014836B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09156158A (en) * 1995-12-06 1997-06-17 Nec Corp Printer

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5909519A (en) * 1996-05-21 1999-06-01 Hewlett-Packard Company Method for printing pseudo-bold characters at arbitrary orientations, scaling, and resolutions
KR20030042618A (en) * 2001-11-23 2003-06-02 이경희 Character and graphic image editing method of cutting plotter with computer
CN110077138B (en) * 2019-04-24 2021-02-05 厦门联泰标识信息科技有限公司 Multi-state jet printing method for high-resolution ink jet printer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62103693A (en) * 1985-10-31 1987-05-14 キヤノン株式会社 character processing device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62103693A (en) * 1985-10-31 1987-05-14 キヤノン株式会社 character processing device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09156158A (en) * 1995-12-06 1997-06-17 Nec Corp Printer

Also Published As

Publication number Publication date
JP2669539B2 (en) 1997-10-29
CN1014836B (en) 1991-11-20
KR900000791A (en) 1990-01-31
KR960009837B1 (en) 1996-07-24
CN1039134A (en) 1990-01-24

Similar Documents

Publication Publication Date Title
US6552728B1 (en) Method and system for providing substitute computer fonts
KR920002756B1 (en) Character pattern generation method and system therefor
US6952210B1 (en) Method of generating multiple master typefaces containing kanji characters
US20140176564A1 (en) Chinese Character Constructing Method and Device, Character Constructing Method and Device, and Font Library Building Method
JPH02127689A (en) Method and apparatus for minimizing visual degradation of digital typefaces
JPH025095A (en) Character output system
US7714861B1 (en) Method of producing electronically readable documents with updatable pie charts
JPWO2007013566A1 (en) Information processing apparatus, information processing program, and readable recording medium
JP3715336B2 (en) System operation method
JPH06274303A (en) Multi-window display method
JPS6395590A (en) Hand-written character recognition device
JPH09237339A (en) Circle/circular arc recognizing method
JP3057978B2 (en) Character generator
JPH01262149A (en) Document output device with dot character font generation function
JP2004093931A (en) Font processing device, terminal device, font processing method, and font processing program
JP3092172B2 (en) Data converter
JPS63224965A (en) Character generator
JPH032895A (en) How to scale character patterns using vector fonts
CN119089861A (en) Chinese character font size adjustment system and method
CN1998024B (en) display device, program, and recording medium
JPH07234868A (en) Document creation device
JPH11296271A (en) Handwritten character input method
JPH06250720A (en) Generating method for nc data for character marking of automatic programming system for sheet metal working
JPH0321990A (en) Pattern genertaing system
JPH1166062A (en) Document processing apparatus and program recording medium therefor

Legal Events

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