JPH0452162A - Vector font data recording method - Google Patents

Vector font data recording method

Info

Publication number
JPH0452162A
JPH0452162A JP16156390A JP16156390A JPH0452162A JP H0452162 A JPH0452162 A JP H0452162A JP 16156390 A JP16156390 A JP 16156390A JP 16156390 A JP16156390 A JP 16156390A JP H0452162 A JPH0452162 A JP H0452162A
Authority
JP
Japan
Prior art keywords
attribute
data
coordinate
vector font
coordinates
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.)
Ceased
Application number
JP16156390A
Other languages
Japanese (ja)
Inventor
Jinichi Ito
仁一 伊藤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP16156390A priority Critical patent/JPH0452162A/en
Publication of JPH0452162A publication Critical patent/JPH0452162A/en
Ceased legal-status Critical Current

Links

Landscapes

  • Dot-Matrix Printers And Others (AREA)

Abstract

PURPOSE:To make generation of character patterns possible with data volume approximately half that of conventional method, to make file capacity compact, and to reduce costs by executing description of vector font data in accordance with direction attribute, reference point attribute and relation coordinate. CONSTITUTION:Vector font data indicating one position, as information to be added to an attribute similar to that of conventional method, are composed of reference point attribute data of 2-bit structure and direction attribute data of 3-bit structure, and are also composed of 1 or 2-byte coordinate data indicating relative coordinate corresponding to the direction attribute. For instance, the size of one character is made of 512X512 coordinate. With expansion made on each of positions a-h in accordance with the reference point attribute, the direction attribute and the relative coordinate, vector font data are generated with the number of data byte being 21, and thereby the data volume is greatly reduced.

Description

【発明の詳細な説明】 意」しL@剰」すと訪 この発明は、DTP (デスク・トップ・パブリッシン
グ)やLBP (レーザ・ビーム・プリンタ)その他各
種の情報処理装置で使用するのに好適なベクトルフォン
トデータ記録方法に係り、特に、複数の基準座標点と方
向別のデータとを与えることによって、データ量の大幅
な圧縮が可能な形式でベクトルデータを記述することに
より、ファイル容量を節減したベクトルフォントデータ
記録方法に関する。
[Detailed Description of the Invention] This invention is suitable for use in DTP (desk top publishing), LBP (laser beam printer), and various other information processing devices. In particular, by providing multiple reference coordinate points and data for each direction, vector data is written in a format that can significantly compress the amount of data, thereby reducing file capacity. This invention relates to a vector font data recording method.

丈米五投生 従来から、DTP (デスク・トップ・パブリッシング
)やLBP (レーザ・ビーム・プリンタ)、その他各
種の情報処理システムでは、文字の輪郭を形成するベク
トルフォントの情報(アウトラインフォントデータ)を
ROM等に記憶させておき、このベクトルフォントの情
報によって文字の輪郭を形成する文字パターン発生機能
、いわゆるアウトラインフォント文字を生成する機能が
付加されている。
Traditionally, DTP (Desk Top Publishing), LBP (Laser Beam Printer), and other various information processing systems store vector font information (outline font data) that forms the outline of characters in ROM. The vector font information is stored in a computer, etc., and a character pattern generation function for forming the outline of a character based on this vector font information, that is, a function for generating so-called outline font characters, is added.

このようなベクトルフォントの情報は、1文字を形成す
る輪郭を直線で結ぶ各点の座標位置の情報群である。す
なわち、始点から各点を結び、必ず始点で終る閉ループ
の座標情報で構成される1組あるいは複数組の座標位置
の情報群である。
Information on such a vector font is a group of information on the coordinate positions of each point connecting the outline of one character with a straight line. That is, it is an information group of one or more sets of coordinate positions, which is composed of coordinate information of a closed loop connecting each point from the starting point and always ending at the starting point.

例えば、漢字「−」は1組の位置情報群から構成される
。
For example, the kanji character "-" is composed of one set of location information groups.

また、漢字「三」や「平」等は3組の位置情報群から構
成される。
Furthermore, kanji characters such as "san" and "hira" are composed of three sets of location information groups.

特に、漢字の場合には、一般に形状が複雑であり、数画
毎に独立したパターンが多いため、多数組の位置情報群
を必要とする。
In particular, in the case of kanji, the shapes are generally complex and there are many independent patterns for every few strokes, so many sets of position information are required.

