JP2004258590A - Device and program for character font processing - Google Patents

Device and program for character font processing Download PDF

Info

Publication number
JP2004258590A
JP2004258590A JP2003052302A JP2003052302A JP2004258590A JP 2004258590 A JP2004258590 A JP 2004258590A JP 2003052302 A JP2003052302 A JP 2003052302A JP 2003052302 A JP2003052302 A JP 2003052302A JP 2004258590 A JP2004258590 A JP 2004258590A
Authority
JP
Japan
Prior art keywords
character
font
bitmap
quality
line width
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
JP2003052302A
Other languages
Japanese (ja)
Inventor
Tomohiro Mukai
友弘 向井
Michihiro Nagaishi
道博 長石
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003052302A priority Critical patent/JP2004258590A/en
Publication of JP2004258590A publication Critical patent/JP2004258590A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Dot-Matrix Printers And Others (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To quantitatively decide quality regarding conversion processing of a character font. <P>SOLUTION: When an arbitrary vector font is converted into an arbitrary bit map font by arbitrary conversion algorithm, a character font processor 1 can quantitatively decide how easy to read characters of the bit map font as its conversion result are (quality of the character font). Therefore, how easy to read the characters are can automatically be compared on the processor, and a character font which is easier to read can be selected without any human operation. Namely, the character font processor 1 can quantitatively decide the algorithm for converting the vector font into the bit map font or the bit map font as the conversion result, or their combination. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、文字フォントを変換するための文字フォント処理装置および文字フォント処理プログラムに関する。
【0002】
【従来の技術】
近年、情報処理装置の性能が向上したことに伴い、文字の形状を輪郭線で表すベクトルフォントによって文字データが取り扱われるようになっている。
ベクトルフォントは、輪郭によって文字の形状を保持していることから、拡大・縮小した場合や解像度を変化させた場合にも、ジャギーが発生しない等、文字の形が変化しないという特徴を有する。
【0003】
一方、ベクトルフォントは、画面表示や印刷を行う場合、表示あるいは印刷するサイズに合わせて、ドットの集合によって表されるビットマップフォントに変換(ラスタライズ)する必要がある。
ここで、ベクトルフォントをビットマップフォントに変換するためには、種々の方法を用いることが可能であるが、ビットマップフォントに変換した結果、より読みやすい形態のフォントとする必要がある。
【0004】
ベクトルフォントを単純に解像度変換し、ビットマップフォントとした場合、読みやすさの点で問題があるため、一般に、フォントデザイナーと呼ばれる専門家が実際に文字をディスプレイに表示しながら、手作業によってビットマップフォントデータを作成している。
なお、ベクトルフォントをビットマップフォントに変換する技術としては、特開平7−64533号公報に記載された技術が知られている。
【0005】
特開平7−64533号公報に記載された技術によれば、拡大・縮小した場合にも、線幅を一定とする調整等が可能であり、ベクトルフォントから比較的質の高いと考えられるビットマップフォントを自動的に作成することが可能である。
【0006】
【特許文献1】
特開平7−64533号公報
【0007】
【発明が解決しようとする課題】
しかしながら、特開平7−64533号公報に記載された技術を含め、従来の技術においては、作成されたビットマップフォントの質を自動的に評価することはできないため、最終的な質の判断は、フォントデザイナー等、人手に頼らざるを得ない。
【0008】
なお、ビットマップフォントの質を判断する条件については、解像度、コントラスト等の光学的条件、文字の高さに対する文字線幅の比率等が判断要素となることが知られている。
しかし、個別の文字について、定量的な条件に基づき、文字の読みやすさ(質)を自動的に判断することは困難であった。特に、任意のベクトルフォントをビットマップフォントに変換した場合に、その文字の読みやすさを判断することは困難であった。
【0009】
本発明の課題は、文字フォントの変換処理に関する質を定量的に判定可能とすることである。
【0010】
【課題を解決するための手段】
以上の課題を解決するため、本発明は、
可視的に表されるビットマップフォントの質を判定可能な文字フォント処理装置であって、判定対象となるビットマップフォントが可視的に表された場合(例えば、表示装置に表示された場合や印刷装置によって印刷された場合)の文字の高さおよび文字線幅を抽出する文字特性抽出手段(例えば、図6の制御部20あるいは図9の制御部120)と、前記文字特性抽出手段によって抽出された文字の高さおよび文字線幅に基づいて、判定対象となるビットマップフォントの質(文字の読みやすさ)を判定する判定手段(例えば、図6の制御部20あるいは図9の制御部120)とを備えることを特徴としている。
【0011】
また、前記判定手段は、文字フォントの質を示す評価値“E”を次式によって算出し、該評価値に基づいて、前記ビットマップフォントの質を判定することを特徴としている。
【0012】
【数2】

Figure 2004258590
ただし、“h”は文字の高さ、“x”は文字の横線幅、“y”は文字の縦線幅である。
ここで、上式は、文字の読みやすさに関する心理実験結果を近似するための代表的な式であり、上式と厳密に同一性を有しない場合であっても、上式と一定の類似性を有する式(例えば、評価値“E”に大きな影響を与えない程度に定数を加えた式等)を始め、心理実験結果を近似可能な式であれば、他の式を用いることも可能である。
【0013】
また、前記文字特性抽出手段は、少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されたビットマップフォントそれぞれについて、文字の高さおよび文字線幅を抽出し、前記判定手段は、抽出された文字の高さおよび文字線幅に基づいて、該ビットマップフォントそれぞれの質を判定し、該判定結果に基づいて、前記ビットマップフォントそれぞれの中から、より質の高いビットマップフォントを選択することを特徴としている。
【0014】
また、前記文字特性抽出手段は、任意にデザインされたビットマップフォントについて、文字の高さおよび文字線幅を抽出し、該ビットマップフォントについての前記判定手段の判定結果に基づいて、判定対象となるビットマップフォントの質に関する情報(例えば、文字の読みやすさを段階的に表したパラメータや、“E”の値そのもの等)を表示することを特徴としている。
【0015】
また、判定対象となるビットマップフォントの文字もしくは文字列を単位として、ビットマップフォントの質を判定可能であることを特徴としている。
即ち、ビットマップフォントの質の判定を文字毎に行うことに加え、文字列に含まれる文字それぞれの文字の高さおよび文字線幅の平均等を用いて、文字列全体についてビットマップフォントの質の判定を行うことも可能である。
【0016】
また、本発明は、
ベクトルフォントをビットマップフォントに変換可能な文字フォント処理装置であって、少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されるビットマップフォントそれぞれについて、文字が可視的に表される場合の所定条件と該ビットマップフォントの質とが対応付けられた文字フォント適性テーブルを記憶している記憶手段と、文字が可視的に表される場合の所定条件と前記文字フォント適性テーブルとに基づいて、変換対象であるベクトルフォントをより質の高いビットマップフォントに変換する変換手段とを備えることを特徴としている。
【0017】
また、前記文字フォント適性テーブルは、可視的に表された場合の文字の高さおよび文字線幅に基づいて、該文字に係るビットマップフォントの質を判定することにより作成されていることを特徴としている。
また、本発明は、
可視的に表されるビットマップフォントの質を判定するための文字フォント処理プログラムであって、判定対象となるビットマップフォントが可視的に表された場合の文字の高さおよび文字線幅を抽出する文字特性抽出機能と、前記文字特性抽出機能によって抽出された文字の高さおよび文字線幅に基づいて、判定対象となるビットマップフォントの質を判定する判定機能とをコンピュータに実現させることを特徴としている。
【0018】
なお、前記判定機能は、ビットマップフォントの質を示す評価値“E”を次式によって算出し、該評価値に基づいて、前記ビットマップフォントの質を判定することとしてもよい。
【0019】
【数3】
Figure 2004258590
ただし、“h”は文字の高さ、“x”は文字の横線幅、“y”は文字の縦線幅である。
また、前記文字特性抽出機能は、少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されたビットマップフォントそれぞれについて、文字の高さおよび文字線幅を抽出し、前記判定機能は、抽出された文字の高さおよび文字線幅に基づいて、該ビットマップフォントそれぞれの質を判定し、該判定結果に基づいて、前記ビットマップフォントそれぞれの中から、より質の高いビットマップフォントを選択することとしてもよい。
【0020】
また、前記文字特性抽出機能は、任意にデザインされたビットマップフォントについて、文字の高さおよび文字線幅を抽出し、該ビットマップフォントについての前記判定機能の判定結果に基づいて、判定対象となるビットマップフォントの質に関する情報を表示することとしてもよい。
また、判定対象となるビットマップフォントの文字もしくは文字列を単位として、ビットマップフォントの質を判定可能であることとしてもよい。
【0021】
また、本発明は、
ベクトルフォントをビットマップフォントに変換するための文字フォント処理プログラムであって、少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されるビットマップフォントそれぞれについて、文字が可視的に表される場合の所定条件と該ビットマップフォントの質とが対応付けられた文字フォント適性テーブルと、文字が可視的に表される場合の所定条件とに基づいて、変換対象であるベクトルフォントをより質の高いビットマップフォントに変換する変換機能をコンピュータに実現させることを特徴としている。
【0022】
なお、前記文字フォント適性テーブルは、可視的に表された場合の文字の高さおよび文字線幅に基づいて、該文字に係るビットマップフォントの質を判定することにより作成されているものとしてもよい。
本発明によれば、任意のベクトルフォントが任意の変換アルゴリズムに基づいてビットマップフォントに変換された場合に、その変換結果であるビットマップフォントの文字の読みやすさ(文字フォントの質)を定量的に判定可能である。
【0023】
したがって、文字の読みやすさを装置上で自動的に比較することができ、より読みやすい文字フォントを人手を介することなく選択することが可能となる。
即ち、本発明によって、ベクトルフォントをビットマップフォントに変換するアルゴリズムあるいは変換結果であるビットマップフォントまたはそれらの組合せの質を定量的に判定することが可能となる。
【0024】
【発明の実施の形態】
以下、図を参照して本発明の実施の形態を説明する。
(第1の実施の形態)
初めに、本発明の第1の実施の形態について説明する。
まず、本発明に係る文字フォント処理方法について説明する。
【0025】
本発明に係る文字フォント処理方法は、文字の読みやすさを文字の高さ“h”と、文字線幅(横を“x”、縦を“y”とする)との関係に基づいて判定する。
図1は、文字の高さおよび文字線幅(x、y)の説明図である。なお、図1においては、“勉”の文字を例に挙げて、文字の高さhと文字線幅(x、y)とを示している。
【0026】
一般に、文字の読みやすさには主観的要因が含まれることから、文字が読みやすいか否かの判定基準は統計的に定められるものである。
そこで、文字の読みやすさに関する心理実験を行った結果、文字の読みやすさに関する特性Eは、文字の高さhと文字線幅(x、y)とを要素として次式によって近似できることが判明した。
【0027】
【数4】
Figure 2004258590
(1)式に関し、一般に、x,y,hの値が文字を表示するために妥当な一定範囲においては、評価値Eの値が小さい程、文字は読みやすいものとなる。
また、図2および図3は、文字の読みやすさに関する心理実験結果(破線)と(1)式に基づく特性(実線)との関係を示す図である。なお、図2および図3においては、評価値Eに基づいて、新たに文字の読みやすさを示す評価値E’を規定しており、横軸は文字の解像度、縦軸は評価値E’である。
【0028】
また、図2および図3において、評価値E’は、文字の読みやすさを段階的に示す値であり、その値が大きい程、文字が読みやすいことを示している。
さらに、図2は、ゴシック体のフォントについて心理実験を行った結果を示し、図3は、明朝体のフォントについて心理実験を行った結果を示している。
図2および図3において、心理実験結果は、異なる解像度の文字列を被験者が見た場合の主観評価であり、その心理実験結果を示す破線と、それらの文字列に関する(1)式の特性(理論値)を示す実線とは、相関関係が高いものとなっている。
【0029】
したがって、文字の読みやすさは、(1)式によって定量的に判定することが可能である。
即ち、ベクトルフォントを種々のアルゴリズムによってビットマップフォントに変換した場合に、変換結果である文字フォントが読みやすいものであるか否かを(1)式に基づいて予測することが可能となる。
【0030】
具体的には、変換結果であるビットマップフォントについて、後述する方法で文字の高さhと文字線幅(x、y)を取得する。そして、取得した“h”,“x”,“y”から(1)式を用いて“E”を算出し、算出された“E”の大きさによって、文字フォントの読みやすさを判断することが可能である。なお、“E”が小さいほど文字は読みやすいものであると判定できるが、“h”,“x”,“y”の値は、文字として実用される所定の範囲を対象としている。
【0031】
ここで、文字の高さおよび文字線幅を取得する従来技術について説明する。
図4は、“間”の文字について、線分の射影を行うことにより、文字の高さおよび文字線幅を取得する過程を示す説明図である。
図4において、まず、図4(a)に示す“間”の文字に含まれる線分全てについて、縦方向および横方向へ射影する。ここで、「射影」とは、線分を構成する画素を縦方向および横方向に詰め、積算することを意味する。
【0032】
図4(b)は、“間”の文字に含まれる線分を縦方向に射影した結果を示す図である。図4(b)においては、縦線の存在する部分の射影が突出する結果となっている。
次に、図4(b)に示す射影において、積算された画素数のしきい値を設定し、そのしきい値を上回る部分に注目すると、主要な線分に相当する射影が抽出される。この射影の幅を“間”の文字の縦線幅“x”とする。
【0033】
ここで、図4(c)に示すように、抽出される部分が複数存在する場合、これらの線分幅の平均値を縦線幅とすることができ、あるいは、抽出された複数の部分の線分幅における中央値(メディアン)を縦線幅とすることができる。
さらに、図4(b)に示すような射影を横方向にも行い、横線幅“y”を得ると共に、横方向の射影において画素が分布する幅を文字の高さ“h”とする。
【0034】
また、図4に示す方法の他、文字に含まれるストローク幅を利用して、文字の高さおよび文字線幅を取得することが可能である。
以下、ストローク幅を利用して文字の高さおよび文字線幅を取得する方法について概説する。
図5は、“間”の文字について、ストローク幅を利用して、文字の高さおよび文字線幅を取得する過程を示す説明図である。
【0035】
図5において、“間”の文字を左から右の方向へ走査し、画素が連続して存在する距離をストローク幅として検出する。このとき、文字上の複数の高さにおいて走査を行い、文字全体にわたりストローク幅を検出する。また、文字の構造は複雑であることから、ある高さで走査する場合、文字の外側から走査して初めに検出されたストローク幅のみを採用することが可能である。
【0036】
そして、最も出現頻度の高いストローク幅を縦線幅“x”とする。また、同様に、“間”の文字を上から下の方向へ走査し、横線幅“y”を得ると共に、横方向の射影において画素が分布する幅を文字の高さ“h”とする。
図5に示す方法によれば、文字の形状を崩すことなく、文字に含まれる画素を直接走査するため、高い精度で文字の高さおよび文字線幅を取得することが可能である。
【0037】
一方、図5に示す方法は、図4に示す方法に比べ、やや複雑な過程を経るため、対象となる文字数が多くなると文字の高さおよび文字線幅の算出に相当の時間を要することとなる。
したがって、処理条件に応じて、取得される文字の高さおよび文字線幅の精度を優先する場合にはストローク幅を利用する方法、処理時間を優先する場合には射影を行う方法を適宜選択することが可能である。
【0038】
次に、本発明に係る文字フォント処理装置について説明する。
まず、構成を説明する。
図6は、本実施の形態に係る文字フォント処理装置1の機能構成を示すブロック図である。文字フォント処理装置1は、例えば、一般的なPC(Personal Computer)等、ベクトルフォントからビットマップフォントに変換して表示や印刷を行う装置である。
【0039】
図6において、表示装置1は、入力部10と、制御部20と、記憶部30と、RAM(Random Access Memory)40と、VRAM(Video Random Access Memory)50と、表示部60とを含んで構成される。
入力部10は、カーソルキーや数字入力キー等を備えたキーボード及びマウス等のポインティングデバイスを含み、キーボードにおいて押下されたキーの押下信号やマウスの位置信号を制御部20に出力する。
【0040】
制御部20は、文字フォント処理装置1全体を制御するもので、入力部10から入力される各種の指示信号に従って、記憶部30に記憶された各種処理に関するプログラムを読み出して実行する。例えば、制御部20は、文字フォント処理装置1が起動された際に、使用頻度が高いと想定される所定のビットマップフォントをベクトルフォントから予め変換し、RAM40に記憶する処理(後述するシステムフォント変換処理)を実行したり、ユーザあるいはアプリケーションによって指示入力された、ベクトルフォントからビットマップフォントへの変換処理(後述する逐次変換処理)を実行したりする。そして、制御部20は、各種プログラムを実行した処理結果を記憶部30やRAM40の所定の領域に格納したり、表示部60に表示させたりする。
【0041】
記憶部30は、フラッシュROM等の不揮発性の半導体メモリで構成され、システムフォント変換処理あるいは逐次変換処理に関するプログラムおよび文字フォント処理装置1の制御のための各種処理に関するプログラムを記憶している。また、記憶部30は、ベクトルフォントをビットマップフォントに変換する複数の変換処理プログラムを記憶しており、これら複数の変換処理プログラムは、ベクトルフォントをビットマップフォントに変換する複数のアルゴリズムそれぞれに対応している。
【0042】
RAM40は、SDRAM(Synchronous Dynamic Random Access Memory)等の揮発性のメモリによって構成され、文字フォント処理装置1が動作する際に生成される種々のデータを一時的に保持する。
また、RAM40は、システムフォント変換処理あるいは逐次変換処理によって変換されたビットマップフォントを、文字の表示あるいは印刷が行われる際の参照データとして保持する。
【0043】
VRAM50は、表示部60で表示される表示データを格納するビデオメモリである。
表示部60は、例えばドットマトリクスタイプのカラー液晶表示セルやCRT(Cathode Ray Tube)等から構成され、VRAM50に格納された各種データを表示する。
【0044】
次に、動作を説明する。
初めに、システムフォント変換処理について説明する。
図7は、文字フォント処理装置1の制御部20が実行するシステムフォント変換処理を示すフローチャートである。システムフォント変換処理は、デスクトップ画面において表示される文字等、使用頻度が高い文字を予めビットマップフォントに変換するため、文字フォント処理装置1が起動されることに対応して実行される。
【0045】
図7において、システムフォント変換処理が開始されると、制御部20は、変換対象となるベクトルフォントを記憶部30から読み込み(ステップS1)、さらに、文字フォントの変換処理に使用可能な変換処理プログラムを記憶部30から読み込む(ステップS2)。
このとき、変換対象となるベクトルフォントが指定されている場合、制御部20は、指定されたベクトルフォントを読み込み、変換対象となるベクトルフォントが指定されていない場合、制御部20は、変換可能なベクトルフォントを複数読み込み、変換結果がより高い質となるものを最終的に選択することが可能である。
【0046】
次に、制御部20は、ステップS1において読み込んだベクトルフォントを、ステップS2において読み込んだ変換処理プログラムそれぞれによって処理し(ステップS3)、各変換結果であるビットマップフォントについて、その読みやすさ(文字の質)を比較する(ステップS4)。
ここで、ビットマップフォントの読みやすさを比較する際には、上述のように、(1)式に基づいて、文字の高さhおよび文字線幅(x、y)からパラメータEを算出し、“E”の大小を比較することによって、装置上で自動的に文字の読みやすさを判定することが可能である。
【0047】
続いて、制御部20は、ステップS4における比較の結果、最も読みやすいと判定されたビットマップフォントを選択し(ステップS5)、システムフォントとして組み込む(ステップS6)。
そして、制御部20は、システムフォント変換処理を終了する。
次に、逐次変換処理について説明する。
【0048】
図8は、文字フォント処理装置1の制御部20が実行する逐次変換処理を示すフローチャートである。逐次変換処理は、アプリケーションにおいて種々の大きさや種類の文字を表示する場合に、より読みやすいビットマップフォントを文字単位で判定し、選択する処理である。また、逐次変換処理は、アプリケーションの使用中、ユーザが文字フォントの変換を指示入力した場合、あるいは、アプリケーションが文字フォントの変換を自動的に行う場合に実行される。
【0049】
図8において、逐次変換処理が開始されると、制御部20は、表示される文字の解像度および表示される文字フォントの種類を取得する(ステップS101)。
ここで、表示される文字の解像度は、文字フォント処理装置1の表示部60の解像度および表示される文字の大きさに基づいて算出することが可能である。また、表示される文字フォントの種類は、ユーザあるいはアプリケーションによって指示された文字フォントの種類(例えば、“ゴシック体”あるいは“明朝体”等)である。
【0050】
次に、制御部20は、ステップS101において取得した文字フォントの種類に基づいて、変換対象となるベクトルフォントを選択し(ステップS102)、文字フォントの変換処理に使用可能な変換処理プログラムを記憶部30から全て読み込む(ステップS103)。
そして、制御部20は、評価対象である各文字について、ステップS102において選択したベクトルフォントを、ステップS103において読み込んだ変換処理プログラムそれぞれによって処理し(ステップS104)、各変換結果であるビットマップフォントについて、その読みやすさを(1)式に基づいて比較する(ステップS105)。
【0051】
続いて、制御部20は、ステップS105における比較の結果、最も読みやすいと判定されたビットマップフォントを選択し(ステップS106)、選択したビットマップフォントでその文字を表示(あるいは印刷)する(ステップS107)。
以上のように、本実施の形態に係る文字フォント処理装置1は、任意のベクトルフォントが任意の変換アルゴリズムに基づいてビットマップフォントに変換された場合に、その変換結果であるビットマップフォントの文字の読みやすさ(文字フォントの質)を定量的に判定可能である。
【0052】
したがって、文字の読みやすさを装置上で自動的に比較することができ、より読みやすい文字フォントを人手を介することなく選択することが可能となる。
即ち、文字フォント処理装置1によって、ベクトルフォントをビットマップフォントに変換するアルゴリズムあるいは変換結果であるビットマップフォントまたはそれらの組合せの質を定量的に判定することが可能となる。
【0053】
なお、本実施の形態においては、文字フォント処理装置1として、一般的なPC等を想定して説明したが、より低い処理能力を有する携帯電話等とすることも可能である。より処理能力の低い機器においては、ベクトルフォントをビットマップフォントに変換する処理を行うことは現実的でないため、より処理能力の高い機器において、携帯電話等の機器を想定してシステムフォント変換処理を実行し、読みやすいと判定されたビットマップフォントを携帯電話等の機器に組み込むといった形態も可能である。
【0054】
また、本実施の形態に示す逐次変換処理において、変換対象となるベクトルフォントを変換処理プログラムそれぞれによって実際に処理し、その処理結果であるビットマップフォントについて読みやすいと判定されたものを選択することとして説明したが、その判定結果をテーブル形式で予め記憶しておき、そのテーブル(文字フォント適性テーブル)を参照してビットマップフォントを選択することとしてもよい。
【0055】
即ち、種々のベクトルフォントをビットマップフォントに変換した場合の文字の読みやすさを、文字が表示される装置の解像度および表示される文字の大きさに応じて予め取得し、文字フォント適性テーブルとして記憶しておく。そして、対象となるベクトルフォントが選択された場合に、解像度および文字の大きさに基づいて、文字フォント適性テーブルを参照して所定のビットマップフォントを特定することで、不要な変換処理を行うことなく、読みやすいビットマップフォントに変換可能な変換処理プログラムによってベクトルフォントを処理することが可能となる。
(第2の実施の形態)
次に、本発明の第2の実施の形態について説明する。
【0056】
本実施の形態においては、本発明を適用したフォントデザイン支援装置について説明する。
まず、構成を説明する。
図9は、本実施の形態に係るフォントデザイン支援装置2の機能構成を示すブロック図である。フォントデザイン支援装置2は、ベクトルフォントから変換されるビットマップフォントをデザインする際に、デザインされたビットマップフォントの読みやすさについて、フォントデザイナー等に客観的な評価材料を提示する装置である。
【0057】
図9において、フォントデザイン支援装置2の機能構成は、図6に示す文字フォント処理装置1とほぼ同様であるため、異なる部分である制御部120、記憶部130およびRAM140についてのみ説明し、他の部分については説明を省略する。
制御部120は、フォントデザイン支援装置2全体を制御するもので、入力部110から入力される各種の指示信号に従って、記憶部130に記憶された各種処理に関するプログラムを読み出して実行する。例えば、制御部120は、後述するフォントデザイン評価処理の実行が指示入力された場合に、記憶部130からフォントデザイン評価処理プログラムを読み出して実行する。そして、制御部120は、各種プログラムを実行した処理結果を記憶部130やRAM140の所定の領域に格納したり、表示部160に表示させたりする。
【0058】
記憶部130は、フラッシュROM等の不揮発性の半導体メモリで構成され、フォントデザイン評価プログラムおよびフォントデザイン支援装置2の制御のための各種処理に関するプログラムを記憶している。
RAM140は、SDRAM(Synchronous Dynamic Random Access Memory)等の揮発性のメモリによって構成され、フォントデザイン支援装置2が動作する際に生成される種々のデータを一時的に保持する。
【0059】
次に、動作を説明する。
図10は、フォントデザイン支援装置2の制御部120が実行するフォントデザイン評価処理を示すフローチャートである。フォントデザイン評価処理は、デザインされたビットマップフォントの読みやすさを判定するための処理であり、フォントデザイナー等、フォントデザイン支援装置2のユーザが処理の実行を指示入力することに対応して起動される。
【0060】
図10において、フォントデザイン評価処理が開始されると、制御部120は、評価対象となるビットマップフォントの入力を受け付ける(ステップS201)。このとき、評価対象とするビットマップフォントとして、一文字を入力することや、複数の文字を入力することが可能である。
そして、評価対象となるビットマップフォントが入力されると(ステップS202)、制御部120は、入力されたビットマップフォントの文字から、文字の高さおよび文字線幅を取得し(ステップS203)、(1)式に基づいて文字の読みやすさを示すパラメータ“E”を算出する(ステップS204)。
【0061】
そして、制御部120は、算出されたパラメータ“E”に基づいて、入力されたビットマップフォントの読みやすさを表示する(ステップS205)。
このとき、ビットマップの読みやすさを表示する方法としては、算出された“E”の値をそのまま表示することや、算出された“E”に応じて段階的な評価値を設定しておき、その評価値を表示すること等が可能である。
【0062】
そして、制御部120は、フォントデザイン評価処理の終了が指示されたか否かの判定を行い(ステップS206)、フォントデザイン評価処理の終了が指示されていないと判定した場合、ステップS201の処理に移行する。
一方、フォントデザイン評価処理の終了が指示されたと判定した場合、制御部120は、フォントデザイン評価処理を終了する。
【0063】
以上のように、本実施の形態に係るフォントデザイン支援装置2は、デザインされたビットマップフォントの読みやすさを、定量的に評価した結果を表示する。
したがって、従来、フォントデザイナー等の主観によって行っていた文字の読みやすさの判断を、客観的に行うことが可能となり、より読みやすいと考えられるビットマップフォントをデザインすることが可能となる。
【0064】
なお、一のベクトルフォントを同一種類(例えば、明朝体あるいはゴシック体等)のビットマップフォントに変換する変換アルゴリズムは複数存在し、それらによる変換結果であるビットマップフォントを評価することは、換言すれば、ベクトルフォントからビットマップフォントに変換するアルゴリズムを評価することと同等である。
【図面の簡単な説明】
【図1】文字の高さおよび文字線幅(x、y)の説明図である。
【図2】ゴシック体のフォントについて、文字の読みやすさに関する心理実験結果(破線)と(1)式に基づく特性(実線)との関係を示す図である。
【図3】明朝体のフォントについて、文字の読みやすさに関する心理実験結果(破線)と(1)式に基づく特性(実線)との関係を示す図である。
【図4】“間”の文字について、線分の射影を行うことにより、文字の高さおよび文字線幅を取得する過程を示す説明図である。
【図5】“間”の文字について、ストローク幅を利用して、文字の高さおよび文字線幅を取得する過程を示す説明図である。
【図6】文字フォント処理装置1の機能構成を示すブロック図である。
【図7】文字フォント処理装置1の制御部20が実行するシステムフォント変換処理を示すフローチャートである。
【図8】文字フォント処理装置1の制御部20が実行する逐次変換処理を示すフローチャートである。
【図9】フォントデザイン支援装置2の機能構成を示すブロック図である。
【図10】フォントデザイン支援装置2の制御部120が実行するフォントデザイン評価処理を示すフローチャートである。
【符号の説明】
1 文字フォント処理装置,2 フォントデザイン支援装置,10,110 入力部,20,120 制御部,30,130 記憶部,40,140 RAM,50,150 VRAM,60,160 表示部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a character font processing device and a character font processing program for converting a character font.
[0002]
[Prior art]
In recent years, with the improvement in the performance of information processing apparatuses, character data has been handled by a vector font that represents the shape of a character by an outline.
Since the vector font retains the shape of the character by its outline, the character has the characteristic that the shape of the character does not change, such as no jaggies, even when the size is enlarged or reduced or the resolution is changed.
[0003]
On the other hand, when displaying or printing a vector font, it is necessary to convert (rasterize) a vector font to a bitmap font represented by a set of dots according to the size to be displayed or printed.
Here, various methods can be used to convert a vector font into a bitmap font. However, as a result of the conversion into the bitmap font, it is necessary to obtain a font in a more readable form.
[0004]
If a vector font is simply converted to a resolution and converted to a bitmap font, there is a problem in readability.In general, an expert called a font designer manually displays the characters on the display while manually converting the bits. Creating map font data.
As a technique for converting a vector font into a bitmap font, a technique described in Japanese Patent Application Laid-Open No. 7-64533 is known.
[0005]
According to the technique described in Japanese Patent Application Laid-Open No. 7-64533, it is possible to adjust the line width to be constant even when the image is enlarged or reduced. Fonts can be created automatically.
[0006]
[Patent Document 1]
JP-A-7-64533
[0007]
[Problems to be solved by the invention]
However, in the conventional technology including the technology described in JP-A-7-64533, the quality of the created bitmap font cannot be automatically evaluated. You have to rely on human resources such as font designers.
[0008]
It is known that conditions for determining the quality of a bitmap font include optical conditions such as resolution and contrast, a ratio of a character line width to a character height, and the like.
However, it has been difficult to automatically determine the legibility (quality) of each character based on quantitative conditions. In particular, when an arbitrary vector font is converted to a bitmap font, it has been difficult to determine the legibility of the character.
[0009]
An object of the present invention is to make it possible to quantitatively determine the quality of a character font conversion process.
[0010]
[Means for Solving the Problems]
In order to solve the above problems, the present invention provides
A character font processing device capable of judging the quality of a visually represented bitmap font, wherein the bitmap font to be judged is visually represented (for example, when it is displayed on a display device or printed. The character characteristic extracting means (for example, the control unit 20 in FIG. 6 or the control unit 120 in FIG. 9) for extracting the height and character line width of the character (when printed by the apparatus) and the character characteristic extracting means Determination means (for example, the control unit 20 in FIG. 6 or the control unit 120 in FIG. 9) for determining the quality (readability of the character) of the bitmap font to be determined based on the height of the character and the width of the character line. ).
[0011]
Further, the determination means calculates an evaluation value “E” indicating the quality of the character font by the following equation, and determines the quality of the bitmap font based on the evaluation value.
[0012]
(Equation 2)
Figure 2004258590
Here, "h" is the height of the character, "x" is the horizontal line width of the character, and "y" is the vertical line width of the character.
Here, the above equation is a typical equation for approximating the result of a psychological experiment regarding the legibility of characters, and even if the above equation is not exactly identical, a certain similarity to the above equation is obtained. It is also possible to use other expressions as long as they can approximate the results of psychological experiments, such as expressions having a characteristic (for example, expressions in which a constant is added so as not to greatly affect the evaluation value "E"). It is.
[0013]
Further, the character characteristic extracting means extracts a character height and a character line width for each bitmap font converted from at least one vector font by a plurality of conversion algorithms, and the determining means Determining the quality of each of the bitmap fonts based on the height and the character line width, and selecting a higher quality bitmap font from each of the bitmap fonts based on the determination result. Features.
[0014]
In addition, the character characteristic extracting unit extracts a character height and a character line width from an arbitrarily designed bitmap font, and determines a character to be determined based on a determination result of the determining unit for the bitmap font. It is characterized by displaying information relating to the quality of the bitmap font (for example, a parameter indicating the readability of characters in a stepwise manner, the value of “E” itself, etc.).
[0015]
Further, it is characterized in that the quality of the bitmap font can be determined in units of characters or character strings of the bitmap font to be determined.
That is, in addition to determining the quality of the bitmap font for each character, the quality of the bitmap font is determined for the entire character string by using the average of the height and character line width of each character included in the character string. Can also be determined.
[0016]
Also, the present invention
A character font processing device capable of converting a vector font to a bitmap font, wherein a predetermined condition is provided in which characters are visually represented for each bitmap font converted from at least one vector font by a plurality of conversion algorithms. Storage means for storing a character font suitability table in which the character font suitability is associated with the bitmap font quality, and conversion based on predetermined conditions when characters are visually represented and the character font suitability table. A conversion unit that converts a target vector font into a higher-quality bitmap font.
[0017]
Further, the character font suitability table is created by determining the quality of a bitmap font relating to the character based on the height and character line width of the character when visually represented. And
Also, the present invention
A character font processing program for judging the quality of a visually represented bitmap font, extracting the character height and character line width when the bitmap font to be judged is visually represented A character characteristic extraction function to perform the determination and a determination function of determining the quality of a bitmap font to be determined based on the height and the character line width of the character extracted by the character characteristic extraction function. Features.
[0018]
Note that the determination function may calculate an evaluation value “E” indicating the quality of the bitmap font by the following equation, and determine the quality of the bitmap font based on the evaluation value.
[0019]
[Equation 3]
Figure 2004258590
Here, "h" is the height of the character, "x" is the horizontal line width of the character, and "y" is the vertical line width of the character.
In addition, the character characteristic extraction function extracts a character height and a character line width for each bitmap font converted from at least one vector font by a plurality of conversion algorithms, and the determination function includes: Determining the quality of each of the bitmap fonts based on the height and the character line width, and selecting a higher quality bitmap font from each of the bitmap fonts based on the determination result. Is also good.
[0020]
In addition, the character characteristic extraction function extracts a character height and a character line width for an arbitrarily designed bitmap font, and determines a determination target based on the determination result of the determination function for the bitmap font. Information about the quality of the bitmap font may be displayed.
In addition, the quality of the bitmap font may be determined in units of characters or character strings of the bitmap font to be determined.
[0021]
Also, the present invention
A character font processing program for converting a vector font to a bitmap font, wherein a predetermined font is used when characters are visually represented for each bitmap font converted from at least one vector font by a plurality of conversion algorithms. A vector font to be converted is converted to a higher-quality bitmap based on a character font suitability table in which conditions and the quality of the bitmap font are associated with each other and a predetermined condition when characters are visually represented. It is characterized by having a computer realize a conversion function for converting to a font.
[0022]
The character font suitability table may be created by determining the quality of a bitmap font related to the character based on the height and character line width of the character when visually represented. Good.
According to the present invention, when an arbitrary vector font is converted into a bitmap font based on an arbitrary conversion algorithm, the readability (character font quality) of the character of the bitmap font which is the conversion result is determined. Can be determined.
[0023]
Therefore, the readability of the characters can be automatically compared on the device, and a more readable character font can be selected without human intervention.
That is, according to the present invention, it is possible to quantitatively determine the quality of an algorithm for converting a vector font to a bitmap font, a bitmap font that is a conversion result, or a combination thereof.
[0024]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First Embodiment)
First, a first embodiment of the present invention will be described.
First, a character font processing method according to the present invention will be described.
[0025]
The character font processing method according to the present invention determines the readability of a character based on the relationship between the character height “h” and the character line width (width is “x” and height is “y”). I do.
FIG. 1 is an explanatory diagram of a character height and a character line width (x, y). In FIG. 1, the character height "h" and the character line width (x, y) are shown by taking the character "tsuto" as an example.
[0026]
In general, since the legibility of a character includes a subjective factor, the criterion for determining whether the character is legible is statistically determined.
Then, as a result of conducting a psychological experiment on the legibility of the character, it was found that the characteristic E relating to the legibility of the character can be approximated by the following equation using the character height h and the character line width (x, y) as elements. did.
[0027]
(Equation 4)
Figure 2004258590
Regarding the equation (1), in general, in a certain range in which the values of x, y, and h are appropriate for displaying characters, the smaller the value of the evaluation value E, the easier the characters are to read.
FIGS. 2 and 3 are diagrams showing the relationship between the result of a psychological experiment (broken line) relating to the legibility of characters and the characteristic (solid line) based on equation (1). 2 and 3, an evaluation value E 'indicating the readability of the character is newly defined based on the evaluation value E, the horizontal axis represents the resolution of the character, and the vertical axis represents the evaluation value E'. It is.
[0028]
2 and 3, the evaluation value E 'is a value indicating the readability of the character in a stepwise manner, and the larger the value, the easier the character is to read.
Further, FIG. 2 shows a result of a psychological experiment performed on a Gothic font, and FIG. 3 shows a result of a psychological experiment performed on a Mincho font.
2 and 3, the result of the psychological experiment is a subjective evaluation when the subject sees a character string having a different resolution, and a broken line indicating the result of the psychological experiment and the characteristic (1) of the character string in the equation (1) The solid line indicating the theoretical value) has a high correlation.
[0029]
Therefore, the legibility of the character can be quantitatively determined by equation (1).
That is, when a vector font is converted into a bitmap font by various algorithms, it is possible to predict whether or not the converted character font is legible based on the equation (1).
[0030]
More specifically, the character height h and the character line width (x, y) are obtained for the bitmap font that is the conversion result by a method described later. Then, “E” is calculated from the obtained “h”, “x”, and “y” using equation (1), and the readability of the character font is determined based on the calculated size of “E”. It is possible. It should be noted that the smaller the “E” is, the easier it is to determine that the character is readable.
[0031]
Here, a conventional technique for acquiring a character height and a character line width will be described.
FIG. 4 is an explanatory diagram showing a process of acquiring a character height and a character line width by projecting a line segment with respect to a character “between”.
In FIG. 4, first, all the line segments included in the character “between” shown in FIG. 4A are projected in the vertical and horizontal directions. Here, “projection” means that pixels forming a line segment are packed in the vertical direction and the horizontal direction and integrated.
[0032]
FIG. 4B is a diagram illustrating a result of vertically projecting a line segment included in the character “between”. In FIG. 4B, the projection of the portion where the vertical line exists is projected.
Next, in the projection shown in FIG. 4B, a threshold value of the integrated number of pixels is set, and if attention is paid to a portion exceeding the threshold value, a projection corresponding to a main line segment is extracted. The width of this projection is defined as the vertical line width “x” of the character “between”.
[0033]
Here, as shown in FIG. 4C, when there are a plurality of portions to be extracted, the average value of these line segment widths can be used as the vertical line width, or The median (median) in the line segment width can be used as the vertical line width.
Further, the projection as shown in FIG. 4B is also performed in the horizontal direction to obtain a horizontal line width “y”, and the width in which pixels are distributed in the horizontal projection is set as the character height “h”.
[0034]
In addition to the method shown in FIG. 4, it is possible to acquire the height of a character and the character line width using a stroke width included in the character.
Hereinafter, a method of obtaining the character height and the character line width using the stroke width will be outlined.
FIG. 5 is an explanatory diagram showing a process of acquiring the character height and the character line width using the stroke width for the character “between”.
[0035]
In FIG. 5, the character "between" is scanned from left to right, and the distance at which pixels are continuously present is detected as a stroke width. At this time, scanning is performed at a plurality of heights on the character, and the stroke width is detected over the entire character. In addition, since the structure of the character is complicated, when scanning at a certain height, it is possible to use only the stroke width initially detected by scanning from outside the character.
[0036]
Then, the stroke width having the highest appearance frequency is defined as the vertical line width “x”. Similarly, the character in the “between” is scanned from the top to the bottom to obtain the horizontal line width “y”, and the width in which pixels are distributed in the horizontal projection is set to the character height “h”.
According to the method shown in FIG. 5, since the pixels included in the character are directly scanned without breaking the shape of the character, it is possible to obtain the character height and the character line width with high accuracy.
[0037]
On the other hand, the method shown in FIG. 5 goes through a slightly more complicated process than the method shown in FIG. 4, so that when the number of target characters increases, it takes considerable time to calculate the character height and character line width. Become.
Therefore, according to the processing conditions, a method using the stroke width when giving priority to the accuracy of the acquired character height and character line width, and a method of performing projection when giving priority to the processing time are appropriately selected. It is possible.
[0038]
Next, a character font processing device according to the present invention will be described.
First, the configuration will be described.
FIG. 6 is a block diagram showing a functional configuration of the character font processing device 1 according to the present embodiment. The character font processing device 1 is a device such as a general PC (Personal Computer) that converts a vector font into a bitmap font and performs display and printing.
[0039]
6, the display device 1 includes an input unit 10, a control unit 20, a storage unit 30, a RAM (Random Access Memory) 40, a VRAM (Video Random Access Memory) 50, and a display unit 60. Be composed.
The input unit 10 includes a keyboard and a pointing device such as a mouse provided with a cursor key, a numeric input key, and the like, and outputs a pressing signal of a key pressed on the keyboard and a mouse position signal to the control unit 20.
[0040]
The control unit 20 controls the entire character font processing apparatus 1 and reads and executes programs related to various processes stored in the storage unit 30 according to various instruction signals input from the input unit 10. For example, when the character font processing apparatus 1 is activated, the control unit 20 converts a predetermined bitmap font, which is assumed to be frequently used, from a vector font in advance and stores the converted bitmap font in the RAM 40 (a system font described later). Conversion processing) or a conversion processing from a vector font to a bitmap font (a sequential conversion processing described later), which is instructed and input by a user or an application. Then, the control unit 20 stores the processing results of executing the various programs in a predetermined area of the storage unit 30 or the RAM 40 or causes the display unit 60 to display the processing results.
[0041]
The storage unit 30 is configured by a nonvolatile semiconductor memory such as a flash ROM, and stores programs related to a system font conversion process or a sequential conversion process and programs related to various processes for controlling the character font processing device 1. Further, the storage unit 30 stores a plurality of conversion processing programs for converting a vector font to a bitmap font, and the plurality of conversion processing programs correspond to a plurality of algorithms for converting a vector font to a bitmap font. are doing.
[0042]
The RAM 40 is configured by a volatile memory such as an SDRAM (Synchronous Dynamic Random Access Memory), and temporarily holds various data generated when the character font processing apparatus 1 operates.
Further, the RAM 40 holds the bitmap font converted by the system font conversion processing or the sequential conversion processing as reference data when displaying or printing characters.
[0043]
The VRAM 50 is a video memory that stores display data displayed on the display unit 60.
The display unit 60 includes, for example, a color liquid crystal display cell of a dot matrix type, a CRT (Cathode Ray Tube), and the like, and displays various data stored in the VRAM 50.
[0044]
Next, the operation will be described.
First, the system font conversion processing will be described.
FIG. 7 is a flowchart showing a system font conversion process executed by the control unit 20 of the character font processing device 1. The system font conversion process is executed in response to the activation of the character font processing apparatus 1 in order to convert frequently used characters such as characters displayed on the desktop screen into bitmap fonts in advance.
[0045]
In FIG. 7, when the system font conversion process is started, the control unit 20 reads a vector font to be converted from the storage unit 30 (step S1), and further converts a conversion process program usable for the character font conversion process. Is read from the storage unit 30 (step S2).
At this time, when the vector font to be converted is specified, the control unit 20 reads the specified vector font, and when the vector font to be converted is not specified, the control unit 20 executes the conversion. It is possible to read a plurality of vector fonts and finally select the one with a higher conversion result.
[0046]
Next, the control unit 20 processes the vector font read in step S1 according to each of the conversion processing programs read in step S2 (step S3). Are compared (step S4).
Here, when comparing the readability of the bitmap font, the parameter E is calculated from the character height h and the character line width (x, y) based on the expression (1) as described above. , "E", it is possible to automatically determine the legibility of the character on the device.
[0047]
Subsequently, the control unit 20 selects a bitmap font determined to be the most readable as a result of the comparison in step S4 (step S5), and incorporates it as a system font (step S6).
Then, the control unit 20 ends the system font conversion process.
Next, the sequential conversion processing will be described.
[0048]
FIG. 8 is a flowchart showing the sequential conversion process executed by the control unit 20 of the character font processing device 1. The sequential conversion process is a process of determining and selecting a more readable bitmap font in character units when displaying characters of various sizes and types in an application. In addition, the sequential conversion process is executed when the user inputs and instructs the conversion of the character font during use of the application, or when the application automatically converts the character font.
[0049]
In FIG. 8, when the sequential conversion process is started, the control unit 20 acquires the resolution of the displayed character and the type of the displayed character font (step S101).
Here, the resolution of the displayed character can be calculated based on the resolution of the display unit 60 of the character font processing device 1 and the size of the displayed character. The type of the character font to be displayed is the type of the character font specified by the user or the application (for example, “Gothic” or “Mincho”).
[0050]
Next, the control unit 20 selects a vector font to be converted based on the type of the character font obtained in step S101 (step S102), and stores a conversion processing program usable for the character font conversion processing in the storage unit. 30 are all read (step S103).
Then, for each character to be evaluated, the control unit 20 processes the vector font selected in step S102 according to each of the conversion processing programs read in step S103 (step S104). Then, the readability is compared based on equation (1) (step S105).
[0051]
Subsequently, the control unit 20 selects the bitmap font determined to be the most readable as a result of the comparison in step S105 (step S106), and displays (or prints) the character in the selected bitmap font (step S106). S107).
As described above, when an arbitrary vector font is converted to a bitmap font based on an arbitrary conversion algorithm, the character font processing device 1 according to the present embodiment (Quantity of character font) can be quantitatively determined.
[0052]
Therefore, the readability of the characters can be automatically compared on the device, and a more readable character font can be selected without human intervention.
That is, the character font processing device 1 can quantitatively determine the quality of the algorithm for converting a vector font to a bitmap font, the bitmap font that is the conversion result, or a combination thereof.
[0053]
In the present embodiment, the character font processing device 1 has been described assuming a general PC or the like, but it may be a mobile phone or the like having a lower processing capability. Since it is not practical to convert a vector font into a bitmap font on a device with lower processing capability, a system font conversion process is performed on a device with higher processing capability assuming a device such as a mobile phone. A form in which a bitmap font that is executed and determined to be easy to read is incorporated in a device such as a mobile phone is also possible.
[0054]
In addition, in the sequential conversion processing described in the present embodiment, a vector font to be converted is actually processed by each of the conversion processing programs, and a bitmap font which is a result of the processing is selected that is determined to be easy to read. However, the determination result may be stored in a table format in advance, and the bitmap font may be selected with reference to the table (character font suitability table).
[0055]
That is, the readability of characters when various vector fonts are converted to bitmap fonts is obtained in advance according to the resolution of the device on which the characters are displayed and the size of the characters to be displayed, and as a character font suitability table. Remember. Then, when a target vector font is selected, unnecessary conversion processing is performed by specifying a predetermined bitmap font by referring to a character font suitability table based on resolution and character size. In addition, a vector font can be processed by a conversion processing program that can convert a bitmap font into an easy-to-read bitmap font.
(Second embodiment)
Next, a second embodiment of the present invention will be described.
[0056]
In the present embodiment, a font design support device to which the present invention is applied will be described.
First, the configuration will be described.
FIG. 9 is a block diagram showing a functional configuration of the font design support device 2 according to the present embodiment. The font design support device 2 is a device that presents an objective evaluation material to a font designer or the like regarding the readability of the designed bitmap font when designing a bitmap font converted from a vector font.
[0057]
In FIG. 9, the functional configuration of the font design support device 2 is almost the same as that of the character font processing device 1 shown in FIG. The description of the parts is omitted.
The control unit 120 controls the entire font design support device 2, and reads and executes programs related to various processes stored in the storage unit 130 according to various instruction signals input from the input unit 110. For example, when an instruction to execute a later-described font design evaluation process is input, the control unit 120 reads out and executes the font design evaluation process program from the storage unit 130. Then, the control unit 120 stores the processing results of executing the various programs in a predetermined area of the storage unit 130 or the RAM 140 or causes the display unit 160 to display the processing results.
[0058]
The storage unit 130 is configured by a nonvolatile semiconductor memory such as a flash ROM, and stores a font design evaluation program and programs related to various processes for controlling the font design support device 2.
The RAM 140 is configured by a volatile memory such as an SDRAM (Synchronous Dynamic Random Access Memory), and temporarily holds various data generated when the font design support apparatus 2 operates.
[0059]
Next, the operation will be described.
FIG. 10 is a flowchart illustrating a font design evaluation process performed by the control unit 120 of the font design support apparatus 2. The font design evaluation process is a process for determining the readability of a designed bitmap font, and is started in response to a user of the font design support device 2 such as a font designer inputting an instruction to execute the process. Is done.
[0060]
In FIG. 10, when the font design evaluation process is started, the control unit 120 receives an input of a bitmap font to be evaluated (step S201). At this time, it is possible to input one character or a plurality of characters as a bitmap font to be evaluated.
When the bitmap font to be evaluated is input (step S202), the control unit 120 acquires the character height and the character line width from the input character of the bitmap font (step S203). A parameter "E" indicating the legibility of the character is calculated based on the equation (1) (step S204).
[0061]
Then, the control unit 120 displays the readability of the input bitmap font based on the calculated parameter “E” (Step S205).
At this time, as a method of displaying the readability of the bitmap, the calculated value of “E” is displayed as it is, or a stepwise evaluation value is set according to the calculated “E”. , The evaluation value can be displayed.
[0062]
Then, the control unit 120 determines whether or not the end of the font design evaluation processing has been instructed (step S206). If it is determined that the end of the font design evaluation processing has not been instructed, the process proceeds to step S201. I do.
On the other hand, if it is determined that the end of the font design evaluation processing has been instructed, the control unit 120 ends the font design evaluation processing.
[0063]
As described above, the font design support device 2 according to the present embodiment displays the result of quantitatively evaluating the readability of the designed bitmap font.
Therefore, it is possible to objectively determine the readability of characters, which has been conventionally performed by a font designer or the like subjectively, and it is possible to design a bitmap font that is considered to be more readable.
[0064]
Note that there are a plurality of conversion algorithms for converting one vector font into a bitmap font of the same type (for example, Mincho font or Gothic font). This is equivalent to evaluating an algorithm for converting a vector font to a bitmap font.
[Brief description of the drawings]
FIG. 1 is an explanatory diagram of a character height and a character line width (x, y).
FIG. 2 is a diagram showing a relationship between a psychological experiment result (broken line) relating to legibility of a character and a characteristic (solid line) based on Expression (1) for a Gothic font.
FIG. 3 is a diagram showing a relationship between a psychological experiment result (broken line) relating to character readability and a characteristic (solid line) based on equation (1) for a Mincho font.
FIG. 4 is an explanatory diagram showing a process of acquiring a character height and a character line width by projecting a line segment for a character “between”.
FIG. 5 is an explanatory diagram showing a process of acquiring a character height and a character line width using a stroke width for a character “between”.
FIG. 6 is a block diagram showing a functional configuration of the character font processing device 1.
FIG. 7 is a flowchart illustrating a system font conversion process executed by the control unit 20 of the character font processing device 1.
FIG. 8 is a flowchart showing a sequential conversion process executed by the control unit 20 of the character font processing device 1.
FIG. 9 is a block diagram illustrating a functional configuration of the font design support apparatus 2.
FIG. 10 is a flowchart showing a font design evaluation process executed by the control unit 120 of the font design support device 2.
[Explanation of symbols]
1 character font processing device, 2 font design support device, 10, 110 input unit, 20, 120 control unit, 30, 130 storage unit, 40, 140 RAM, 50, 150 VRAM, 60, 160 display unit

