JPH03186895A - Method for forming outline font - Google Patents

Method for forming outline font

Info

Publication number
JPH03186895A
JPH03186895A JP1326616A JP32661689A JPH03186895A JP H03186895 A JPH03186895 A JP H03186895A JP 1326616 A JP1326616 A JP 1326616A JP 32661689 A JP32661689 A JP 32661689A JP H03186895 A JPH03186895 A JP H03186895A
Authority
JP
Japan
Prior art keywords
font
outline
bitmap
pixels
bit map
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
JP1326616A
Other languages
Japanese (ja)
Other versions
JP2552556B2 (en
Inventor
Mamoru Yasumoto
安本 護
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric Co 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP1326616A priority Critical patent/JP2552556B2/en
Publication of JPH03186895A publication Critical patent/JPH03186895A/en
Application granted granted Critical
Publication of JP2552556B2 publication Critical patent/JP2552556B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE:To reduce a change between the aspect ratio of the whole picture element width of picture elements included in an original bit map font and the aspect ratio of a bit map font formed from an outline font after expanding the vertical/horizontal ratio of the original bit map font by vectorizing the outline of the expanded bit map font to form the outline font. CONSTITUTION:A bit map font constituted of mXn picture elements is expanded to (2m+1)X(2n+1) picture elements and the outline of the expanded bit map font is vectorized to form the outline font. Thereby, the aspect ratio of the line width of the formed outline font is approximately the same as that of the picture element width of the original bit map font. Since the aspect ratio of the picture element width of the bit map font obtained by magnifying the outline font is approximately equal to that of the original bit map font, a change in the appearance can be reduced, and even in the case of expressing an oblique line as an outline font, the pattern can be prevented from being divided by the outline font.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、ビットマツプフォントを持ちアウトラインフ
ォントを持たないパーソナルコンピュータ、ワードプロ
セッサ等の電子機器において、ビットマツプフォントデ
ータからアウトラインフォントデータを生成する方法に
関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention provides a method for generating outline font data from bitmap font data in electronic devices such as personal computers and word processors that have bitmap fonts but do not have outline fonts. Regarding.

〔従来の技術〕[Conventional technology]

ビットマツプフォントデータは、それをそのまま拡大す
るとエツジ部が粗くなり文字の美観を損ねるので、それ
からアウトラインフォントデータを生成し、エツジ部が
滑らかな線となるようにすることがある。アウトライン
フォントデータを生成する従来の方式としては、特公昭
63−10433号公報又は特開昭64−91176号
公報に記載されているものがある。
If bitmap font data is enlarged as it is, the edges will become rough and the appearance of the characters will be spoiled, so outline font data may be generated from it so that the edges become smooth lines. Conventional methods for generating outline font data include those described in Japanese Patent Publication No. 63-10433 or Japanese Patent Application Laid-Open No. 64-91176.

特公昭63−10433号公報に記載された方式はビッ
トマツプフォントの輪郭をそのまま追跡する方式であり
、特開昭64−91176号公報に記載された方式はビ
ットマツプフォントデータを2以上の整数倍に拡大した
後、その輪郭をヘクトル化してアウトラインフォントデ
ータを生成する方式である。
The method described in Japanese Patent Publication No. 63-10433 is a method that traces the outline of a bitmap font as it is, and the method described in Japanese Patent Application Laid-Open No. 64-91176 is a method that traces bitmap font data by an integral number of 2 or more. This method generates outline font data by enlarging the outline and converting it into hectors.

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

第4図は縦横6×6画素のビットマツプフォントの部分
パターンの例であり、黒丸はフォントパターンに属する
画素を示し、それ以外のところは背景パターンに属する
画素を示している。前者の方式では第4図に示すような
ビットマツプ座標で1画素幅のパターンの輪郭をヘクト
ル化すると、生成されたベクトルデータは、それを座標
値の組で表すと(]、2)−(4,2)−(1,2)と
なり、ベクトルデータ(アウトラインフォントブタ)に
おける線幅はOとなってしまう。ここで線幅とはへクト
ルデータ(アウトラインフォントデータ)において、縦
線(又は横線)のX座標(又はY座標)の最大値と最小
値との差を言う。
FIG. 4 shows an example of a partial pattern of a bitmap font of 6×6 pixels in the vertical and horizontal directions, where black circles indicate pixels belonging to the font pattern, and other parts indicate pixels belonging to the background pattern. In the former method, when the outline of a 1-pixel wide pattern is converted into a hector using bitmap coordinates as shown in Figure 4, the generated vector data is expressed as a set of coordinate values (], 2) - (4). , 2)-(1, 2), and the line width in the vector data (outline font pig) becomes O. Here, line width refers to the difference between the maximum and minimum values of the X coordinate (or Y coordinate) of a vertical line (or horizontal line) in hector data (outline font data).

