JPH0312697A - Character drawing device - Google Patents

Character drawing device

Info

Publication number
JPH0312697A
JPH0312697A JP1146807A JP14680789A JPH0312697A JP H0312697 A JPH0312697 A JP H0312697A JP 1146807 A JP1146807 A JP 1146807A JP 14680789 A JP14680789 A JP 14680789A JP H0312697 A JPH0312697 A JP H0312697A
Authority
JP
Japan
Prior art keywords
character
width
outline font
data
characters
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1146807A
Other languages
Japanese (ja)
Inventor
Kazufumi Takagishi
高岸 一史
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 JP1146807A priority Critical patent/JPH0312697A/en
Publication of JPH0312697A publication Critical patent/JPH0312697A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)
  • Controls And Circuits For Display Device (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 drawing device having an outline font expressed by contour line data, and is particularly suitable for preventing thinning of line width when drawing half-width characters. The present invention relates to a character drawing device.

〔従来の技術〕[Conventional technology]

以下従来技術について説明する。第5図は従来技術にお
ける描画装置のブロック図である。51は描画装置を制
御するCPU、52は文字を入力する入力装置、53は
入力装置52で入力された文字データを格納するバッフ
ァメモリである。
The conventional technology will be explained below. FIG. 5 is a block diagram of a drawing device in the prior art. 51 is a CPU that controls the drawing device; 52 is an input device that inputs characters; and 53 is a buffer memory that stores character data input by the input device 52.

54はアウトラインフォント用の輸郭線データを格納し
たアウトラインフォントメモリである。
54 is an outline font memory that stores contour line data for outline fonts.

55は描画手段、56はCRT等の表示装置。55 is a drawing means, and 56 is a display device such as a CRT.

57はプリンタ等の出力装置であり、描画手段55はバ
ッファメモリ53内に格納されている文字データ(文字
コード、文字サイズ、文字属性等)を読み出し、それに
対応するアウトラインフォントデータをアウトラインフ
ォントメモリ54から読み出して、表示装置56、ある
いは出力装置57に描画するものである。また58はC
PU51を制御するためのプログラムメモリである。
57 is an output device such as a printer, and the drawing means 55 reads character data (character code, character size, character attributes, etc.) stored in the buffer memory 53, and outputs the corresponding outline font data to the outline font memory 54. The image data is read out from the computer and drawn on the display device 56 or output device 57. Also, 58 is C
This is a program memory for controlling the PU51.

次に描画手段55の動作を第6図により説明すると、ス
テップ61でバッファメモリ53内の文字データを読み
出し、ステップ62で描画する文字のサイズ(縦方向、
横方向)を計算する。ステップ63では、文字データに
対応するフォントデータをアウトラインフォントメモリ
54より読み出す。ステップ64では描画する文字が全
角指定か半角指定かをチエツクし、半角文字指定の場合
にはステップ65で、ステップ62で計算した横方向の
文字サイズを1/2する。ステップ66では、以上の処
理により求めた文字サイズに従い表示装置56.または
出力装置57へ描画する。
Next, the operation of the drawing means 55 will be explained with reference to FIG.
horizontal direction). In step 63, font data corresponding to the character data is read from the outline font memory 54. In step 64, it is checked whether the characters to be drawn are full-width characters or half-width characters. If half-width characters are designated, in step 65, the horizontal character size calculated in step 62 is halved. In step 66, the display device 56. Or draw on the output device 57.

このように、半角文字を描画する場合、単純に横方向の
文字サイズを1/2することは、通常の漢字では特に問
題はないが、英数字、記号等はレターエリアの幅が小さ
いため1文字間がおいてしまい、なおかつ線のやせ細り
が目立ってしまう傾向にある。
In this way, when drawing half-width characters, simply reducing the horizontal character size by half is not a problem for normal kanji, but for alphanumeric characters, symbols, etc., the width of the letter area is small, so it is necessary to reduce the horizontal character size by half. There is a tendency for the letters to be spaced apart and the lines to be thin and thin.

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

上記従来技術は、半角文字を描画する場合には単純に横
方向の文字サイズを1/2するため、半角文字の品質の
点について配慮がされておらず、半角文字の文字間のあ
きすぎ、線のやせ細りによる文字品質の劣化の問題があ
った。
In the above conventional technology, when drawing half-width characters, the character size in the horizontal direction is simply halved, so there is no consideration given to the quality of half-width characters, and there is too much space between half-width characters, There was a problem of deterioration of character quality due to thin lines.

本発明の目的は半角文字の品質を向上させて描画するこ
とにある。
An object of the present invention is to improve the quality of half-width characters when drawing them.

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

上記目的は、アウトラインフォントデータに各文字毎に
、それぞれのレターエリア幅データを加え、そのデータ
により各文字の半角文字の縮小率を求め、描画すること
により達成される。
The above object is achieved by adding letter area width data for each character to the outline font data, determining the half-width character reduction ratio of each character using the data, and drawing the character.

〔作用〕[Effect]