Claims (9)

可視的に表されるビットマップフォントの質を判定可能な文字フォント処理装置であって、
判定対象となるビットマップフォントが可視的に表された場合の文字の高さおよび文字線幅を抽出する文字特性抽出手段と、
前記文字特性抽出手段によって抽出された文字の高さおよび文字線幅に基づいて、判定対象となるビットマップフォントの質を判定する判定手段と、
を備えることを特徴とする文字フォント処理装置。
A character font processing device capable of determining the quality of a visually represented bitmap font,
Character characteristic extracting means for extracting the character height and character line width when the bitmap font to be determined is visually represented,
Determining means for determining the quality of a bitmap font to be determined based on a height and a character line width of the character extracted by the character characteristic extracting means;
A character font processing device comprising:
前記判定手段は、ビットマップフォントの質を示す評価値“E”を次式によって算出し、該評価値に基づいて、前記ビットマップフォントの質を判定することを特徴とする請求項1記載の文字フォント処理装置。
Figure 2004258590
ただし、“h”は文字の高さ、“x”は文字の横線幅、“y”は文字の縦線幅である。
2. The method according to claim 1, wherein the determining unit calculates an evaluation value "E" indicating the quality of the bitmap font by the following equation, and determines the quality of the bitmap font based on the evaluation value. Character font processor.
Figure 2004258590
Here, "h" is the height of the character, "x" is the horizontal line width of the character, and "y" is the vertical line width of the character.
前記文字特性抽出手段は、少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されたビットマップフォントそれぞれについて、文字の高さおよび文字線幅を抽出し、
前記判定手段は、抽出された文字の高さおよび文字線幅に基づいて、該ビットマップフォントそれぞれの質を判定し、
該判定結果に基づいて、前記ビットマップフォントそれぞれの中から、より質の高いビットマップフォントを選択することを特徴とする請求項1または2記載の文字フォント処理装置。
The character characteristic extraction unit, for each bitmap font converted by a plurality of conversion algorithms from at least one vector font, extract the character height and character line width,
The determining means determines the quality of each of the bitmap fonts based on the height and the character line width of the extracted characters,
3. The character font processing apparatus according to claim 1, wherein a higher quality bitmap font is selected from the bitmap fonts based on the determination result.
前記文字特性抽出手段は、任意にデザインされたビットマップフォントについて、文字の高さおよび文字線幅を抽出し、
該ビットマップフォントについての前記判定手段の判定結果に基づいて、判定対象となるビットマップフォントの質に関する情報を表示することを特徴とする請求項1または2記載の文字フォント処理装置。
The character characteristic extracting means extracts a character height and a character line width for an arbitrarily designed bitmap font,
3. The character font processing apparatus according to claim 1, wherein information relating to the quality of the bitmap font to be determined is displayed based on a determination result of the bitmap font by the determination unit.
判定対象となるビットマップフォントの文字もしくは文字列を単位として、ビットマップフォントの質を判定可能であることを特徴とする請求項1〜4のいずれかに記載の文字フォント処理装置。5. The character font processing apparatus according to claim 1, wherein the quality of the bitmap font can be determined in units of a character or a character string of the bitmap font to be determined. ベクトルフォントをビットマップフォントに変換可能な文字フォント処理装置であって、
少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されるビットマップフォントそれぞれについて、文字が可視的に表される場合の所定条件と該ビットマップフォントの質とが対応付けられた文字フォント適性テーブルを記憶している記憶手段と、
文字が可視的に表される場合の所定条件と前記文字フォント適性テーブルとに基づいて、変換対象であるベクトルフォントをより質の高いビットマップフォントに変換する変換手段と、
を備えることを特徴とする文字フォント処理装置。
A character font processing device capable of converting a vector font to a bitmap font,
For each bitmap font converted from at least one vector font by a plurality of conversion algorithms, a character font suitability table in which predetermined conditions when characters are visually represented and the quality of the bitmap font are associated. Storage means for storing;
Conversion means for converting a vector font to be converted into a higher-quality bitmap font based on a predetermined condition when characters are visually represented and the character font suitability table,
A character font processing device comprising:
前記文字フォント適性テーブルは、可視的に表された場合の文字の高さおよび文字線幅に基づいて、該文字に係るビットマップフォントの質を判定することにより作成されていることを特徴とする請求項6記載の文字フォント処理装置。The character font suitability table is created by determining the quality of a bitmap font related to the character based on the height and character line width of the character when visually represented. The character font processing device according to claim 6. 可視的に表されるビットマップフォントの質を判定するための文字フォント処理プログラムであって、
判定対象となるビットマップフォントが可視的に表された場合の文字の高さおよび文字線幅を抽出する文字特性抽出機能と、
前記文字特性抽出機能によって抽出された文字の高さおよび文字線幅に基づいて、判定対象となるビットマップフォントの質を判定する判定機能と、
をコンピュータに実現させることを特徴とする文字フォント処理プログラム。
A character font processing program for determining the quality of a visually represented bitmap font,
A character characteristic extraction function for extracting a character height and a character line width when a bitmap font to be determined is visually represented;
A determination function of determining the quality of a bitmap font to be determined based on a height and a character line width of the character extracted by the character characteristic extraction function;
A character font processing program that causes a computer to implement
ベクトルフォントをビットマップフォントに変換するための文字フォント処理プログラムであって、
少なくとも一のベクトルフォントから複数の変換アルゴリズムによって変換されるビットマップフォントそれぞれについて、文字が可視的に表される場合の所定条件と該ビットマップフォントの質とが対応付けられた文字フォント適性テーブルと、文字が可視的に表される場合の所定条件とに基づいて、変換対象であるベクトルフォントをより質の高いビットマップフォントに変換する変換機能をコンピュータに実現させることを特徴とする文字フォント処理プログラム。
A character font processing program for converting a vector font to a bitmap font,
For each bitmap font converted by at least one vector font by a plurality of conversion algorithms, a character font suitability table in which predetermined conditions when characters are visually represented and the quality of the bitmap font are associated with each other. Character font processing, which causes a computer to realize a conversion function of converting a vector font to be converted into a higher-quality bitmap font based on predetermined conditions when characters are visually represented. program.
JP2003052302A 2003-02-28 2003-02-28 Device and program for character font processing Pending JP2004258590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003052302A JP2004258590A (en) 2003-02-28 2003-02-28 Device and program for character font processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003052302A JP2004258590A (en) 2003-02-28 2003-02-28 Device and program for character font processing