またビットマツプフォントからアウトラインフォントを
生成する場合、理想的にはフォントパターンと背景との
境界の座標を取出すべきである。
Furthermore, when generating an outline font from a bitmap font, ideally the coordinates of the boundary between the font pattern and the background should be extracted.

しかしながらピッ1−マツプフォントは画素に対して定
まるものであるので、画素の境界には座標を定義できな
い。そこで実際には境界にあるフォントパターンの画素
を抽出して輪郭線の座標を得ることになる。従ってアウ
トラインフォントデータの線幅とビットマツプフォント
データの線の画素幅とでは幅が1だけ異なる。即ちアウ
トラインフォントデータの線幅をχとし、ビットマツプ
フォントデータの画素幅をYとするとX=Y−1となる
However, since the P1-Map font is determined for pixels, coordinates cannot be defined at pixel boundaries. Therefore, the coordinates of the outline are actually obtained by extracting the pixels of the font pattern on the border. Therefore, the line width of the outline font data and the pixel width of the line of the bitmap font data differ by one. That is, if the line width of the outline font data is χ and the pixel width of the bitmap font data is Y, then X=Y-1.

前者の方式で生成されたベクトルデータ(アウトライン
フォントデータ)を2倍に拡大すると(2,4)−(8
,4)−(2,4)となり、拡大後もベクトルデータに
おける線幅ばOとなる。
When the vector data (outline font data) generated by the former method is expanded twice, it becomes (2, 4) - (8
, 4)-(2, 4), and the line width in the vector data remains O even after expansion.

このように前者の特公昭63−10433号公報に開示
された方式では、1画素幅の部分パターンを持つビット
マツプフォントデータからアウトラインフォントデータ
を生成した場合、生成されたアウトラインフォントを変
倍した後、ビットマツプフォントデータに変換して表示
・印刷しても拡大サイズに関わらず、ビットマツプフォ
ントで示した線は1画素幅となってしまい、元のビット
マツプフォントとは大きくデザインの異なった文字が生
成されてしまう。
In this way, in the former method disclosed in Japanese Patent Publication No. 63-10433, when outline font data is generated from bitmap font data having a partial pattern of 1 pixel width, after scaling the generated outline font, , even if you convert it to bitmap font data and display/print it, the line shown in the bitmap font will be 1 pixel wide regardless of the enlarged size, resulting in characters whose design is significantly different from the original bitmap font. will be generated.

また後者の方式ではビットマツプフォントデータを整数
倍後にアウトラインフォントを生成しているので、1画
素幅のビットマツプフォントからアウトラインフォント
を生成してもアウトラインフォントの線幅が0になるよ
うなことはない。ところが、この方式でもビットマツプ
フォントから生成されたアウトラインフォントに基づき
、文字のサイズを変倍すると元のビットマツプフォント
が持つ画素幅の縦横比率が正確に再現されないという欠
点がある。例えば、第5図に示す如く横1画素幅、縦2
画素幅のビットマツプフォントを2倍に拡大した後、輪
郭をベクトル化してアウトラインフォントを生成するこ
とを考える。
In addition, in the latter method, the outline font is generated after multiplying the bitmap font data by an integer, so even if an outline font is generated from a bitmap font with a width of 1 pixel, the line width of the outline font will not become 0. do not have. However, even with this method, there is a drawback that when the character size is changed based on an outline font generated from a bitmap font, the aspect ratio of the pixel width of the original bitmap font is not accurately reproduced. For example, as shown in FIG.
Consider expanding a pixel-width bitmap font to twice its size and then vectorizing its outline to generate an outline font.

第6図は第5図のビットマツプフォントを2倍に拡大し
たものである。これをフォントパターンに属する画素を
輪郭として縦・横4連結方向にベクトル化すると、生成
されたベクトルデータは第6図に示す如< (4,2)
 −(7,2)−(74)−(9,4)−(9,5)−
