JPH0782311B2 - Character spacing adjustment method - Google Patents

Character spacing adjustment method

Info

Publication number
JPH0782311B2
JPH0782311B2 JP2417747A JP41774790A JPH0782311B2 JP H0782311 B2 JPH0782311 B2 JP H0782311B2 JP 2417747 A JP2417747 A JP 2417747A JP 41774790 A JP41774790 A JP 41774790A JP H0782311 B2 JPH0782311 B2 JP H0782311B2
Authority
JP
Japan
Prior art keywords
character
characters
spacing
output
shift amount
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2417747A
Other languages
Japanese (ja)
Other versions
JPH04216594A (en
Inventor
雅明 中井
Original Assignee
有限会社インテグラルシステム
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 有限会社インテグラルシステム filed Critical 有限会社インテグラルシステム
Priority to JP2417747A priority Critical patent/JPH0782311B2/en
Publication of JPH04216594A publication Critical patent/JPH04216594A/en
Publication of JPH0782311B2 publication Critical patent/JPH0782311B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】この発明は、文字フオントを使用
して文字列を出力装置に出力する際の文字間隔調整方式
に係り、特に比較的大型のアウトラインフオントを出力
装置に出力するときの文字間隔調整方式に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character spacing adjustment method for outputting a character string to an output device using a character font, and more particularly to a character for outputting a relatively large outline font to the output device. The present invention relates to an interval adjustment method.

【0002】[0002]

【従来の技術】従来、英数文字を扱う分野では、文字の
固有の幅とは無関係に一定の字送りを行う均等間隔配置
と、各々の文字が固有に持つ文字幅をいくつかのグルー
プに分類してその内容に応じた字送りを行うプロポーシ
ョナルスペーシング処理が行われている。また、日本語
のかな文字や漢字に関しては、文字幅や高さとは無関係
に一定の字送りを行う均等間隔配置が通常行われてい
る。また、従来文字間隔を調整できるものも知られてい
たが、このものは1文字毎に文字間隔を指定しようとす
る場合には、使用者が1文字毎に操作する必要があっ
た。
2. Description of the Related Art Conventionally, in the field of handling alphanumeric characters, evenly spaced layouts are used to perform constant spacing regardless of the unique width of characters, and the unique character width of each character is divided into several groups. Proportional spacing processing is performed in which characters are classified and sent according to their contents. In addition, Japanese kana and kanji characters are usually arranged at equal intervals to perform constant character feeding regardless of the character width and height. Also, conventionally, there has been known a device capable of adjusting a character spacing, but in the case of this, when the character spacing is to be designated for each character, the user needs to operate for each character.

【0003】上記従来技術に於いて、均等間隔配置は、
日本語文字列を扱う際には、よう音、促音、縦組み時の
「へ」及び横組み時の「く」等のように、他の文字より
前後に多くの空白が空いてしまうことにより文字の実体
同士の間隔が見かけ上不揃いとなり、出力された文字列
の文字間隔が不自然で読みにくいものとなる問題があっ
た。また、英数文字を扱う際にプロポーショナルスペー
シング処理を行ったとしても、「V」の後に「A」の文
字が続くような文字固有の形状の組み合わせにより文字
間に多くの空白があいてしまうか、或は「W」の文字が
連続するような場合には、逆に接近しすぎてしまうこと
により、不自然で読みにくいものとなる問題があった。
更に、使用者が文字毎に逐次文字間隔を操作する方法に
ついては、あまりにも操作が煩雑になる問題があった。
In the above prior art, the evenly spaced arrangement is
When dealing with Japanese character strings, there are many blank spaces before and after other characters, such as yo sound, consonant sound, "he" in vertical writing, and "ku" in horizontal writing. There is a problem in that the intervals between the character entities are apparently uneven, and the character intervals of the output character string are unnatural and difficult to read. Also, even if proportional spacing processing is performed when handling alphanumeric characters, there will be a lot of white space between characters due to the combination of character-specific shapes such that the character "A" follows "V". Or, in the case where the letters "W" are continuous, there is a problem that they are unnatural and difficult to read because they are too close to each other.
Further, there is a problem that the operation of the user sequentially operates the character spacing for each character becomes too complicated.

【0004】[0004]

【発明が解決しようとする課題】この発明は、文字列を
縦組み、横組み若しくはこれらの混在した文字列として
出力する際に、単にプロポーショナルスペーシング処理
を行なうだけでなく、隣合う文字の隣接する辺の部分的
な凹凸形状を考慮した文字間隔調整処理をも行うことに
より、文字列中の文字の実体同士の間隔を最適に調整
し、自然で読み易い文字出力が得られる文字間隔調整方
式を提供することを目的とする。
SUMMARY OF THE INVENTION When outputting a character string in vertical writing mode, horizontal writing mode or a mixed character string of these characters, the present invention not only performs proportional spacing processing but also adjoins adjacent characters. A character spacing adjustment method that optimally adjusts the spacing between the character entities in the character string by also performing character spacing adjustment processing that takes into account the partial uneven shape of the side to obtain natural and easy-to-read character output. The purpose is to provide.

【0005】[0005]

【課題を解決するための手段】本発明による文字間隔調
整方式は、文字列を出力装置に出力する際に文字間隔を
制御する処理方法であって、個々の文字において仮想文
字枠の4辺を複数の領域に分割したときの各領域内の仮
想文字枠と文字の実体との差と、縦組み時の左右シフト
量ならびに横組み時の上下シフト量を文字固有情報テー
ブルとして保持することにより、他の文字と隣接する部
分の形状を数値化して記録しておく手段と、出力する文
字が縦組みであるか横組みであるかにより左右または上
下のシフト量を算出する手段と、上記の文字固有情報テ
ーブルとシフト量から2つの文字の隣接する辺の各領域
を判断することにより固有の文字幅と2つの文字の組み
合せによる文字間隔を算出する手段とを備え、出力装置
に文字列として出力しようとする際に1行の文字列中の
各々の文字について、上記のシフト量算出部によって左
右または上下のシフト量を求めるとともに、上記の文字
間隔算出部によって文字間隔を求めることを特徴とする
ものである。
The character spacing adjustment method according to the present invention is a processing method for controlling the character spacing when a character string is output to an output device. By holding the difference between the virtual character frame in each area and the substance of the character when divided into multiple areas, the horizontal shift amount in vertical writing and the vertical shift amount in horizontal writing as a character unique information table, A means for numerically recording the shape of a portion adjacent to another character, a means for calculating a horizontal or vertical shift amount depending on whether the character to be output is in vertical writing mode or horizontal writing mode, and the above character Equipped with a unique information table and a means for calculating a unique character width and a character interval by a combination of two characters by judging each area of adjacent sides of two characters from a shift amount, and output as a character string to an output device. When attempting to do so, it is characterized in that for each character in the character string of one line, the above-mentioned shift amount calculation unit obtains the left-right or up-down shift amount, and the above-mentioned character gap calculation unit obtains the character interval. It is a thing.

【0006】上記の文字固有情報テーブルは、個々の文
字について仮想文字枠の4辺を複数の領域に分割し、各
領域について仮想文字枠と当該文字の実体との差と、縦
組み時の左右シフト量ならびに横組み時の上下シフト量
を、仮想文字枠のサイズに対する比であらわした数値の
集合であり、一定の規則で文字コードに対応することに
より容易にその値を得ることができるように配列された
ものである。文字固有情報テーブルは文字フォントと同
様に、1種類の書体に対してそれぞれ1つを備えるもの
であり、さらに、文字フォントが別のファイルに記録さ
れている場合には、文字フォントの格納位置等のインデ
ックス情報をあわせて記録したものであってもよい。
In the above character unique information table, the four sides of the virtual character frame for each character are divided into a plurality of areas, and for each area, the difference between the virtual character frame and the substance of the character, and the left and right in vertical writing. It is a set of numerical values that represent the shift amount and the vertical shift amount in horizontal writing as a ratio to the size of the virtual character frame, so that it can be easily obtained by corresponding to the character code according to a certain rule. It is arranged. Like the character font, the character unique information table has one for each typeface, and when the character font is recorded in another file, the storage position of the character font, etc. The index information may also be recorded.

【0007】上記のシフト量算出部は、出力しようとす
る文字が縦組みあるいは横組みのいずれであるかによ
り、左右のシフト量を調整するかあるいは上下のシフト
量を調整するかを判断し、さらにその値を算出するもの
である。
The shift amount calculation unit determines whether to adjust the left and right shift amounts or the up and down shift amounts depending on whether the character to be output is in vertical writing mode or horizontal writing mode. Further, the value is calculated.

【0008】上記の文字間隔算出部は、出力しようとす
る文字の仮想文字枠のサイズと上記の文字固有情報テー
ブルと算出されたシフト量の値を用いて、直前の文字の
終端の辺と次に出力する文字の向き合うべき辺の対応関
係を判断し、次にその2つの辺の各領域を評価して2つ
の文字が重ならない最小の文字間隔を基準とし、その値
に文字の間に空けるべき一定の間隔を加えることにより
文字列中の文字の実体が均等な間隔となるべき値を各々
の文字間において算出するものである。さらに、文字列
中の各文字のサイズの指定が均一ではない場合にも、文
字間において空けるべき間隔を隣り合う2つの文字のサ
イズの平均値に対して均等な比に調整することにより、
文字のサイズに比例して文字間隔を増減させ得るもので
ある。
The character spacing calculation unit uses the size of the virtual character frame of the character to be output, the character unique information table, and the calculated shift amount value to determine the edge of the immediately preceding character and the next edge. Judge the correspondence of the sides of the characters to be output, which should face each other, then evaluate each area of the two sides, and use the minimum character spacing that does not overlap the two characters as a reference, and leave that value between the characters. By adding a constant interval, the values of the characters in the character string should be evenly spaced. Furthermore, even when the size of each character in the character string is not specified uniformly, by adjusting the space to be spaced between characters to an average ratio of the sizes of two adjacent characters,
The character spacing can be increased or decreased in proportion to the character size.

【0009】[0009]

【作用】本発明の文字間隔調整方式は、文字固有情報テ
ーブル上に出力時のシフト量が表されていると共に、前
後の文字と隣接する部分の形状が複数の領域に分割され
た数値によって表されているので、直前の文字の終端部
分の形状と次に並ぶ文字の隣接する部分の形状とを比較
することにより、あらゆる組み合わせの文字間隔を最適
に調節することができる。
In the character spacing adjustment method of the present invention, the shift amount at the time of output is displayed on the character unique information table, and the shape of the part adjacent to the preceding and following characters is expressed by a numerical value divided into a plurality of areas. Therefore, by comparing the shape of the end portion of the immediately preceding character with the shape of the adjacent portion of the character arranged next, it is possible to optimally adjust the character spacing of any combination.

【0010】これにより、使用者は個々の文字毎に逐次
文字間隔を操作する事なく、あらゆる書体のあらゆる組
み合わせの文字列について、自然で調和のとれた文字間
隔で文字出力を得ることができる。
Thus, the user can obtain the character output for the character strings of any combination of any typefaces at natural and harmonious character intervals without operating the character intervals successively for each character.

【0011】[0011]

【実施例】以下、本発明の、一実施例について図面を参
照して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0012】第1図は本発明の一実施例のブロック図で
あり、中央演算処理部102に読み込まれた処理プログ
ラム104を操作部101によって操作し、出力部10
3に目的の文字列を出力するものである。操作部101
は、目的の文字列と各々の文字に対する変形や拡大等の
属性や出力開始位置を入力し、中央演算処理部102に
読み込まれた処理プログラム104を操作する。本発明
の文字間隔調整方法で用いるシフト量算出部105と文
字間隔算出部106は、処理プログラム104の一部分
として中央演算処理部102に読み込まれ、文字固有情
報テーブル107を参照し所定の演算を行なうことによ
り文字の出力位置を決定し文字フォント108を展開す
る。表示装置、プロッタ、プリンタ等の出力部103
は、中央演算処理部102から送られる制御信号に従っ
て文字列を出力(表示または描画もしくは印字)する。
FIG. 1 is a block diagram of an embodiment of the present invention. The processing program 104 read by the central processing unit 102 is operated by the operation unit 101, and the output unit 10 is operated.
The target character string is output to 3. Operation unit 101
Inputs a target character string and attributes such as deformation and enlargement for each character and an output start position, and operates the processing program 104 read by the central processing unit 102. The shift amount calculation unit 105 and the character spacing calculation unit 106 used in the character spacing adjustment method of the present invention are read into the central processing unit 102 as a part of the processing program 104, and refer to the character unique information table 107 to perform a predetermined calculation. By doing so, the output position of the character is determined and the character font 108 is expanded. Output unit 103 such as display device, plotter, printer, etc.
Outputs (displays or draws or prints) a character string according to a control signal sent from the central processing unit 102.

【0013】文字固有情報テーブル107は、個々の文
字について仮想文字枠の周囲4辺を複数(第3図301
および302の例では3つ)の領域に分割したときの、
各領域について仮想文字枠と当該文字の実体との差と、
縦組み時の左右シフト量ならびに横組み時の上下シフト
量を、仮想文字枠のサイズに対する比であらわした数値
の集合であり、一定の規則で文字コードに対応すること
により、指定された文字の文字コードから容易に目的の
値を得ることができるように配列されたものである。
The character unique information table 107 has a plurality of four sides around the virtual character frame for each character (see FIG. 301).
And in the example of 302, when divided into three areas,
For each area, the difference between the virtual character frame and the substance of the character,
It is a set of numerical values that express the horizontal shift amount in vertical writing mode and the vertical shift amount in horizontal writing mode as a ratio to the size of the virtual character frame.By matching the character code with a certain rule, the specified character It is arranged so that the target value can be easily obtained from the character code.

【0014】第3図は、文字固有情報テーブルに含まれ
る値の意味と文字間隔計算方法を示す図である。301
および302の例ではひらがなの「あ」の文字の仮想文
字枠の周囲4辺を、各々3つの領域に分割し、仮想文字
枠と各々の領域内における文字の実体の差を得ている。
301では上下の辺を3分割して、それぞれの領域で仮
想文字枠と文字「あ」の実体の上部との差A1,A2,
A3および文字「あ」の実体の下部との差B1,B2,
B3を求めている。302では左右の辺について同様に
C1,C2,C3およびD1,D2,D3を求めてい
る。この場合の文字の実体とは、仮想文字枠内に占める
文字の物理的な領域だけではなく、例えば「つ」や
「し」などの文字中にあって審美的に必要とされる空白
の領域をも含むものとする。縦組みの場合には直前の文
字についての値B1,B2,B3と次にならぶ文字の値
A1,A2,A3が参照され、横組みの場合には直前の
文字についての値D1,D2,D3と次にならぶ文字の
値C1,C2,C3が参照される。さらに303に示す
ように、よう音の「ゅ」などを縦組みする際に左右にシ
フトする量Gと304に示すようにアルファベットの
「y」などを横組みにする際に上下にシフトする量Hを
併せて文字固有情報テーブルに記録しておく事により、
連続する文字の隣接する辺同士において上下または左右
方向に文字シフトがある場合にも、どの領域とどの領域
とが主に対向するかを判断し対向する領域に対して所定
の演算を行なうことによって、文字間隔を最適に調整す
ることができるように構成されたものである。
FIG. 3 is a diagram showing the meaning of the values contained in the character unique information table and the character spacing calculation method. 301
In the examples of and 302, the four sides around the virtual character frame of the hiragana character "A" are divided into three areas, respectively, and the difference between the virtual character frame and the substance of the character in each area is obtained.
In 301, the upper and lower sides are divided into three parts, and the difference A1, A2, between the virtual character frame and the upper part of the entity of the character "A" in each area.
Differences between A3 and the bottom of the body of the character "A" B1, B2
Seeking B3. At 302, C1, C2, C3 and D1, D2, D3 are similarly obtained for the left and right sides. In this case, the substance of the character is not only the physical area of the character occupied in the virtual character frame, but also the blank area that is aesthetically necessary in the character such as "tsu" or "shi". Shall also be included. In the case of vertical writing, the values B1, B2, B3 of the immediately preceding character and the values A1, A2, A3 of the next characters are referred to, and in the case of horizontal writing, the values D1, D2, D3 of the previous character. Then, the values C1, C2, and C3 of the characters arranged next are referred to. Further, as shown at 303, the amount G of horizontal shift of the letter "yu" or the like when vertically assembled, and the amount of vertical shift when the alphabet "y" or the like is horizontally set as shown at 304. By recording H together in the character unique information table,
Even when there is a character shift in the vertical or horizontal direction between adjacent sides of consecutive characters, it is possible to determine which area mainly opposes and perform a predetermined calculation for the opposing areas. , Is designed to be able to optimally adjust the character spacing.

【0015】第2図は、第1図におけるブロック図を用
いた場合の処理の流れの一例である。
FIG. 2 shows an example of the flow of processing when the block diagram in FIG. 1 is used.

【0016】まず、処理プログラム104は文字列中の
1番目の文字を出力するために、直前に連続する文字
(以下、直前文字と称する)の文字情報を初期化する。
次に、直前文字に連続して今回出力しようとする文字
(以下、当文字と称する)についての書体やサイズや変
形ならびに組み方向等の属性を操作部またはあらかじめ
作成されたファイルから求め、文字固有情報テーブル1
07から対応する文字固有情報を読み出す。
First, the processing program 104 initializes the character information of the immediately preceding character (hereinafter referred to as the immediately preceding character) in order to output the first character in the character string.
Next, the attributes such as the typeface, size, transformation and assembling direction of the character to be output this time (hereinafter referred to as this character) are obtained from the operation unit or a pre-created file in succession to the previous character, and the character-specific Information table 1
The corresponding character unique information is read from 07.

【0017】シフト量算出部105は、当文字が縦組み
あるいは横組みのいずれであるかにより、左右のシフト
量を調整するかあるいは上下のシフト量を調整するかを
判断し、さらにその値を算出する。文字間隔算出部10
6は当文字のサイズと上記の文字固有情報テーブル10
7の値と算出されたシフト量の値を用いて、直前文字の
終端の辺と当文字の向き合うべき辺の対応関係を判断
し、次にその2つの辺の各領域を評価する。対面する各
領域同士についてそれぞれ文字固有情報テーブルの値を
加算し、それらの中の最小値だけ後に続く文字を重ねあ
わせることにより2つの文字が重ならない最小の文字間
隔を算出する。例えば図3の「ゅ」303と「y」30
4の2文字を横組みにする場合、「y」304の文字が
Hの値だけ下方にシフトすることにより、対向する領域
が1つ下方にずれるため、E1とW2(文字「y」の仮
想文字枠の全幅)、E2とF1、E3とF2、W1(文
字「ゅ」の仮想文字枠の全幅)とF3の4つの組み合せ
についてそれぞれ加算を行ない、それらの値の中の最小
値を求める計算を行なう。上下方向の文字シフト量Hが
小さいために対向する領域がずれない場合は、D1とC
1,D2とC2,D3とC3の3つの組み合せで上記の
計算を行なう。これにより得られた最小の文字間隔を基
準とし、当文字が文字列中の第1番目の文字でない時に
はその値に文字の間に空ける一定の間隔を加えることに
より文字列中の文字の実体が均等な間隔となるべき値を
算出する。
The shift amount calculation unit 105 determines whether to adjust the left / right shift amount or the up / down shift amount depending on whether the character is in vertical writing mode or horizontal writing mode, and further determines the value. calculate. Character spacing calculator 10
6 is the size of the character and the character unique information table 10 described above.
Using the value of 7 and the value of the calculated shift amount, the correspondence between the end side of the immediately preceding character and the side to which this character should face is determined, and then each area of the two sides is evaluated. The values of the character unique information table are added to each of the facing areas, and the characters succeeding by the minimum value among them are overlapped to calculate the minimum character interval at which two characters do not overlap. For example, "yu" 303 and "y" 30 in FIG.
When the two characters of No. 4 are set horizontally, the character of "y" 304 is shifted downward by the value of H, and the opposing area is shifted downward by one, so that E1 and W2 (the virtual character of character "y" are The total width of the character frame), E2 and F1, E3 and F2, W1 (the total width of the virtual character frame of the character "yu") and F3 are added respectively, and the minimum value among them is calculated. Do. If the opposing areas do not shift because the vertical character shift amount H is small, D1 and C
The above calculation is performed with three combinations of 1, D2 and C2, D3 and C3. Based on the minimum character spacing obtained by this, when this character is not the first character in the character string, the value of the character in the character string is added by adding a certain space to the value. Calculate values that should be evenly spaced.

【0018】処理プログラム104は上記によって決定
された出力開始位置に従って文字フォント108を希望
のサイズに展開し、出力部103に対して信号を送るこ
とによつて目的の文字を出力する。一文字の文字出力が
終了した時点で、当文字の文字固有情報を直前文字の文
字固有情報とする事により、次に続く文字の間隔計算に
備える。
The processing program 104 develops the character font 108 to a desired size according to the output start position determined as described above, and outputs a target character by sending a signal to the output unit 103. When the output of one character is completed, the character peculiar information of this character is used as the character peculiar information of the immediately preceding character to prepare for the calculation of the spacing between the following characters.

【0019】以上は一文字の出力について説明したもの
であるが、当文字が文字列中の最終文字であるか否かを
判断し、後に続く文字がある場合には次の文字に対して
同様の処理を実行する。以上の処理が、印字対象となっ
ている文字列中の全ての文字について繰り返し行なわれ
ることにより、第4図の401に示すように各文字のフ
ォントパターンが最接近部分において概ね等間隔な出力
結果を得ることができる。第4図の402に示す仮想文
字枠を等間隔に配置した出力例と比較すると、等間隔に
配置した場合は「パ」と「ー」の間のように文字間隔が
空きすぎてしまう部分と、「ー」と「ト」の間のように
詰まり過ぎてしまう部分とができてしまうが、本発明の
文字間隔調整方式では401のように文字が配置される
ために自然な文字間隔を得ることができるものである。
The above is a description of the output of one character, but it is judged whether or not this character is the last character in the character string, and if there is a subsequent character, the same is applied to the next character. Execute the process. By repeating the above process for all the characters in the character string to be printed, the output result of the font pattern of each character is approximately equidistant in the closest portion as shown by 401 in FIG. Can be obtained. Comparing with the output example in which the virtual character frames indicated by 402 in FIG. 4 are arranged at equal intervals, when the characters are arranged at equal intervals, a portion where the character spacing becomes too vacant such as between "pa" and "-". , But there is a part that is too tight, such as between “-” and “TO”, but in the character spacing adjustment method of the present invention, characters are arranged like 401 so that a natural character spacing is obtained. Is something that can be done.

【0020】なお、上記実施例では一文字毎に文字位置
を計算するとともに、文字フォント108を出力部10
3に展開し出力を得ているが、これに限るものではな
い。例えば、文字フォントの展開と出力を行なわず、実
際に出力した場合の文字列の組み方向に要する総延長や
占有面積等の試算のみを行なうことにより、希望する文
字列全体のサイズに合致すべく個々の文字サイズや文字
間隔を変更する際等にも応用できるものである。
In the above embodiment, the character position is calculated for each character and the character font 108 is output to the output unit 10.
Although it is expanded to 3 and output is obtained, it is not limited to this. For example, without expanding and outputting the character font, only performing trial calculations such as total extension and occupying area required for the direction in which the character string is actually output to match the desired size of the entire character string. It can also be applied when changing individual character size or character spacing.

【0021】さらに、上記実施例では仮想文字枠を3つ
の領域に分割して各文字外周の形状を表現しているが、
これに限るものではない。分割する数を増やすほど文字
間隔は正確に均等化されるが、半面、文字固有情報テー
ブルが大規模になり記憶装置の容量を圧迫するととも
に、文字固有情報テーブルを参照する際のアクセス時間
も多くかかるようになる。本発明の文字間隔調整方式
は、中央演算処理部102の処理能力や記憶装置の容量
やアクセス速度などを勘案して、仮想文字枠の分割数を
最適に設定することにより、低速で小容量の装置にも高
速で大容量の装置にも応用できるものである。
Further, in the above embodiment, the virtual character frame is divided into three areas to express the shape of the outer circumference of each character.
It is not limited to this. As the number of divisions increases, the character spacing becomes more uniform, but on the other hand, the character unique information table becomes large and pressures the storage device capacity, and the access time when referring to the character unique information table is large. It will be like this. The character spacing adjustment method of the present invention is a low-speed, small-capacity setting by optimally setting the number of divisions of the virtual character frame in consideration of the processing capacity of the central processing unit 102, the capacity of the storage device, the access speed, and the like. It can be applied to both high-speed and large-capacity devices.

【0022】[0022]

【発明の効果】以上説明したように、本発明の文字間隔
調整方式によれば装置が自動的に各文字間に対して最適
な間隔を計算し出力するため、使用者が逐次各々の文字
間について調整操作を行なう必要がなくなるので、操作
性が著しく向上する。また、使用者の経験や勘によらず
に処理されるため、使用者の技術に負うところがなく常
に均質な結果を得ることができる効果がある。
As described above, according to the character spacing adjusting method of the present invention, the apparatus automatically calculates and outputs the optimal spacing between characters, so that the user can successively output the spacing between characters. Since it is not necessary to perform the adjusting operation for, the operability is remarkably improved. Further, since the processing is performed without depending on the experience and intuition of the user, there is an advantage that a uniform result can always be obtained without depending on the skill of the user.

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

【図1】本発明の実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】処理プログラム104の処理例を示すフローチ
ャートである。
FIG. 2 is a flowchart showing a processing example of a processing program 104.

【図3】文字固有情報テーブル107の値の意味を示す
図である。
FIG. 3 is a diagram showing the meaning of values in a character unique information table 107.

【図4】本発明の方式と等間隔配置による文字フォント
の出力例を示す図である。
FIG. 4 is a diagram showing an output example of character fonts according to the method of the present invention and an equidistant arrangement.

【符号の説明】[Explanation of symbols]

101 操作部 102 中央演算処理部 103 出力部 104 処理プログラム 105 シフト量算出部 106 文字間隔算出部 107 文字固有情報テーブル 108 文字フォント 301 仮想文字枠の上下の辺を3つの領域に分割する
例を示す図 302 仮想文字枠の左右の辺を3つの領域に分割する
例を示す図 303 左右方向の文字シフトの例と文字間隔計算方法
を示す図 304 上下方向の文字シフトの例と文字間隔計算方法
を示す図 401 本発明の方式によるアウトラインフォントの出
力例 402 等間隔配置によるアウトラインフォントの出力
101 Operation Unit 102 Central Processing Unit 103 Output Unit 104 Processing Program 105 Shift Amount Calculation Unit 106 Character Interval Calculation Unit 107 Character Unique Information Table 108 Character Font 301 Character Font 301 An example of dividing the upper and lower sides of a virtual character frame into three areas is shown. Figure 302 Figure showing an example of dividing the left and right sides of a virtual character frame into three areas 303 Figure showing an example of horizontal character shift and character spacing calculation method 304 Figure showing an example of vertical character shift and character spacing calculation method Diagram 401 Output example of outline font by method of the present invention 402 Output example of outline font by evenly spaced arrangement

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/32 F 9471−5G ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location G09G 5/32 F 9471-5G

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】文字フオントを使用して文字、記号及び図
形の列(以下文字列という)を出力装置に出力する際の
文字間隔を調整する方式に於いて、個々の文字フオント
を定義するための外枠(以下仮想文字枠という)の四辺
を各々複数の領域に分割したときの各領域内の仮想文字
枠と文字の実体との差と、縦組み時の左右シフト量及び
横組み時の上下シフト量とを文字固有情報テーブルとし
て記憶装置に保持し、前記文字固有情報テーブルから2
つの文字の隣接する辺の各領域を判断することにより文
字固有の文字幅と2つの文字の組み合わせとによる文字
間隔を算出し、前記算出した文字間隔と出力する文字が
縦組みであるか横組みであにより算出した前記左右若し
くは上下のシフト量とを基にして、目的に応じて算出し
た文字の位置を、出力装置に前記文字列として出力する
ことを特徴とする文字間隔調整方式。
1. To define individual character fonts in a method of adjusting character spacing when a character, symbol and graphic string (hereinafter referred to as a character string) is output to an output device using character fonts. When the four sides of the outer frame (hereinafter referred to as the virtual character frame) are divided into a plurality of areas, the difference between the virtual character frame and the substance of the character in each area, the horizontal shift amount in vertical writing, and the horizontal shift in horizontal writing The vertical shift amount is stored in the storage device as a character unique information table, and 2
The character widths unique to the characters and the character spacing based on the combination of the two characters are calculated by determining the areas of the adjacent sides of the two characters, and the calculated character spacing and the characters to be output are in vertical writing mode or horizontal writing mode. A character-spacing adjustment method in which the position of a character calculated according to the purpose is output as the character string to the output device based on the horizontal or vertical shift amount calculated by.
【請求項2】前記文字間隔算出を、出力しようとする仮
想文字枠のサイズと、前記文字固有情報テーブルに保持
されたシフト量の値を用いて、直前の文字の終端の辺と
次に出力する文字の向き合うべき辺の対応関係を判断
し、次にその2つの辺の各領域を評価して2つの文字が
重ならない最小の文字間隔を基準とし、その値に文字の
間に空けるべき一定の間隔を加えることにより文字列中
の文字の実体が均等な間隔となるべき値を各々の文字間
に於いて算出する請求項1に記載の文字間隔調整方式。
2. The character spacing calculation is performed by using the size of a virtual character frame to be output and the value of the shift amount held in the character unique information table, and then outputting the end edge of the preceding character and the next. The correspondence between the opposite sides of the character is determined, and then the areas of the two sides are evaluated, and the minimum character spacing at which the two characters do not overlap is used as a reference, and that value should be a space between the characters. The character-spacing adjusting method according to claim 1, wherein a value is calculated for each character so that the characters of the character in the character string should have an equal interval by adding the interval.
JP2417747A 1990-12-17 1990-12-17 Character spacing adjustment method Expired - Lifetime JPH0782311B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2417747A JPH0782311B2 (en) 1990-12-17 1990-12-17 Character spacing adjustment method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2417747A JPH0782311B2 (en) 1990-12-17 1990-12-17 Character spacing adjustment method

Publications (2)

Publication Number Publication Date
JPH04216594A JPH04216594A (en) 1992-08-06
JPH0782311B2 true JPH0782311B2 (en) 1995-09-06

Family

ID=18525794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2417747A Expired - Lifetime JPH0782311B2 (en) 1990-12-17 1990-12-17 Character spacing adjustment method

Country Status (1)

Country Link
JP (1) JPH0782311B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101720897B1 (en) * 2016-03-04 2017-04-10 주식회사 윤디자인그룹 Method and computer program for generating font by integrating space between characters

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2632834B2 (en) * 1987-03-10 1997-07-23 キヤノン株式会社 Character processor
JPS6472859A (en) * 1987-09-16 1989-03-17 Hitachi Ltd Document preparation device

Also Published As

Publication number Publication date
JPH04216594A (en) 1992-08-06

Similar Documents

Publication Publication Date Title
US4608662A (en) Method for editing document
JP3111811B2 (en) Apparatus and method for adjusting character spacing
JP2613255B2 (en) Character pitch processing method
JPH0782311B2 (en) Character spacing adjustment method
JPH0675952A (en) Document preparing device
EP0454125B1 (en) Method of producing characters and figures using computer
JP2813191B2 (en) Typeface automatic conversion method
JPH03184182A (en) Character output layout determination system
JPH03105391A (en) Scroll display device
JPH01321555A (en) Document processor
JP2698348B2 (en) Character processor
JPH0844735A (en) Document processor
JPH09146519A (en) Character composition device
JPH09123381A (en) Composition style deciding and supporting method
JPS62208088A (en) Image processor
JPS63210887A (en) Word processor
JPH04268953A (en) Document preparing device
JPH07141340A (en) Document output method and document processor
JPH04188189A (en) Multioutline font drawing method
JPH0968961A (en) Character data conversion device
JPH0573548A (en) Document shaping device
JPH05151215A (en) Document processor with frame editing function
JPH06286231A (en) Printer
JPH0320790A (en) Font enlargement system
JPH02132492A (en) Character pattern generating system