このベクトルフォントは、一つのフォントデータ(例え
ば漢字「三」のデータ)によって、文字品質を劣化させ
ることなく、自由に拡大、縮小、変形処理が可能であり
、−組のフォントデータを用意することによって、多種
類の変形文字を生成することができる、という利点があ
る。
This vector font can be freely enlarged, reduced, and transformed using one font data (for example, the data for the kanji "san") without deteriorating character quality. This has the advantage that many types of modified characters can be generated.

ところが、近年、DTP等に代表されるように、書体の
種類が増加している。
However, in recent years, the number of types of fonts has been increasing, as typified by DTP and the like.

例えば、従来は一種類だけであったゴシック書体も、角
ゴシックと丸ゴシックとの2種類が要求される。すなわ
ち、同じゴシック書体でも、角ゴシックと丸ゴシックで
は、輪郭のパターンが異なるので、その変化に対応して
それぞれ別のアウトラインフォントデータを必要とする
。
For example, two types of Gothic typefaces, square Gothic and round Gothic, are required, whereas conventionally there was only one type. That is, even though the same Gothic typeface is used, the outline patterns of square Gothic and round Gothic are different, so different outline font data are required to correspond to the changes.

さらに、毛筆体等の要望もあり、毛筆体の場合には、同
じ一本の線でも複雑な書体を表わすために、多くの位置
情報が必要であるから、その情報量が大になる。
Furthermore, there is a demand for calligraphy fonts, and in the case of calligraphy fonts, a large amount of positional information is required to represent a complex font even with the same single line, which increases the amount of information.

このように、ベクトルフォントの情報は、書体が異なる
毎に、それぞれ別個に用意しておく必要があり、書体の
種類が増加すればする程、システムで使用・するベクト
ルフォントのデータ量は必然的に増加する・ しかも、文字のサイズが大きくなると、ベクトルフォン
トで記述する位置情報も、1バイトだけでは表わせなく
なる。
In this way, vector font information needs to be prepared separately for each different typeface, and as the number of typefaces increases, the amount of vector font data used in the system will inevitably increase. Moreover, as the size of characters increases, positional information written in vector fonts can no longer be expressed in just one byte.

例えば、文字のサイズが、256X256 (座標)か
らなるときは、その1つの座標は1バイトで表現するこ
とができる。
For example, when the size of a character consists of 256 x 256 (coordinates), one coordinate can be expressed in one byte.

しかし、文字のサイズが、512X512 (座標)に
なると、1つの座標を表わすのに2バイトを必要とする
。
However, when the character size becomes 512×512 (coordinates), 2 bytes are required to represent one coordinate.

したがって、文字の種類やサイズが増加すればする程、
ベクトルフォントを記憶するためのファイル容量が大と
なり、外部記憶装置やROM等に大容量のものが必要に
なる上、コストアップにもなる、という問題がある。
Therefore, as the types and sizes of characters increase,
There is a problem in that the file capacity for storing vector fonts becomes large, requiring a large-capacity external storage device, ROM, etc., and increasing costs.

第5図は、ベクトルフォントデータによって形成される
アウトラインフォント文字の一例を示す図である。図面
において、a = hは位置を示す。
FIG. 5 is a diagram showing an example of outline font characters formed by vector font data. In the drawings, a = h indicates the position.

この第5図では、英小文字「y」のアウトラインフォン
トを示しており、1文字のサイズが、512X512か
ら構成されている場合である。
FIG. 5 shows an outline font for the English lowercase letter "y", where the size of one character is 512x512.

この第5図に示す英小文字「y」について、従来のベク
トルフォントデータの作成方法(記録方法)では1次の
ようなデータを使用している。
Regarding the English lowercase letter "y" shown in FIG. 5, the conventional vector font data creation method (recording method) uses the following data.

第6図は、第5図に示すアウトラインフォント文字のベ
クトルデータの一例を示す図である。図面の左側は10
進法による座標情報、右側は16進法に変換された座標
情報を示す。
FIG. 6 is a diagram showing an example of vector data of the outline font characters shown in FIG. 5. The left side of the drawing is 10
The coordinate information is shown in decimal notation, and the right side shows the coordinate information converted to hexadecimal notation.

まず、位Waの座1f(x、y)は、(200゜200
)であるから、16進法では(c8.c8)となる。
First, the position 1f (x, y) of place Wa is (200°200
), so it becomes (c8.c8) in hexadecimal notation.

同様に、位置すの座標は、(210,190)であるか
ら、16進法では(d2.bE)となる。
Similarly, since the coordinates of the position are (210, 190), they are (d2.bE) in hexadecimal notation.

以下も同様で、位置c = hは、それぞれこの第6図
に示すようなIM標となる。
The same goes for the following, and the positions c=h each become an IM mark as shown in FIG.