(79)(4,9)−(4,5)−(2,51(2,4
)(4,4)−(4,2)となり、生成されたベクトル
データの横線幅は5−4=1、縦線幅は74−3となる
。このベクトルデータを10倍に拡大した後、ビットマ
ツプフォントデータ化すると、拡大後のビットマツプフ
ォントデータの横画素幅は1 xlO+1 =II画素
、縦画素幅ば3 XIO+I −31画素となる。以上
の操作は、ビットマツプフォントデータで2倍、アウト
ラインフォントデータで10倍しているので元のフォン
トを20倍に拡大をしたことになる。ところが、元のフ
ォントデータのまま20倍すると横画素幅はI X20
=20画素、縦画素幅は2X20=40画素となる。即
ち、アウトラインフォントを生成した後、拡大を行うと
元のビットマツプフォントが持つ画素幅の縦横比率とは
大きく異なる画素幅の縦横比率となってしまうのである
。さらに特開昭64−91176号公報に記載された方
法で第7図に示すような45度の方向に並ふ1画素幅の
線分パターンを3倍に拡大すると、第8図に示すような
パターンが得られる。これを縦・横4連結方向にベクト
ル化を行うと生成されたデータは(12,3) −(1
4,3) −(14,5)(12,5) −(12,3
)、(9,6)−(11,6)(11B)−(9,8)
−(9,6)、(6゜9)−(8,9)−(8,11)
 −(6,11)(6,9)、(3,12)−(5,1
2)−(5,14)(3,14) −(3,12)とな
り、本来連続した斜め線であるべきパターンかベクトル
化によって分断されてしまうという欠点があった。
FIG. 6 shows the bitmap font of FIG. 5 enlarged twice. When this is vectorized in the vertical and horizontal 4 connected directions using pixels belonging to the font pattern as outlines, the generated vector data is as shown in Figure 6.
-(7,2)-(74)-(9,4)-(9,5)-
(79)(4,9)-(4,5)-(2,51(2,4
)(4,4)-(4,2), and the horizontal line width of the generated vector data is 5-4=1, and the vertical line width is 74-3. When this vector data is enlarged ten times and converted into bitmap font data, the horizontal pixel width of the enlarged bitmap font data becomes 1 xlO+1 = II pixels, and the vertical pixel width becomes 3XIO+I - 31 pixels. The above operations double the bitmap font data and multiply the outline font data by 10, so the original font is enlarged 20 times. However, if you multiply the original font data by 20, the horizontal pixel width will be I x 20.
=20 pixels, and the vertical pixel width is 2×20=40 pixels. That is, if an outline font is generated and then enlarged, the pixel width will have an aspect ratio that is significantly different from the pixel width aspect ratio of the original bitmap font. Furthermore, if the line segment pattern of 1 pixel width arranged in a 45-degree direction as shown in FIG. 7 is expanded three times using the method described in JP-A-64-91176, the pattern shown in FIG. 8 will be obtained. A pattern is obtained. When this is vectorized in the vertical and horizontal 4 connected directions, the generated data is (12, 3) - (1
4,3) -(14,5)(12,5) -(12,3
), (9,6)-(11,6)(11B)-(9,8)
-(9,6), (6°9)-(8,9)-(8,11)
-(6,11)(6,9),(3,12)-(5,1
2) - (5, 14) (3, 14) - (3, 12), which has the drawback that the pattern, which should originally be a continuous diagonal line, is divided by vectorization.

以上述べた特公昭63−10433号公報及び特開昭6
49]176号公報に記載された方式の欠点は48画素
×48画素を超える高解像度のビットマツプフォントの
場合にはフォントを構成するビットパターンの画素幅が
十分に太いので現れにくいのであるが、48画素×48
画素程度以下の中・低解像度のビットマツプフォントを
アウトライン化する場合には画素幅か細いので上述の欠
点が顕著になる。
Japanese Patent Publication No. 63-10433 and Japanese Unexamined Patent Application Publication No. 63-1983 mentioned above
49] The disadvantage of the method described in Publication No. 176 is that in the case of high-resolution bitmap fonts exceeding 48 pixels x 48 pixels, the pixel width of the bit pattern that makes up the font is sufficiently wide, so it is difficult to see it. 48 pixels x 48
When converting a bitmap font of medium or low resolution, which is less than a pixel, to an outline, the above-mentioned drawback becomes noticeable because the pixel width is thin.

一方、このようなビットマツプフォントは本文を組むた
めにデザインされたものであるので、般にフォントを構
成する画素幅が細く設計されている。従って単純に拡大
してもフォントのサイズに対する画素幅の縦横比率が変
化セす、文字の大きさの割りに画素幅が細い、見出し等
には適さない力強さのない文字となってしまうという欠
点があった。
On the other hand, since such bitmap fonts are designed for composing main text, they are generally designed to have narrow pixel widths. Therefore, even if you simply enlarge the font, the aspect ratio of the pixel width to the font size will change, the pixel width will be narrow compared to the font size, and the characters will become weak and unsuitable for headings, etc. There were drawbacks.