アウトラインフォントデータ内には各文字毎にレターエ
リア幅が格納されている。そのレターエリア幅を用いて
半角文字の横方向文字サイズ内に描画できる縮小率を計
算して描画するので誤動作することがない。
The letter area width is stored for each character in the outline font data. Since the letter area width is used to calculate the reduction ratio that can be drawn within the horizontal character size of a half-width character, there is no malfunction.

〔実施例〕〔Example〕

以下本発明の一実施例を第1図〜第4図により説明する
。第1図は本実施例における描画装置のブロック図であ
る。1はCPU、2は入力装置、3はバッファメモリ、
6は表示装置、7は出力装置、8はプログラムメモリで
あり、これらの機能は従来技術と同様であるので詳細は
省略する。4はアウトラインフォントデータの格納され
たアウトラインフォントメモリであり、アウトラインデ
ータは輸郭線データと各文字のレターエリア幅が格納さ
れているものである。4は描画手段であり。
An embodiment of the present invention will be described below with reference to FIGS. 1 to 4. FIG. 1 is a block diagram of a drawing device in this embodiment. 1 is the CPU, 2 is the input device, 3 is the buffer memory,
6 is a display device, 7 is an output device, and 8 is a program memory, and since these functions are the same as those of the prior art, details will be omitted. An outline font memory 4 stores outline font data, and the outline data stores outline data and the letter area width of each character. 4 is a drawing means.

従来技術で述べた機能のほかに、半角文字描画時にはア
ウトラインフォントメモリ4内のレターエリア幅より縮
小率を計算し、半角文字用レターエリア幅を求め1表示
装置6.あるいは出力装置7へ描画するものである。
In addition to the functions described in the prior art, when drawing half-width characters, the reduction ratio is calculated from the letter area width in the outline font memory 4, and the letter area width for half-width characters is determined. Alternatively, the image may be drawn on the output device 7.

次に第2図により本発明の動作について説明する。ステ
ップ11〜14までは従来技術と同じなので省略する。
Next, the operation of the present invention will be explained with reference to FIG. Steps 11 to 14 are the same as in the prior art and will therefore be omitted.

ステップ14で半角文字描画指定の場合はステップ15
においてアウトラインフォントデータのレターエリア幅
を取込み、ステップ16でレターエリア幅がフォントの
ボディエリア幅の何%にあたるかを計算し、その値によ
り縮小率を求める。本実施例では処理速度の向上をはか
るため、レターエリア幅比率と縮小率のテーブルを以下
のように作成し処理を行っている。
If half-width character drawing is specified in step 14, step 15
In step 16, the letter area width of the outline font data is taken in, and in step 16, the percentage of the font body area width that the letter area width corresponds to is calculated, and the reduction ratio is determined from that value. In this embodiment, in order to improve the processing speed, a table of letter area width ratios and reduction ratios is created and processed as follows.

60%以下   75%    90%61〜70% 
    70%      98%71〜80%   
  60%      96%81〜100%   5
0%     100%次にステップ17において上記
で求めた縮小率に全角時の横方向文字サイズを乗じて半
角時の横方向文字サイズを算出する。以上で求めた文字
サイズを元にステップ18で描画を行う。
60% or less 75% 90%61-70%
70% 98%71~80%
60% 96%81~100% 5
0% 100% Next, in step 17, the reduction ratio obtained above is multiplied by the full-width horizontal character size to calculate the half-width horizontal character size. Drawing is performed in step 18 based on the character size determined above.

フォントのボディエリアとレターエリアの関係を第3図
に、本実施例における一例を第4図に示す。
FIG. 3 shows the relationship between the body area and letter area of the font, and FIG. 4 shows an example of this embodiment.

また、レターエリア幅データは本実施例では。Also, the letter area width data is in this example.

アウトラインフォントメモリ6内に格納されているが、
別にレターエリア幅データテーブルとじて作成したり、
入力装置2より入力しても同様な効果が得られる。
Although it is stored in the outline font memory 6,
You can create a separate letter area width data table,
A similar effect can be obtained by inputting from the input device 2.

以上のように、各文字のレターエリア幅データを用いて
縮小率を計算し半角文字描画時の横方向文字サイズを求
めて描画することにより、横方向を172にしたものよ
りレターエリア幅が大きくなるため1文字間のあきすぎ
、線のやせ細り等が改善される。
As described above, by calculating the reduction rate using the letter area width data of each character and determining the horizontal character size when drawing half-width characters, the letter area width is larger than when the horizontal direction is set to 172. This improves problems such as too much space between characters and thin lines.

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

以上実施例で述べた如く、本発明によればフォントのレ
ターエリア幅を用いて縮小率を計算することにより半角
文字描画時の横方向文字サイズを従来技術における全角
文字の1/2のサイズより大きくすることが可能となり
、半角文字描画時の文字間のあきすぎ、線のやせ細りが
改善されるため品質向上に効果がある。
As described in the embodiments above, according to the present invention, by calculating the reduction rate using the letter area width of the font, the horizontal character size when drawing half-width characters is reduced to 1/2 the size of full-width characters in the conventional technology. This makes it possible to increase the size of half-width characters, which improves quality by eliminating too much space between characters and thin lines when drawing half-width characters.

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