次の第7図は、第5図に示したアウトラインフォント文
字について、従来のベクトルフォントのデータ構造の一
例を示す図である。
The following FIG. 7 is a diagram showing an example of the data structure of a conventional vector font for the outline font characters shown in FIG. 5.

従来のベクトルフォントデータの構造は、この第7図に
示すように、データサイズの情報と、属性情報、および
、第6図の右側に示した16進法に変換されたx、yの
座標情報とから構成されている。
The structure of conventional vector font data, as shown in Figure 7, includes data size information, attribute information, and x, y coordinate information converted to hexadecimal as shown on the right side of Figure 6. It is composed of.

ここで、データサイズの情報(ベクトルサイズ)は、文
字のデータバイト数を意味し、また、属性バイトとは、
その座標に付加された例えばカーブ属性等の属性であり
、1バイトが割当てられている。
Here, data size information (vector size) means the number of character data bytes, and attribute bytes:
This is an attribute, such as a curve attribute, added to the coordinates, and 1 byte is allocated to it.

そして、1つの座標を表わすのに、2バイトを使用して
いるので、座標(x、y)を表現するには、4バイトが
必要となり、その属性バイトと合せると、合計5バイト
が必要である。
Since 2 bytes are used to represent one coordinate, 4 bytes are required to represent the coordinates (x, y), and when combined with the attribute byte, a total of 5 bytes are required. be.