本発明は斯かる事情に鑑みなされたものであり、ビット
マツプフォントを縦2m+1画素×横20+1画素に拡
大した後に、その輪郭をベクトル化してアウトラインフ
ォントを生成することにより、アウトラインフォント化
した後に、拡大、縮小等の変倍を行った場合、元のビッ
トマツプフォントが有している画素幅の縦横比率を拡大
後のアウトラインフォントから生成したビットマツプフ
ォントの縦横比率との変化が少なく、斜め方向のパター
ンを有するビットマツプフォントを拡大した場合であっ
ても、パターンの分断を生しないと共に、ベクトル化す
る画素を輪郭部又はそれに隣接する画素から選択的に指
定することにより、線幅の太い力強いアラ1〜ラインフ
オントを生成できるアウトラインフォント生成方法を提
供することを目的にする。
The present invention was developed in view of the above circumstances, and after enlarging a bitmap font to 2 m + 1 pixel in height x 20 + 1 pixel in width, the outline is vectorized to generate an outline font. When scaling is performed, such as enlarging or reducing, there is little change in the aspect ratio of the pixel width of the original bitmap font from the aspect ratio of the bitmap font generated from the enlarged outline font, and the diagonal direction Even when a bitmap font with a pattern of To provide an outline font generation method capable of generating outline fonts.

〔課題を解決するための手段〕 本発明に係る第1のアウトラインフォント生成方法は、
縦横m×n画素(m、nは整数)で構成されたビットマ
ツプフォントを拡大し、拡大したビットマツプフォント
の輪郭をベクトル化してアウトラインフォントを生成す
るアウトラインフォント生成方法において、前記ビット
マツプフォントを縦横(2m+1) X (2r++1
 )画素のビットマツプフォントに拡大し、拡大したビ
ットマツプフォントの輪郭をベクトル化してアウトライ
ンフォントを生成することを特徴とし、第2のアウトラ
インフォント生成方法は、ビットマツプフォントの輪郭
をベクトル化してアウトラインフォントを生成するアウ
トラインフォント生成方法において、前記ビットマツプ
フォントの輪郭の画素又はそれに隣接する背景の画素を
選択時に指定し、指定された画素をベクトル化してアウ
トラインフォントを生成することを特徴とする。
[Means for solving the problem] A first outline font generation method according to the present invention includes:
In an outline font generation method in which an outline font is generated by enlarging a bitmap font composed of vertical and horizontal pixels (m and n are integers) and vectorizing the outline of the enlarged bitmap font, the bitmap font is Length and width (2m+1) X (2r++1
) pixel to a bitmap font and vectorize the outline of the enlarged bitmap font to generate an outline font. The outline font generation method for generating a font is characterized in that pixels of the outline of the bitmap font or pixels of the background adjacent thereto are specified at the time of selection, and the specified pixels are vectorized to generate the outline font.

〔作用〕[Effect]

本発明においては、縦m画素×横n画素で構成されるビ
ットマツプフォントデータからアウトラインフォントデ
ータを得る場合に、ビットマツプフォントデータの座標
(i、Nがビットマツプフォントパターンに属する画素
のとき、それを座標(2i+ 1 、23+ 1 )に
写像し、写像された画素の隣接する8近傍の座標も新た
に生成されたビットマツプフォントパターンに属する画
素として縦21川画素×横2n+1画素に拡大し、その
輪郭ベクトル化してアウトラインフォントデータを得る
In the present invention, when obtaining outline font data from bitmap font data consisting of m vertical pixels x horizontal n pixels, the coordinates of the bitmap font data (when i and N are pixels belonging to the bitmap font pattern, It is mapped to the coordinates (2i+1, 23+1), and the coordinates of the eight neighboring pixels of the mapped pixel are expanded to 21 pixels vertically x 2n+1 pixels horizontally as pixels that belong to the newly generated bitmap font pattern. , convert the outline into vectors to obtain outline font data.

これにより生成されたアウトラインフォントの線幅の縦
横比率が元になるビットマツプフォントデータの画素幅
の縦横比率と路間−になり、画素幅の小さいビットマツ
プフォントデータをアウトラインフォント化した場合で
あっても、それを変倍した場合に縦横比があまり変化し
ない。また生威されたアウトラインフォントデータの線
幅を制御するため、輪郭をベクトル化するときに、フォ
ントパターンに属する画素又はそれに隣接する背景の画
素をベクトル化の対象とするかを選択的に指定する。
As a result, the aspect ratio of the line width of the generated outline font is equal to the aspect ratio of the pixel width of the original bitmap font data. However, when you scale it, the aspect ratio does not change much. In addition, in order to control the line width of the generated outline font data, when vectorizing the outline, it is possible to selectively specify whether pixels belonging to the font pattern or pixels in the background adjacent to it are to be vectorized. .

〔実施例〕〔Example〕

以下、本発明をその実施例を示す図面に基づいて説明す
る。
Hereinafter, the present invention will be explained based on drawings showing embodiments thereof.

第1図は本発明に係るアウトラインフォン)・生成方法
(以下本発明方法という)の実施に用いるフォント生成
装置の概略構成を示すブロック図である。第1図をもと
にフォント生成装置の構成を概略動作と共に説明する。
FIG. 1 is a block diagram showing a schematic configuration of a font generation device used to implement the outline phone) generation method (hereinafter referred to as the method of the present invention) according to the present invention. The configuration of the font generation device will be explained along with its general operation based on FIG.