Publications (1)

Publication Number Publication Date
JP2004258590A true JP2004258590A (en) 2004-09-16

Family

ID=33117203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003052302A Pending JP2004258590A (en) 2003-02-28 2003-02-28 Device and program for character font processing

Country Status (1)

Country Link
JP (1) JP2004258590A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006051795A1 (en) * 2004-11-10 2006-05-18 Sharp Kabushiki Kaisha Processing device, program, and recording medium
JP2012247920A (en) * 2011-05-26 2012-12-13 Pathfinder:Kk Evaluation method for easiness of reading of character

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006051795A1 (en) * 2004-11-10 2006-05-18 Sharp Kabushiki Kaisha Processing device, program, and recording medium
JP2012247920A (en) * 2011-05-26 2012-12-13 Pathfinder:Kk Evaluation method for easiness of reading of character

Similar Documents

Publication Publication Date Title
JP4261558B2 (en) Image processing method
JP3870109B2 (en) Image display apparatus, image display method, and image display program
JP3819976B2 (en) Character drawing method and apparatus
JP4737269B2 (en) Image processing apparatus and program
JP4963954B2 (en) Image processing apparatus and image processing program for printing plate making
JP2010055048A (en) Method for generating stroke-based font character for low-resolution display
US6927773B2 (en) Font processing device, terminal device, font processing method, and font processing program
JP4812077B2 (en) DATA DISPLAY METHOD, DATA DISPLAY DEVICE, AND PROGRAM
JP2001159967A (en) Method for adjusting window size by picture resolution
JP2004258590A (en) Device and program for character font processing
JP2011239035A (en) Image forming device, image forming method, and program
KR100918890B1 (en) Processing device and recording medium
JP2004040499A (en) Image processor, image processing system, image processing method, and program for executing by computer
JP2005267158A (en) Character size control method, device, and program
JP4125245B2 (en) Document display method and document display apparatus
JP6089738B2 (en) Electronic document file compression device
JP3756499B2 (en) Image reduction method, image reduction apparatus, image reduction program, and storage medium storing the program
JP5310038B2 (en) Image processing apparatus and image processing program
JP4419515B2 (en) Readability determination method, determination device, determination program, and bitmap font selection method, selection device, and selection program
JP2000066658A (en) Image processor and recording medium
JP2009080727A (en) Translation device and program
JP4670278B2 (en) Document display device and document display program
JPH09281946A (en) Character image data forming method and device therefor
JPH1063253A (en) High-quality character display device, and gradation display method
JPH0675961A (en) System and method for controlling display in information processor