したがって、第5図の英小文字「y」の場合、位[a 
” hが8個であり、]つの位置にそれぞれ5バイトが
必要であるから、そのデータ量は、5x8=40 (バ
イト)となる。
Therefore, in the case of the English lowercase letter "y" in Figure 5, the place [a
” Since there are 8 h and 5 bytes are required in each position, the amount of data is 5x8=40 (bytes).

すなわち、従来のベクトルフォントデータ記録方法では
、第5図の英小文字「y」のデータ量は40バイトであ
る9 このように、従来のベクトルフォントデータの記録方法
では、1文字の輪郭パターンを形成する座標データとし
て、多くのデータを必要とするので、ベクトルフォント
を記憶するためのファイル容量が大となり、外部1己憶
装置やROM等に大容量のものが必要になる上、コスト
アップにもなる、という不都合があった。
In other words, in the conventional vector font data recording method, the amount of data for the lowercase English letter "y" in FIG. Since a large amount of coordinate data is required to store the vector font, the file size for storing the vector font becomes large, requiring a large capacity external storage device, ROM, etc., and it also increases costs. There was an inconvenience.

が  じようとする課 この発明のベクトルフォントデータ記録方法では、従来
の記録方法で生じる不都合、すなわち、データ量が多く
なるので、ファイル容量が大となり、外部記憶装置やR
OM等に大容量のものが必要になるばかりでなく、コス
トアップにもなる。
The vector font data recording method of the present invention overcomes the disadvantages that occur with conventional recording methods, namely, the amount of data increases, resulting in a large file capacity and the need for an external storage device or R
Not only does this require a large-capacity OM, etc., but it also increases costs.

という不都合を解決し、方向属性と基準点属性、および
相対座標によってベクトルフォントデータの記述を行う
ことにより、従来の約半分程度のデータ量で文字パター
ンが生成できるようにして、ファイル容量の小型化と低
コスト化を可能にすることを目的とする。
By solving this inconvenience and describing vector font data using direction attributes, reference point attributes, and relative coordinates, character patterns can be generated with about half the amount of data compared to conventional methods, reducing file capacity. The purpose is to enable cost reduction.

課 を解 するための手 この発明では、第1に、 1文字の輪郭を形成するベクトルフォントのフォントデ
ータフォーマットにおいて、 1文字を構成する座標を複数の座標群に分割し、各座標
群毎に基準座標点を設けると共に、該基準座標点に対す
る基準点属性と、前点からの方向を示す方向属性と、座
標データとによって記述するようにしている。
In this invention, firstly, in the font data format of a vector font that forms the outline of one character, the coordinates that make up one character are divided into a plurality of coordinate groups, and each coordinate group is A reference coordinate point is provided, and the reference point attribute for the reference coordinate point, a direction attribute indicating the direction from the previous point, and coordinate data are used to describe the reference coordinate point.

第2に、上記のベクトルフォントデータ記録方法におい
て、 座標データは、15座標以下の移動量のときは、方向属
性に対応する移動量、16座標以上の移動量のときは、
基準座標点に対する相対座標であるようにしている。
Second, in the vector font data recording method described above, the coordinate data is the amount of movement corresponding to the direction attribute when the amount of movement is 15 coordinates or less, and the amount of movement corresponding to the direction attribute when the amount of movement is more than 16 coordinates.
The coordinates are relative to the reference coordinate point.

スユJ1−例一 次に、この発明のベクトルフォントデータ記録方法につ
いて、図面を参照しながら、その実施例を詳細に説明す
る。
Suyu J1 - Example 1 Next, an embodiment of the vector font data recording method of the present invention will be described in detail with reference to the drawings.

この発明のベクトルフォントデータ記録方法では、1つ
の位置を示すベクトルフォントデータを。
In the vector font data recording method of the present invention, vector font data indicating one position is recorded.

従来と同様の属性に付加する情報として、2ビツト構成
の基準点属性のデータと、3ビツト構成の方向属性のデ
ータで構成すると共に、方向属性に対応する相対座標を
示す1バイトあるいは2バイトの座標データによって構
成している。
The information added to the attributes as in the past consists of 2-bit reference point attribute data and 3-bit direction attribute data, as well as 1-byte or 2-byte data indicating relative coordinates corresponding to the directional attribute. It is composed of coordinate data.

第1図は、この発明のベクトルフォントデータ記録方法
によるベクトルフォントの属性データの一実施例を説明
する図で、(1)は基準点属性、(2)は方向属性、(
3)は属性データの構成を示す図である。図面において
、■〜■は基準点である。
FIG. 1 is a diagram illustrating an example of vector font attribute data according to the vector font data recording method of the present invention, in which (1) is a reference point attribute, (2) is a direction attribute, (
3) is a diagram showing the structure of attribute data. In the drawings, ■ to ■ are reference points.

この第1図(1)〜(3)では、基本の文字サイズを、
512X512 (座標)で作成する場合を示している
。
In this Figure 1 (1) to (3), the basic font size is
This shows the case where it is created with 512×512 (coordinates).

この発明のベクトルフォントデータ記録方法では、第1
図(1)に示すように、文字サイズに対応する512X
512 (座標)の座標群を4等分に分割し、分割され
た256X256 (座It)の座標群に、それぞれ基
準点■〜■を設定する。
In the vector font data recording method of this invention, the first
As shown in Figure (1), 512X corresponds to the font size.
The coordinate group of 512 (coordinates) is divided into four equal parts, and the reference points ■ to ■ are set in each of the divided coordinate groups of 256×256 (locus It).

ここで、基準点の座標(xt y)は、■が(0゜O)
、■が(256,O)、■が(0,256)、■が(2
56,256)であるとする。
Here, the coordinates (xt y) of the reference point are (0°O)
, ■ is (256, O), ■ is (0,256), ■ is (2
56,256).

この第1図(1)のように、4等分に分割する場合、各
基準点■〜■を、例えば「0〜3」でそれぞれ表わすた
めに、基準点属性のデータには2ビツトが必要である。
When dividing into four equal parts as shown in Figure 1 (1), 2 bits are required for the reference point attribute data in order to represent each of the reference points ■ to ■, for example, as "0 to 3". It is.

このように基本の文字サイズを1分割する理由は、最大
でも、相対座標のデータを1バイトに収めるためである
。
The reason why the basic character size is divided into one in this way is to fit the relative coordinate data into one byte at most.

また、方向属性としては、第1図(2)に示すように、
「O〜7」の8つに分類する。
In addition, as a direction attribute, as shown in Fig. 1 (2),
It is classified into 8 categories from "0 to 7".

方向属性の「0〜3」は、斜め方向15座標以下の移動
量を方向別に分類した方向属性である。
The direction attribute "0 to 3" is a direction attribute in which the amount of movement of 15 coordinates or less in the diagonal direction is classified by direction.

「4」はX軸方向のみの移動、「5」はY軸方向のみの
移動を示す方向属性である。
"4" is a direction attribute indicating movement only in the X-axis direction, and "5" is a direction attribute indicating movement only in the Y-axis direction.

「6」は斜め方向(16座標以上)の移動を示す方向属
性、「7」は新しいり−ジョンの開始を意味する方向属
性である。
"6" is a direction attribute indicating movement in a diagonal direction (16 coordinates or more), and "7" is a direction attribute indicating the start of a new migration.

方向属性のデータは、「0〜7」の8種類であるから、
3ビツトが必要である。
Since there are 8 types of direction attribute data from 0 to 7,
3 bits are required.

そして、第1図(1)に示した基準点属性のデータと、
第1図(2)に示した方向属性とが、第1図(3)に示
すように、従来と同様の属性バイトに付加される。
Then, the data of the reference point attribute shown in FIG. 1 (1) and
The direction attribute shown in FIG. 1(2) is added to the conventional attribute byte as shown in FIG. 1(3).

このように、1つの位置を記述するために、第1図(1
)〜(3)に示した基準点属性と方向属性とを含む属性
データを使用し、さらに、次に述べる相対座標のデータ
を使用する。
In this way, in order to describe one position, we can use Figure 1 (1
) to (3) are used, and the relative coordinate data described below is used.

第2図は、この発明のベクトルフォントデータ記録方法
において、方向属性に対応する座標データの一実施例を
説明する図で、(1)は方向属性が「0」〜「3」の場
合、(2)は方向属性が「4」と「5ノの場合、(3)
は方向属性が「6」の場合、(4)は方向属性が「7」
の場合を示す図である。
FIG. 2 is a diagram illustrating an example of coordinate data corresponding to a direction attribute in the vector font data recording method of the present invention. 2) is when the direction attributes are "4" and "5", (3)
If the direction attribute is "6", (4) has the direction attribute "7"
FIG.