図において1はCPUであり、該CI)U  1はRO
M 2に格納されたプログラムに従い次の処理を実行す
る。CPU 1はキーボード5で指定されたアウトライ
ンフォントにするビットマツプフォントの文字、出力す
るときの文字のサイズ及びその線幅に基づきフォントR
OM 3から指定された文字のビットマツプフォントデ
ータを読み出し、本発明方法を用いて(2m+ I X
2nX ] )に拡大してRAM 4に書込む。またC
PU  1はRAM 4上に拡大されたフォントパター
ンの輪郭を、フォントパターンに属する画素又は背景部
分に属する画素から線幅の指定により追跡し、ベクトル
化してアウトラインフォントの生成を行い、生成された
アウトラインフォントデータをIlAM 4に書込む。
In the figure, 1 is the CPU, and the CI) U 1 is the RO
The following processing is executed according to the program stored in M2. The CPU 1 selects the font R based on the bitmap font characters specified on the keyboard 5, the size of the characters to be output, and their line widths.
Read the bitmap font data of the specified character from OM 3 and use the method of the present invention to create (2m+I
2nX ] ) and write it into RAM 4. Also C
The PU 1 traces the outline of the font pattern enlarged on the RAM 4 by specifying the line width from pixels belonging to the font pattern or pixels belonging to the background part, vectorizes it, generates an outline font, and generates the generated outline. Write font data to IlAM 4.

このとき輪郭の追跡には例えば安居院猛、中嶋正之著「
コンピュータ画像処理」、産報出版、1979、P、6
7〜69に述べられた如くの公知の方法を用いることが
できる。
At this time, contour tracking can be done using, for example, the book written by Takeshi Angoin and Masayuki Nakajima.
"Computer Image Processing", Sanpo Publishing, 1979, P. 6
Known methods such as those described in Nos. 7 to 69 can be used.

またCPU  1はRAM 4に書込まれたアウトライ
ンフォントデータに係数を乗することにより、キーボー
ド5にて指定された出力サイズに変換して再ヒI?AM
4に書込む。ここで生成されたアウトラインフォントデ
ータの輪郭部が粗くなり文字の美観を損ねる場合は、公
知の平滑化アルゴリズムを適用して輪郭を滑らかにする
こともできる。このようにして生成されたデータに公知
の輪郭内塗りつぶしアルゴリズムを適用してCPI+ 
1はCIIT 6又はプリンタフにキーボード5にて指
定された文字が1 指定されたサイズ及び線幅で表示又は印刷される。
In addition, the CPU 1 multiplies the outline font data written in the RAM 4 by a coefficient to convert it to the output size specified on the keyboard 5 and re-enter the output size. A.M.
Write in 4. If the contours of the outline font data generated here become rough and detract from the aesthetic appearance of the characters, a known smoothing algorithm can be applied to smooth the contours. By applying a known contour filling algorithm to the data generated in this way, CPI+
1 indicates that the characters specified on the keyboard 5 are displayed or printed on the CIIT 6 or the printer in the specified size and line width.

次に本発明方法のアウトラインフォント生成手順につい
て説明する。ここでは第5図に示すビットマツプフォン
トからアウトラインフォントを生成する場合を例に説明
する。第5図に示ず6×6画素内に横2画素幅、縦1画
素幅のビットマツプフォントのフォントパターン内の座
標(i、j)の画素を座標(2i+ 1 、2j−1−
1)の画素に写像する。そして写像された画素の8近傍
の画素、即ち座標(2i 、2j)、(2i+1 、2
j)、(2i + 2 、2j)(2i、 2j + 
1 )、(2++ 2.2j−1−1)、(2i、 2
j+2)、(2i+1 、2j+2 )、(2i+ 2
 、2j+2 )の画素を新たに生成されたフォントの