第1図は本発明の一実施例のブロック図、第2図は動作
を示すフローチャート、第3図はボディエリアとレター
エリアの関係を示す説明図、第4図は実施例の一例を示
す図、第5図は従来技術におけるブロック図、第6図は
動作を示すフローチャートである。 1.51・・・CPU、2.52・・・入力装置、3゜
53・・・バッファメモリ、4・・・アウトラインフォ
ントメモリ (レターエリア幅データ付)、54・・・
アウトラインフォントメモリ、5,55・・・描画手段
、6.56・・・表示装置、7,57・・・出力装置、
8゜第 2 図 第 図 第3図 第6図
Fig. 1 is a block diagram of an embodiment of the present invention, Fig. 2 is a flowchart showing the operation, Fig. 3 is an explanatory diagram showing the relationship between the body area and letter area, and Fig. 4 is a diagram showing an example of the embodiment. , FIG. 5 is a block diagram of the prior art, and FIG. 6 is a flowchart showing the operation. 1.51...CPU, 2.52...Input device, 3゜53...Buffer memory, 4...Outline font memory (with letter area width data), 54...
Outline font memory, 5, 55... drawing means, 6.56... display device, 7, 57... output device,
8゜Figure 2 Figure 3 Figure 6

Claims (1)

【特許請求の範囲】 1、輸郭線データで表現されるアウトラインフォントを
有し、同一文字で通常文字幅の文字(以下全角文字)と
通常文字幅の略1/2の文字(以下半角文字)双方を指
定可能な機能を有する描画装置において、アウトライン
フォント描画時に半角文字が指定された場合には、アウ
トラインフォントデータ内に格納された各文字毎のレタ
ーエリア幅に従い縮小率を計算し、半角文字を描画する
ことを特徴とする文字描画装置。 2、アウトラインフォント描画時に半角文字が指定され
た場合には、レターエリア幅テーブル内のレターエリア
幅に従い、縮小率を計算し半角文字を描画することを特
徴とする特許請求の範囲第1項記載の文字描画装置。
[Claims] 1. It has an outline font expressed by contour line data, and has the same character with a normal character width (hereinafter referred to as a full-width character) and a character with approximately half the normal character width (hereinafter referred to as a half-width character). ) If a half-width character is specified when drawing an outline font on a drawing device that has a function that allows both to be specified, the reduction rate is calculated according to the letter area width for each character stored in the outline font data, and the half-width character is A character drawing device characterized by drawing characters. 2. When a half-width character is specified when drawing an outline font, the reduction ratio is calculated according to the letter area width in the letter area width table and the half-width character is drawn. character drawing device.
JP1146807A 1989-06-12 1989-06-12 Character drawing device Pending JPH0312697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1146807A JPH0312697A (en) 1989-06-12 1989-06-12 Character drawing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1146807A JPH0312697A (en) 1989-06-12 1989-06-12 Character drawing device

Publications (1)

Publication Number Publication Date
JPH0312697A true JPH0312697A (en) 1991-01-21

Family

ID=15415973

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1146807A Pending JPH0312697A (en) 1989-06-12 1989-06-12 Character drawing device

Country Status (1)

Country Link
JP (1) JPH0312697A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019008702A1 (en) * 2017-07-05 2019-01-10 三菱電機株式会社 Rendering device and rendering method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019008702A1 (en) * 2017-07-05 2019-01-10 三菱電機株式会社 Rendering device and rendering method
DE112017007633T5 (en) 2017-07-05 2020-08-06 Mitsubishi Electric Corporation Rendering setup and rendering process

Similar Documents

Publication Publication Date Title
EP0131457B1 (en) Document creating apparatus
JP2002007951A (en) Form input method, its implementation device, and recording medium recording its processing program
JPH05323941A (en) Scrolling controller
US5883637A (en) Kerning method and a typographic apparatus utilizing same
JPH02109095A (en) drawing device
JP2985275B2 (en) Character generation method of outline font
JP2910921B2 (en) Printing control device
JPH1185455A (en) Graphic drawing and processing system
JP3072763B2 (en) Data linkage processing method
JP2886912B2 (en) Character processing apparatus and method
JP2908194B2 (en) Character transformation control method
JP2811684B2 (en) Character data processing device
JPH04167167A (en) In-line display system for kana/kanji conversion
JPH07111727B2 (en) Document reader
JP2764944B2 (en) Character output device
JP2541612B2 (en) Multi-window display
JPS59165122A (en) Conversion system for arabic character
JPH0930044A (en) Printer
JPH0527740A (en) Character pattern generator
JPH0687249A (en) Apparatus for printing address
JPH05216877A (en) Document preparation device
JPH06274144A (en) Character processor
JPH05241557A (en) Device and method for controlling character display
JPH02255958A (en) Method and device for editing document
JPH01255887A (en) Character and graphic editing device