座標データは、この第2図(1)に示すように、方向属
性がrQJ〜「3」の場合、および、第2図(2)に示
すように、「4」と「5」の場合には1バイトである。
The coordinate data is as shown in Fig. 2 (1) when the direction attribute is rQJ ~ "3", and as shown in Fig. 2 (2) when it is "4" and "5". is 1 byte.

また、方向属性が「6」と「7」の場合には、第2図(
3)と(4)に示すように、2バイトになる。
In addition, when the direction attribute is "6" and "7", Fig. 2 (
As shown in 3) and (4), it is 2 bytes.

そして、方向属性がrQJ〜「3」の場合、すなわち、
移動量が15座標以下の場合には、前点に対する移動量
のデータとなり、第2図(1)に示すように、1バイト
の前半がX軸方向の移動量、後半がY軸方向の移動量を
示す。
Then, if the direction attribute is rQJ ~ "3", that is,
If the amount of movement is 15 coordinates or less, the data is the amount of movement relative to the previous point, and as shown in Figure 2 (1), the first half of one byte is the amount of movement in the X-axis direction, and the second half is the movement in the Y-axis direction. Indicate quantity.

また、方向属性が「4」と「5」の場合、すなわち、X
軸方向またはY軸方向のみの移動の場合には、第2図(
2)に示すように、1バイトが基準点属性に対する相対
座標を示す。
In addition, when the direction attribute is "4" and "5", that is,
In the case of movement only in the axial direction or Y-axis direction, see Figure 2 (
As shown in 2), one byte indicates relative coordinates with respect to the reference point attribute.

さらに、方向属性が「6」の場合、すなわち、斜め方向
へ16座標以上の移動の場合には、第2図(3)に示す
ように、1バイトが基準点属性に対するY軸の相対座標
、他の1バイトが基準点属性に対するY軸の相対座標を
示す。
Furthermore, when the direction attribute is "6", that is, when moving by 16 coordinates or more in the diagonal direction, one byte is the relative coordinate of the Y axis with respect to the reference point attribute, as shown in FIG. 2 (3). Another 1 byte indicates the relative coordinate of the Y axis with respect to the reference point attribute.

最後に、方向属性が「7」の場合、すなわち、リージョ
ンの開始の場合には、同じく1バイトが基準点属性に対
するY軸の相対座標、他の1バイトが基準点属性に対す
るY軸の相対座標を示す。
Finally, if the direction attribute is "7", that is, the start of a region, 1 byte is the relative coordinate of the Y axis to the reference point attribute, and the other 1 byte is the relative coordinate of the Y axis to the reference point attribute. shows.

このように方向属性を設定することによって、各々の方
向属性に対するデータ量は、「0〜5」の方向属性の場
合には1バイト、r6,7Jの方向属性の場合には2バ
イトであるから、結局、最大でも2バイトで済むことに
なる。
By setting the direction attributes in this way, the amount of data for each direction attribute is 1 byte for the direction attributes of "0 to 5" and 2 bytes for the direction attributes of r6 and 7J. , in the end, it only takes 2 bytes at most.

次に、この発明のデータ記録方法によるベクトルデータ
を展開するアルゴリズムを説明する。
Next, an algorithm for developing vector data using the data recording method of the present invention will be explained.