パターンに属する画素とし、指定された文字のビットマ
ツプフォントを縦2m+1画素、横20+1画素に拡大
する。第2図は本発明方法で拡大されたビットマツプフ
ォントを示す図であり、第6図に示すビットマツプフォ
ントの輪郭部又はそれと隣接する背景部の画素を追跡し
、公知の方法でベクトル化する。
Next, the outline font generation procedure of the method of the present invention will be explained. Here, an example of generating an outline font from a bitmap font shown in FIG. 5 will be explained. The pixel at the coordinates (i, j) in the font pattern of a bitmap font with a width of 2 pixels horizontally and a width of 1 pixel vertically within 6 x 6 pixels (not shown in Figure 5) is expressed as the coordinates (2i+ 1, 2j-1-
1). Then, the 8 neighboring pixels of the mapped pixel, namely the coordinates (2i, 2j), (2i+1, 2
j), (2i + 2, 2j) (2i, 2j +
1 ), (2++ 2.2j-1-1), (2i, 2
j+2), (2i+1, 2j+2), (2i+ 2
, 2j+2) as pixels belonging to the newly generated font pattern, and enlarges the bitmap font of the specified character to 2m+1 pixels in height and 20+1 pixels in width. FIG. 2 is a diagram showing a bitmap font enlarged by the method of the present invention. Pixels in the outline of the bitmap font shown in FIG. 6 or in the background adjacent thereto are tracked and vectorized using a known method. .

このとき輪郭部の画素を縦横4連結方向に追跡し、2 ベクトル化すると、生成されたアウトラインフォントデ
ータは(4,2) −(8,2) −(8,4)(10
,4) −(10,6) −(8,6) −(810)
−(4,10) −(4,6) −(2,6)(2,4
)−(4,4)−(4,2)となり、ヘクトルデータの
縦線幅は6−4=2、横線幅は8−4羽4となる。こデ
ータを10倍に拡大した後、Foley、 J、D、+
 Van Ilam、 A、 ”I’undament
als of Interactive Comput
or Graphics 、 Addison−Wes
leyPub口shing Company、 198
2. P、457〜460に述べられた公知の方法でビ
ットマツプフォントデータ化すると、拡大後のビットマ
ツプフォントデータの縦画素幅は2 X10+ 1 =
21画素、横画素幅は4XIO−1−1=41画素とな
る。元のビットマツプフォントを20倍したものの横画
素幅は20画素、縦画素幅は40画素であるので、本発
明方法によればアウトラインフォントを生成した後に拡
大を行っても元のビア)マツプフォントが持つ画素幅の
縦横比率を非常に良く保存できる。
At this time, when the pixels of the outline are traced in the vertical and horizontal 4 connected directions and converted into 2 vectors, the generated outline font data is (4, 2) - (8, 2) - (8, 4) (10
,4) −(10,6) −(8,6) −(810)
-(4,10) -(4,6) -(2,6)(2,4
) - (4, 4) - (4, 2), the vertical line width of the hector data is 6 - 4 = 2, and the horizontal line width is 8 - 4 wings 4. After expanding this data by a factor of 10, Foley, J, D, +
Van Ilam, A.
also of Interactive Compute
or Graphics, Addison-Wes
leyPubshing Company, 198
2. When the bitmap font data is converted into bitmap font data using the known method described in P.P., 457-460, the vertical pixel width of the enlarged bitmap font data is 2 x 10 + 1 =
21 pixels, and the horizontal pixel width is 4XIO-1-1=41 pixels. Even if the original bitmap font is multiplied by 20, the horizontal pixel width is 20 pixels and the vertical pixel width is 40 pixels, so according to the method of the present invention, even if the outline font is generated and then enlarged, the original via) map font The aspect ratio of pixel width can be preserved very well.

またキーボード5からの線幅の指定により輪郭部に隣接
する背景部の画素を指定し、それを追跡してヘクトル化
すると、生成されたアウトラインフォントデータは(3
,1)−(9,1)−(93)−(Il、3)−(1,
1,7)−(9,7)(911) −(3,11) −
(3,7) −(1,7)(L  3)−(3,3)−
(3,1)となり、ヘクトルデークの縦線幅は7−3=
4、横線幅は9−3=6となり、大きく拡大する場合に
好適な線幅の太い力強いアウトラインフォントとなり、
見出し等の強調文字に好適なものとなる。これを10倍
に拡大した後に公知の方法でビットマツプフォント化す
ると、拡大後の縦画素幅は4X10+1−41画素、横
画素幅6 XIO+ 1 =61画素となり、横画素幅
に比べ縦画素幅が強調された力強い文字となる。
In addition, by specifying the line width from the keyboard 5, pixels in the background adjacent to the outline are specified, traced and converted into hectors, the generated outline font data is (3
,1)-(9,1)-(93)-(Il,3)-(1,
1,7)-(9,7)(911)-(3,11)-
(3,7) −(1,7)(L 3)−(3,3)−
(3,1), and the vertical line width of the hector deck is 7-3=
4. The horizontal line width is 9-3=6, making it a strong outline font with thick line width suitable for large enlargements.
This is suitable for emphasized characters such as headings. If this is enlarged 10 times and converted into a bitmap font using a known method, the vertical pixel width after enlargement will be 4X10+1-41 pixels, the horizontal pixel width will be 6 XIO+ 1 = 61 pixels, and the vertical pixel width will be smaller than the horizontal pixel width. The characters are emphasized and strong.

第3図は第7図に示す如くの45°方向に並ぷ1画素幅
の線分パターンを本発明方法により拡大したときのビッ
トマツプフォントを示す図であり、前述の場合と同様に
写像した画素(2i+1,2j+1)の8近傍の画素も
新たに生成されたフォントのパターンとすることにより
、第3図に示す如くのビットマツプフォントが得られる
。これを4連結方向の輪郭追跡によりヘクトル化すると
(82)−(10,2)−(10,4)−(8,4)(
8,6)−(6,6)−(6,8)−(/1(4,10
) −(2,10) −(2,8)−(48)−(4,
6)−(6,6)−(6,4)(8,4)−(8,2)
となり、ヘクトル化によってパターンが分断されること
はない。
FIG. 3 is a diagram showing a bitmap font when a line segment pattern of 1 pixel width arranged in the 45° direction as shown in FIG. By making the eight neighboring pixels of pixel (2i+1, 2j+1) a newly generated font pattern, a bitmap font as shown in FIG. 3 can be obtained. When this is converted into a hector by contour tracing in 4 connected directions, (82) - (10, 2) - (10, 4) - (8, 4) (
8,6)-(6,6)-(6,8)-(/1(4,10
) −(2,10) −(2,8) −(48) −(4,
6) - (6, 6) - (6, 4) (8, 4) - (8, 2)
Therefore, the pattern is not broken by hectorization.

〔効果〕〔effect〕

以上説明したとおり、本発明においては、アウトライン
化に先立ち、m×n画素で構成されるビットマツプフォ
ントを(2m+1 ) X (2n+ 1 )画素に拡
大し、拡大したビットマツプフォント郭をヘクトル化し
、アウトラインフォントを生成することにより、生成さ
れたアウトラインフォントの線幅の縦横比率が元になる
ビットマツプフォントの画素幅の縦横比率と啓開−にな
り、アウトラインフォントを変倍した場合にもそれから
得られたビットマツプフォントの画素幅の縦横比率と8
) 5 元のビットマツプフォントの縦横比率とが略等しくなり
、外観上の変化が少なくなる。また斜め線をアウトライ
ンフォント化した場合もアウトラインフォントによって
パターンが分断されることがない。
As explained above, in the present invention, prior to converting into an outline, a bitmap font consisting of m×n pixels is enlarged to (2m+1)×(2n+1) pixels, and the enlarged bitmap font outline is converted into a hector. By generating an outline font, the aspect ratio of the line width of the generated outline font becomes the aspect ratio of the pixel width of the original bitmap font, and even if the outline font is scaled, The aspect ratio of the bitmap font pixel width and 8
) 5 The aspect ratio of the original bitmap font becomes approximately the same, and there are fewer changes in appearance. Furthermore, even when diagonal lines are converted into an outline font, the pattern is not divided by the outline font.

またアラ1−ラインフオンi−化する場合にビットマツ
プフォントの輪郭又はそれに隣接する背景の画素を選択
的に指定することにより拡大したときに線幅の太い力強
い文字が得られる等優れた効果を奏する。
In addition, when converting to line fonts, by selectively specifying the outline of the bitmap font or the pixels in the background adjacent to it, excellent effects can be achieved, such as obtaining strong characters with thick line widths when enlarged. .

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

第1図は本発明方法の実施に用いるフォント生成装置の
概略構成を示すブロック図、第2図及び第3図は本発明
方法を用いて第5図及び第7図に示す部分パターンを夫
々拡大した場合のビットマツプフォントを示す図、第4
.5.7図はビットマツプフォントの部分パターンを示
す図、第6図及び第8図は第4図及び第7図に示す部分
パターンを従来方法を用いて夫々拡大した場合ビットマ
ツプフォントを示す図である。 6 I・・・CPU ・・ROM 3・・・フォントROM 4 ・・・RAM 特 許
FIG. 1 is a block diagram showing a schematic configuration of a font generation device used to implement the method of the present invention, and FIGS. 2 and 3 are enlargements of the partial patterns shown in FIGS. 5 and 7, respectively, using the method of the present invention. Figure 4 shows the bitmap font when
.. 5.7 is a diagram showing a partial pattern of a bitmap font, and FIGS. 6 and 8 are diagrams showing a bitmap font when the partial patterns shown in FIGS. 4 and 7 are respectively enlarged using the conventional method. It is. 6 I...CPU...ROM 3...Font ROM 4...RAM Patent

Claims (1)