第3図は、この発明のベクトルフォントデータ記録方法
において、方向属性によって座標データを展開するため
のアルゴリズムの一実施例を示する図で、(1)は方向
属性が「0」、(2)は方向属性がrl」、(3)は方
向属性がr2J、(4)は方向属性がr3」、(5)は
方向属性がr4」、(6)は方向属性が「5」、(7)
は方向属性がr6」、(8)は方向属性が「7」の場合
を示す。
FIG. 3 is a diagram showing an example of an algorithm for developing coordinate data according to a direction attribute in the vector font data recording method of the present invention, in which (1) the direction attribute is "0", (2) The direction attribute is rl", (3) the direction attribute is r2J, (4) the direction attribute is r3", (5) the direction attribute is r4", (6) the direction attribute is "5", (7)
shows the case where the direction attribute is "r6", and (8) shows the case where the direction attribute is "7".

方向属性がrQJの場合には、移動量が15座標以下で
あるから、座標データは、前座標に対する移動量を示し
ている。
When the direction attribute is rQJ, the amount of movement is 15 coordinates or less, so the coordinate data indicates the amount of movement with respect to the previous coordinate.

したがって、第3図(1)に示すように、前点のX座標
に指示された移動量を加える。
Therefore, as shown in FIG. 3(1), the specified amount of movement is added to the X coordinate of the previous point.

X座標についても同様である。The same applies to the X coordinate.

方向属性が「1〜3」の場合も、同様に、移動量が15
座標以下であるから、座標データによって加算あるいは
減算を行う。
Similarly, when the direction attribute is "1 to 3", the amount of movement is 15.
Since it is below the coordinates, addition or subtraction is performed depending on the coordinate data.

方向属性が「4」の場合は、X軸方向のみの移動である
から、第3図(5)に示すように、X座標についてのみ
演算を行う。
When the direction attribute is "4", since the movement is only in the X-axis direction, calculations are performed only on the X-coordinate, as shown in FIG. 3 (5).

方向属性が「5」の場合は、Y軸方向のみの移動である
から、第3図(6)に示すように、X座標についてのみ
演算を行う。
When the direction attribute is "5", since the movement is only in the Y-axis direction, calculations are performed only on the X coordinate, as shown in FIG. 3 (6).

方向属性が「6ノの場合は、斜め方向へ16座標以上の
移動であるから、第3図(7)に示すように、x、y座
標の演算を行う。
If the direction attribute is "6", the movement is 16 coordinates or more in the diagonal direction, so the x and y coordinates are calculated as shown in FIG. 3 (7).

方向属性が「7」の場合には、リージョンの開始点を示
しているので、第3図(8)に示すように、基準点のx
、y座標に対して、それぞれ指示された座標データを求
める。
If the direction attribute is "7", it indicates the starting point of the region, so as shown in Figure 3 (8), the reference point x
, y-coordinates, respectively, obtain designated coordinate data.

ここで、この発明のベクトルフォントデータ記録方法に
よるデータの作成手順を説明する。
Here, a data creation procedure using the vector font data recording method of the present invention will be explained.

第4図は、この発明のベクトルフォントデータ記録方法
によって、先の第5図に示したアウトラインフォント文
字を記述する一例を示す図である。
FIG. 4 is a diagram showing an example of writing the outline font characters shown in FIG. 5 earlier by the vector font data recording method of the present invention.

まず、リージョンの始まりである位!aは、基準点■に
含まれるので基準点属性は「O」、方向属性が「7」で
あるから、属性バイトには「07」が入る。
First of all, it is the beginning of the region! Since a is included in the reference point ■, the reference point attribute is "O", and the direction attribute is "7", so "07" is entered in the attribute byte.

そして、座標(x、y)には、基準点■(0゜0)から
の相対座標(c8.c8)がセットされる。
The coordinates (x, y) are set to relative coordinates (c8.c8) from the reference point (0°0).

次に、位Iibは、先の位置aに対して右上の方向であ
るが、基準点■内であるから基準点属性は「O」、方向
属性はrQJであり、属性バイトにはroof、また、
X方向の移動量はA(16進法)、y方向の移動量もA
であるから、座標には(A、A)が、それぞれセットさ
れる。
Next, position Iib is in the upper right direction with respect to the previous position a, but it is within the reference point ■, so the reference point attribute is "O", the direction attribute is rQJ, and the attribute byte is roof and ,
The amount of movement in the X direction is A (hexadecimal), and the amount of movement in the y direction is also A.
Therefore, the coordinates (A, A) are respectively set.

以下も同様で、位置Cは、先の位置すに対して右下の方
向であり、その移動量は16以上である。
The same holds true for the following: position C is in the lower right direction with respect to the previous position, and the amount of movement thereof is 16 or more.

この場合にも、基準点■内であるから基準点属性は「0
」、方向属性は「6」であり、属性バイトにはr06J
、また、その座標はXがFA (16進法)pyがFO
(16進法)であるから、座標には(FA)と(FO)
がセットされる。すなわち、移動量が16以上の場合、
属性バイトが1バイト、座標データが2バイトであるか
ら、データ量は3バイトとなる。
In this case as well, since it is within the reference point ■, the reference point attribute is “0”.
”, the direction attribute is “6”, and the attribute byte is r06J
, and its coordinates are X is FA (hexadecimal) py is FO
(Hexadecimal), so the coordinates are (FA) and (FO)
is set. In other words, if the amount of movement is 16 or more,
Since the attribute byte is 1 byte and the coordinate data is 2 bytes, the amount of data is 3 bytes.

このように、全ての位[a = hに対して、基準点属
性と方向属性、および相対座標に基いて展開すると、第
4図のようなベクトルフォントデータが作成される。
In this way, when all positions [a = h are expanded based on the reference point attribute, direction attribute, and relative coordinates, vector font data as shown in FIG. 4 is created.

そして、この第4図の場合、この発明の記録方法による
ベクトルデータサイズ、すなわち、1文字のデータバイ
ト数は、21バイトである。
In the case of FIG. 4, the vector data size according to the recording method of the present invention, that is, the number of data bytes for one character is 21 bytes.

これに対して、先の第7図に示した従来の記録方法では
、5X8=40 (バイト)の40バイトを必要とする
。
On the other hand, the conventional recording method shown in FIG. 7 requires 40 bytes (5×8=40 (bytes)).

したがって、この発明のベクトルフォントデータ記録方
法によれば、データ量が著しく節減されることになる。
Therefore, according to the vector font data recording method of the present invention, the amount of data can be significantly reduced.

なお、以上の実施例では、1文字のサイズ(基本ベクト
ルサイズ)が、512X512の座標で作成されている
場合について説明した。
In addition, in the above embodiment, the case where the size of one character (basic vector size) is created with coordinates of 512×512 has been described.

そして、相対座標を示す座標データが、最大でも2バイ
トに収まるように、512X512の座標を4等分し、
256X256の座標のそれぞれに、2ビツト構成の基
準点属性のデータを使用している。
Then, divide the 512 x 512 coordinates into four equal parts so that the coordinate data indicating the relative coordinates can fit into 2 bytes at most.
For each of the 256×256 coordinates, 2-bit reference point attribute data is used.

しかし、例えば、256X256の基本ベクトルサイズ
であれば、基準点属性は1つである。
However, for example, if the basic vector size is 256×256, there is only one reference point attribute.

また、1,024X1,024の基本ベクトルサイズで
あれば、基準点属性を16個にすればよい。この場合に
は、基準点属性のデータは4ビツトになる。
Further, if the basic vector size is 1,024×1,024, the number of reference point attributes may be set to 16. In this case, the reference point attribute data is 4 bits.

したがって、基本ベクトルサイズは、どのような構成で
もよいことは明らかであり、実施例の場合に限定される
ものではない。
Therefore, it is clear that the basic vector size may have any configuration and is not limited to the case of the embodiment.

見艷例羞果 この発明のベクトルフォントデータ記録方法では、基準
点属性と方向属性、および相対座標によってベクトルフ
ォントデータを記述する形式であるから、従来の記録方
法によるデータ量の約半分程度の情報量に減少すること
が可能になる。
As a result of the vector font data recording method of the present invention, the vector font data is described using reference point attributes, direction attributes, and relative coordinates, so the amount of information is about half that of the conventional recording method. It becomes possible to reduce the amount.

その結果、従来の記録方法に比べて、アウトラインデー
タのデータ量の大幅な圧縮が可能となり、ファイル容量
の節減と低コスト化とが達成される、という優れた効果
が奏せられる。
As a result, compared to conventional recording methods, it is possible to significantly compress the amount of outline data, resulting in excellent effects such as reduction in file capacity and cost reduction.

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

第1図は、この発明のベクトルフォントデータ記録方法
によるベクトルフォントの属性データの一実施例を説明
する図、 第2図は、この発明のベクトルフォントデータ記録方法
において、方向属性に対応する座標データの一実施例を
説明する図。 第3図は、この発明のベクトルフォントデータ記録方法
において、方向属性によって座標データを展開するため
のアルゴリズムの一実施例を示する図、 第4図は、この発明のベクトルフォントデータ記録方法
によって、先の第5図に示したアウトラインフォント文
字を記述する一例を示す図、第5図は、ベクトルフォン
トデータによって形成されるアウトラインフォント文字
の一例を示す図。 第6図は、第5図に示すアウトラインフォント文字のベ
クトルデータの一例を示す図、第7図は、第5図に示し
たアウトラインフォント文字について、従来のベクトル
フォントのデータ構造の一例を示す図。 特許出願人 株式会社 リ  コ 同代理人弁理士 宮用俊崇f−
FIG. 1 is a diagram illustrating an example of vector font attribute data according to the vector font data recording method of the present invention. FIG. 2 is a diagram illustrating coordinate data corresponding to direction attributes in the vector font data recording method of the present invention. The figure explaining one example of this. FIG. 3 is a diagram showing an example of an algorithm for developing coordinate data according to a direction attribute in the vector font data recording method of the present invention, and FIG. A diagram showing an example of writing the outline font characters shown in FIG. 5 above. FIG. 5 is a diagram showing an example of outline font characters formed by vector font data. 6 is a diagram showing an example of vector data of the outline font characters shown in FIG. 5, and FIG. 7 is a diagram showing an example of the data structure of a conventional vector font for the outline font characters shown in FIG. 5. . Patent applicant: Rico Co., Ltd. Patent attorney: Toshitaka Miyayo f-

Claims (1)

【特許請求の範囲】 1、1文字の輪郭を形成するベクトルフォントのフォン
トデータフォーマットにおいて、1文字を構成する座標
を複数の座標群に分割し、各座標群毎に基準座標点を設
けると共に、該基準座標点に対する基準点属性と、前点
からの方向を示す方向属性と、座標データとによって記
述することを特徴とするベクトルフォントデータ記録方
法。 2、特許請求の範囲第1項記載のベクトルフォントデー
タ記録方法において、 座標データは、15座標以下の移動量のときは、方向属
性に対応する移動量、16座標以上の移動量のときは、
基準座標点に対する相対座標であることを特徴とするベ
クトルフォントデータ記録方法。
[Claims] 1. In the font data format of a vector font that forms the outline of one character, the coordinates forming one character are divided into a plurality of coordinate groups, and a reference coordinate point is provided for each coordinate group, and A vector font data recording method characterized in that a reference point attribute for the reference coordinate point, a direction attribute indicating a direction from the previous point, and coordinate data are used to describe the reference point. 2. In the vector font data recording method according to claim 1, when the coordinate data is a movement amount of 15 coordinates or less, the movement amount corresponds to the direction attribute, and when the movement amount is 16 coordinates or more, the coordinate data is
A vector font data recording method characterized in that the coordinates are relative to a reference coordinate point.
JP16156390A 1990-06-20 1990-06-20 Vector font data recording method Ceased JPH0452162A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP16156390A JPH0452162A (en) 1990-06-20 1990-06-20 Vector font data recording method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16156390A JPH0452162A (en) 1990-06-20 1990-06-20 Vector font data recording method

Publications (1)

Publication Number Publication Date
JPH0452162A true JPH0452162A (en) 1992-02-20

Family

ID=15737494

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16156390A Ceased JPH0452162A (en) 1990-06-20 1990-06-20 Vector font data recording method

Country Status (1)

Country Link
JP (1) JPH0452162A (en)

Similar Documents

Publication Publication Date Title
US4897638A (en) Method for generating character patterns with controlled size and thickness
US5949435A (en) Digital type font providing typographic feature transformation capability
WO1995034047A1 (en) System and methods for spacing, storing and recognizing electronic representations of handwriting, printing and drawings
JPH0244482A (en) Raster conversion
JPH06149212A (en) Character generation method and apparatus
JP3628523B2 (en) Information processing apparatus and recording medium recording pattern generation program
JPH0351894A (en) Information processor equipped with character pattern generating function using vector font
JPH0736433A (en) Character database creation device
JPS6395590A (en) Hand-written character recognition device
JP3347756B2 (en) Character generation method and device
JP2908194B2 (en) Character transformation control method
JPH0449119B2 (en)
JP2835056B2 (en) High quality character pattern generation method
JPH0383183A (en) Broken line drawing system
JP2572441B2 (en) Form-specific figure creation device
JPH02141797A (en) Character pattern generating device
JPH05204360A (en) Method and device for character generation
JPS63108392A (en) Character processor
JPH067311B2 (en) Character pattern generator
JPH0743584B2 (en) Data converter
JPH0433179A (en) Tiling pattern generator
JPS6352188A (en) Font storage system
JPH0127469B2 (en)
JPH02287598A (en) Character pattern generation system
JPS62194585A (en) Character pattern generation display device