【特許請求の範囲】 1、縦横m×n画素(m、nは整数)で構成されたビッ
トマップフォントを拡大し、拡大したビットマップフォ
ントの輪郭をベクトル化してアウトラインフォントを生
成するアウトラインフォント生成方法において、 前記ビットマップフォントを縦横(2m+1)×(2n
+1)画素のビットマップフォントに拡大し、拡大した
ビットマップフォントの輪郭をベクトル化してアウトラ
インフォントを生成することを特徴とするアウトライン
フォント生成方法。 2、ビットマップフォントの輪郭をベクトル化してアウ
トラインフォントを生成するアウトラインフォント生成
方法において、 前記ビットマップフォントの輪郭の画素又 はそれに隣接する背景の画素を選択時に指定し、指定さ
れた画素をベクトル化してアウトラインフォントを生成
することを特徴とするアウトラインフォント生成方法。
[Claims] 1. Outline font generation that enlarges a bitmap font composed of m×n pixels (m and n are integers) and vectorizes the outline of the enlarged bitmap font to generate an outline font. In the method, the bitmap font is arranged vertically and horizontally (2m+1)×(2n
+1) An outline font generation method characterized by enlarging a pixel bitmap font and generating an outline font by vectorizing the outline of the enlarged bitmap font. 2. In an outline font generation method in which an outline font is generated by vectorizing the outline of a bitmap font, a pixel of the outline of the bitmap font or a pixel of the background adjacent to it is specified at the time of selection, and the specified pixel is vectorized. An outline font generation method characterized in that an outline font is generated using the following steps.
JP1326616A 1989-12-15 1989-12-15 Outline font generation method Expired - Lifetime JP2552556B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1326616A JP2552556B2 (en) 1989-12-15 1989-12-15 Outline font generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1326616A JP2552556B2 (en) 1989-12-15 1989-12-15 Outline font generation method

Publications (2)

Publication Number Publication Date
JPH03186895A true JPH03186895A (en) 1991-08-14
JP2552556B2 JP2552556B2 (en) 1996-11-13

Family

ID=18189794

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1326616A Expired - Lifetime JP2552556B2 (en) 1989-12-15 1989-12-15 Outline font generation method

Country Status (1)

Country Link
JP (1) JP2552556B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009213145A (en) * 2007-02-21 2009-09-17 Fuji Xerox Co Ltd Image processing apparatus, and image processing program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6310433A (en) * 1986-07-01 1988-01-18 Ulvac Corp Ion source
JPS6491176A (en) * 1987-10-02 1989-04-10 Ricoh Kk Vector conversion system for dot character pattern

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6310433A (en) * 1986-07-01 1988-01-18 Ulvac Corp Ion source
JPS6491176A (en) * 1987-10-02 1989-04-10 Ricoh Kk Vector conversion system for dot character pattern

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009213145A (en) * 2007-02-21 2009-09-17 Fuji Xerox Co Ltd Image processing apparatus, and image processing program
US8411955B2 (en) 2007-02-21 2013-04-02 Fuji Xerox Co., Ltd. Image processing apparatus, image processing method and computer-readable medium

Also Published As

Publication number Publication date
JP2552556B2 (en) 1996-11-13

Similar Documents

Publication Publication Date Title
US5155805A (en) Method and apparatus for moving control points in displaying digital typeface on raster output devices
US7945114B2 (en) Image transform method for obtaining expanded image data, image processing apparatus and image display device therefore
US7412360B2 (en) Method and apparatus for shape deformation and placement
JPH03208094A (en) Treatment of outline of symbol image of various sizes and computor display device
US7262774B2 (en) Character image generating apparatus, character image generating method, display control apparatus, display control method and computer-readable recording medium recorded character image generation program or display control program thereon
JPH05127654A (en) Character and figure deformation processing device
US20050270294A1 (en) Methods and apparatus for supporting and implementing computer based animation
JP3037854B2 (en) Character generation method and device
Lim et al. Oriental character font design by a structured composition of stroke elements
US20060071948A1 (en) 3D font-engine
JPH03186895A (en) Method for forming outline font
CN112232022B (en) Method and system for dynamically adjusting parameters and designing Chinese character patterns and layouts
JP3034140B2 (en) Character generation method and device
JP2806679B2 (en) Character generator
JP2018019212A (en) Information processing apparatus, drawing processing method, and computer program
JPH06175639A (en) Method and device for character generation
JPS62212167A (en) Synthesized character forming system
JP3556758B2 (en) Font expression method and rasterizer
JPH08137460A (en) Font information former
JP3473046B2 (en) Non-erected character drawing method and apparatus
Hussain et al. Intelligent digitisation of Arabic characters
JP3072756B2 (en) Drawing equipment
JPH096309A (en) Writing brush font generating method
JPH03278190A (en) Polygon painting-out system
JPH06110442A (en) Character and figure processor and method for deforming character of figure

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070822

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080822

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090822

Year of fee payment: 13

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100822

Year of fee payment: 14

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100822

Year of fee payment: 14