JP3815411B2 - Font processing device, terminal device, display device, font processing method, and font processing program - Google Patents

Font processing device, terminal device, display device, font processing method, and font processing program Download PDF

Info

Publication number
JP3815411B2
JP3815411B2 JP2002255257A JP2002255257A JP3815411B2 JP 3815411 B2 JP3815411 B2 JP 3815411B2 JP 2002255257 A JP2002255257 A JP 2002255257A JP 2002255257 A JP2002255257 A JP 2002255257A JP 3815411 B2 JP3815411 B2 JP 3815411B2
Authority
JP
Japan
Prior art keywords
font
processing
order
row
column
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002255257A
Other languages
Japanese (ja)
Other versions
JP2004093930A (en
Inventor
幸信 桃薗
孝 胡桃澤
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 JP2002255257A priority Critical patent/JP3815411B2/en
Priority to TW092122883A priority patent/TWI277058B/en
Priority to US10/648,432 priority patent/US6927773B2/en
Priority to CNB031560083A priority patent/CN100367345C/en
Priority to CN 200610093194 priority patent/CN1873773A/en
Priority to CNU032086512U priority patent/CN2706801Y/en
Priority to KR10-2003-0060181A priority patent/KR100517162B1/en
Publication of JP2004093930A publication Critical patent/JP2004093930A/en
Application granted granted Critical
Publication of JP3815411B2 publication Critical patent/JP3815411B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Record Information Processing For Printing (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、ビットマップフォントの拡大、縮小処理に関する。
【0002】
【背景技術】
携帯電話やPDA(Personal Digital Assistant)などの装置では文字などの表示にビットマップフォントが使用される。ビットマップフォントは、予め用意された画素の配列パターンにより文字や記号などを表示するものである。ベクトルデータの集合として文字や記号などを表示するアウトラインフォントと異なり、ビットマップフォントは単純な画素の配列パターンであるため、1文字当たりのデータ量が小さい。そのため、表示エリアの画素数が比較的少ない携帯電話やPDAなどにおいては、ビットマップフォントが使用される。
【0003】
【発明が解決しようとする課題】
表示装置上に文字や記号を表示する場合、文字の拡大や縮小が要求されることがある。携帯電話やPDAなどに使用されるビットマップフォントの場合、1文字のサイズが小さく、文字の太さが1画素で表されることも多い。そのような場合、元の文字サイズと拡大後の文字サイズとの縦横比に基づいて単純な座標変換を行う手法によりビットマップフォントを拡大すると、拡大後の文字に不自然な太さの部分ができてしまうことがある。また、同様の小さなビットマップフォントを上記のような単純な座標変換により縮小すると、縮小後に文字が潰れ、不自然な太さの線ができたり、文字の部分同士が不適切に連結して違う文字に見えてしまうことがある。
【0004】
本発明は、以上の点に鑑みてなされたものであり、携帯電話やPDAなどで使用するサイズの小さなビットマップフォントを自然に拡大・縮小することを課題とする。
【0005】
【課題を解決するための手段】
本発明のフォント処理装置では、ビットマップフォントのフォントデータを取得するデータ取得手段と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行う計算手段と、前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備える。
【0006】
また、ビットマップフォントのフォントデータを取得するデータ取得手段と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行い、当該加算された線分量の逆数を計算する計算手段と、前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備える。
【0007】
また、ビットマップフォントのフォントデータを取得するデータ取得手段と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備え、前記フォントデータは、当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段をさらに備える。
【0008】
また、ビットマップフォントのフォントデータを取得するデータ取得手段と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備え、前記フォントデータは、当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段をさらに備える。
【0009】
また、ビットマップフォントのフォントデータと、当該フォントデータの拡大処理において列方向拡大処理と行方向拡大処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、前記フォントデータに基づく画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、前記処理順序情報に従って、前記線分量の小さい列から順に所定数の列を行方向に拡大するための拡大処理と、前記線分量の小さい行から順に 所定数の行を列方向に拡大するための拡大処理との実行順序を制御する順序制御手段と、を備える。
【0010】
また、ビットマップフォントのフォントデータと、当該フォントデータの拡大処理において列方向拡大処理と行方向拡大処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、前記フォントデータに基づく画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、前記処理順序情報に従って、前記線分量の逆数が大きい列から順に所定数の列を行方向に拡大するための拡大処理と、前記線分量の逆数が大きい行から順に所定数の行を列方向に拡大するための拡大処理との実行順序を制御する順序制御手段と、を備える。
【0011】
また、ビットマップフォントのフォントデータを取得するデータ取得手段と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段と、前記非類似度の小さい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段と、前記非類似度の小さい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段と、を備え、前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段をさらに備える。
【0012】
また、ビットマップフォントのフォントデータと、当該フォントデータの縮小処理において列方向縮小処理と行方向縮小処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、前記フォントデータに基づく画素構成における複数の画素が配列される複数の行又は列に対して、当該行又は列の画素構成と、当該行又は列に隣接する行又は列との画素構成との排他的論理和に基づいて非類似度を計算する計算手段と、前記処理順序情報に従って、前記非類似度の小さい列から順に所定数の列を行方向に縮小するための縮小処理と、前記非類似度の小さい行から順に所定数の行を列方向に縮小するための縮小処理との実行順序を制御する順序制御手段と、を備える。
【0013】
また、ビットマップフォントのフォントデータを取得するデータ取得手段と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段と、前記非類似度の逆数が大きい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段と、前記非類似度の逆数が大きい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段と、を備え、前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段をさらに備える。
【0014】
また、ビットマップフォントのフォントデータと、当該フォントデータの縮小処理において列方向縮小処理と行方向縮小処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、前記フォントデータに基づく画素構成における複数の画素が配列される複数の行又は列に対して、当該行又は列の画素構成と、当該行又は列に隣接する行又は列との画素構成との排他的論理和に基づいて非類似度を計算手段と、前記処理順序情報に従って、前記非類似度の逆数が大きい列から順に所定数の列を行方向に縮小するための縮小処理と、前記非類似度の逆数が大きい行から順に所定数の行を列方向に縮小するための縮小処理との実行順序を制御する順序制御手段と、を備える。
【0015】
また、本発明の端末装置では、上記フォント処理装置と、前記フォント処理装置により生成されたフォントデータを記憶する記憶手段と、前記フォント処理装置により生成されたフォントデータを表示する表示部と、を備える。
【0016】
また、本発明の表示装置では、上記フォント処理装置と、前記フォント処理装置により生成されたフォントデータを記憶する記憶手段と、前記フォント処理装置により生成されたフォントデータを表示する表示部と、を備える。
【0017】
また、本発明のフォント処理方法では、フォント処理装置によるフォント処理方法であって、ビットマップフォントのフォントデータを取得するデータ取得工程と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行う計算工程と、前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有する。
【0018】
また、フォント処理装置によるフォント処理方法であって、ビットマップフォントのフォントデータを取得するデータ取得工程と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行い、当該加算された線分量の逆数を計算する計算工程と、前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有する。
【0019】
また、フォント処理装置によるフォント処理方法であって、ビットマップフォントのフォントデータを取得するデータ取得工程と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算工程と、前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有し、前記フォントデータは、当該フォントデータの縮小処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する。
【0020】
また、フォント処理装置によるフォント処理方法であって、ビットマップフォントのフォントデータを取得するデータ取得工程と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算工程と、前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有し、前記フォントデータは、当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する。
【0021】
また、フォント処理装置によるフォント処理方法であって、ビットマップフォントのフォントデータを取得するデータ取得工程と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算工程と 、前記非類似度の小さい列から順に所定数の列を横方向に縮小するための横方向縮小処理工程と、前記非類似度の小さい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理工程と、を有し、前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する。
【0022】
また、フォント処理装置によるフォント処理方法であって、ビットマップフォントのフォントデータを取得するデータ取得工程と、前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算工程と、前記非類似度の逆数が大きい列から順に所定数の列を横方向に縮小するための横方向縮小処理工程と、前記非類似度の逆数が大きい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理工程と、を有し、前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する。
【0023】
また、本発明のフォント処理プログラムでは、コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行う計算手段、前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段として機能させる。
【0024】
また、コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行い、当該加算された線分量の逆数を計算する計算手段、前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段として機能させる。
【0025】
また、コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段、前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段、前記フォントデータに含まれ且つ当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段、として機能させる。
【0026】
また、コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段、前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、前記線分量の逆数が大きい行から順に所定 数の行を縦方向に拡大するための縦方向拡大処理手段、前記フォントデータに含まれ且つ当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段、として機能させる。
【0027】
また、コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段、前記非類似度の小さい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段、前記非類似度の小さい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段、前記フォントデータに含まれ且つ当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段、として機能させる。
【0028】
また、コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段、前記非類似度の逆数が大きい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段、前記非類似度の逆数が大きい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段、前記フォントデータに含まれ且つ当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段、として機能させる。
【0029】
本発明において、前記所定数は、前記フォントデータの縦方向及び横方向の画素数と、前記フォントデータの拡大率とにより決定される、又は、前記フォントデータの縦方向及び横方向の画素数と、前記フォントデータの縮小率とにより決定されることが好ましい。また、前記計算手段は、前記行又は列ごとに、当該行又は列の画素構成と、当該行又は列に隣接する行又は列の画素構成との排他的論理和に基づいて前記非類似度を計算することが好ましい。
【0030】
本発明のフォント処理装置によれば、フォントデータを構成する画素の横方向又は縦方向の画素構成が数値化されて、その値に基づいて拡大/縮小処理が行われる。よって、画素構成の分析を単純な計算により行うことができ、迅速な処理が可能となる。
【0031】
本発明のフォント処理装置又は方法の一態様によれば、点や点の集合に近い画素構成を有する行又は列が優先的に拡大され、線分に近い画素構成を有する行又は列は拡大されにくくなる。よって、文字を構成する線分が必要以上に拡大されて文字全体のバランスがくずれることがなくなり、自然な拡大がなされる。
【0032】
本発明のフォント処理装置又は方法の一態様によれば、拡大の対象となるフォントごとに、縦方向拡大処理と横方向拡大処理のどちらを先に行った方がより自然な拡大フォントが得られるかが予め決定され、その順序を示す処理順序情報がフォントデータに付属している。よって、フォント処理装置は、その処理順序情報を参照して縦方向拡大処理と横方向拡大処理の実行順序を決定することにより、自然な拡大フォントが得られる。
【0033】
本発明のフォント処理装置又は方法の一態様によれば、画素構成が類似する行又は列が隣接する部分が優先的に縮小されるので、文字全体のバランスがくずれることがなくなり、自然な縮小がなされる。
【0034】
本発明の端末装置は、例えば携帯電話やPDAなどの携帯型端末装置とすることができる。本発明のフォント処理装置により、単純な演算で迅速にフォントの拡大や縮小ができるので、そのような携帯型端末装置においても自然なフォント拡大/縮小を行うことができる。
【0035】
また、本発明のフォント処理プログラムを、端末装置内のコンピュータで実行することにより、上記のフォント処理装置を実現することができる。
【0036】
【発明の実施の形態】
以下、図面を参照して本発明の好適な実施の形態について説明する。
【0037】
[携帯端末装置の構成]
図1に、本発明の実施形態にかかるビットマップフォントの拡大・縮小処理を適用した携帯端末装置の概略構成を示す。図1において、携帯端末装置10は、例えば携帯電話やPDAなど、画像表示エリアが比較的小さい端末装置である。携帯端末装置10は、表示部12と、処理フォントメモリ14と、CPU16と、入力部18と、プログラムROM20と、フォントROM22と、RAM24とを備える。
【0038】
表示部22は、例えばLCD(Liquid Crystal Display:液晶表示装置)などの軽量、薄型の表示装置とすることができ、表示エリア内にビットマップフォントにより構成される文字を表示する。
【0039】
入力部18は、携帯電話であれば各種の操作ボタンなど、PDAであればタッチペンなどによる接触を検出するタブレットなどにより構成することができ、ユーザが各種の指示、選択を行う際に使用される。入力部18に対して入力された指示、選択などは、電気信号に変換されてCPU16へ送られる。
【0040】
プログラムROM20は、携帯端末装置10の各種機能を実行するための各種プログラムを記憶し、特に本実施形態ではビットマップフォントの拡大・縮小プログラム(以下、「フォント拡大・縮小プログラム」と呼ぶ。)、ビットマップフォントを利用した文字の表示プログラムなどを記憶している。
【0041】
フォントROM22は、ビットマップフォントの元データ(「字母データ」とも呼ぶ。)を記憶する。なお、ビットマップフォントの元データは、例えば16×16ドットなどの、縦横比が等しいフォント(「正方フォント」とも呼ぶ。)とすることが一般的である。
【0042】
RAM24は、ビットマップフォントの拡大・縮小プログラムに従ってビットマップフォントの元データを拡大・縮小処理する際に作業用メモリとして使用される。一方、処理フォントメモリ14は、ビットマップフォントの拡大・縮小プログラムによって拡大又は縮小処理により作成されたフォント(以下、「処理フォント」とも呼ぶ。)を一時的に記憶するメモリである。処理フォントメモリ14は、通常、RAMやフラッシュメモリなどにより構成することができ、携帯端末装置10が電源オフされるまで記憶内容を保持する。
【0043】
CPU16は、プログラムROM20内に記憶されている各種プログラムを実行することにより、携帯端末装置10の各種機能を実行する。特に、本実施形態では、プログラムROM20内に記憶されている文字表示プログラムを読み出して実行することにより、文字を表示部12上に表示させる。また、同じくプログラムROM20内に記憶されているフォント拡大・縮小プログラムを読み出して実行することにより、フォントROM22内に記憶されているビットマップフォントの元データを拡大、縮小して処理フォントを生成する。なお、CPU16は、これら以外に各種のプログラムを実行することにより携帯端末装置10の各種機能を実現するが、それらは本発明とは直接の関連を有しないので、説明を省略する。
【0044】
[フォント拡大処理]
次に、本発明の特徴部分であるフォント拡大・縮小処理について説明する。フォント拡大・縮小処理は、前述のようにCPU16がプログラムROM20内に格納されているフォント拡大・縮小プログラムを実行することにより行われる。以下、フォント拡大処理とフォント縮小処理について、順に説明する。
【0045】
まず、フォント拡大処理について図2乃至図7を参照して説明する。図2乃至図4はフォント拡大処理のメインルーチン及びサブルーチンのフローチャートであり、図5乃至図7はフォント拡大処理による各工程を説明するための図である。
【0046】
図2を参照すると、まずCPU1はフォント拡大指示を受け取る(ステップS1)。フォント拡大指示は、例えばユーザが入力部18を操作して表示フォントのサイズの指定、選択や表示モードの指定、選択を行った場合に、入力部18からの指示に基づいて生成される。なお、ユーザによる指示以外の場合でも、表示部12上への表示内容に応じてフォントの拡大が必要となる場合もある。例えば、表示エリア内に特定の文字データを表示する際に、文字表示プログラムが自動的にフォントの拡大を自動的に要求する場合もある。
【0047】
フォントの拡大指示がなされると、CPU1は表示対象となるフォントの元データをフォントROM22から読み出し、作業メモリであるRAM24へ展開する(ステップS2)。そして、CPU1は行方向拡大処理を実行して、対象となるフォントをまず行方向に拡大し(ステップS3)、次に列方向拡大処理を実行して、行方向に拡大されたフォントをさらに列方向に拡大する(ステップS4)。なお、本例の場合、行方向の拡大率と列方向の拡大率は同一に設定される。こうして、行方向及び列方向にフォントの拡大が完了すると、CPU1は拡大後のフォントデータを処理フォントとして処理フォントメモリ14に一時的に保存し(ステップS5)、さらに表示部12上に表示する(ステップS6)。こうして、特定のフォントが拡大されて表示部12上に表示される。
【0048】
次に、ステップS3で行われる行方向拡大処理の詳細について図3のフローチャートを参照して説明する。図3において、まずCPU1は、対象となるフォントを複数のに分割する(ステップS11)。そして、CPU1は、分割により得られたごとに、コストを計算する(ステップS12)。ここで、コストとは、フォントを構成する画素の数及び隣接する画素の有無などにより求められる値であり、フォント拡大処理においては線分量を示す。即ち、コストが大きいほど、そのには点や点の集合ではなく、線分が含まれている度合いが高いことを意味する。
【0049】
図4に、ステップS12におけるコスト計算処理の詳細を示す。コスト計算処理では、まず、図5(a)に示すように、単位でフォント構成要素の数をカウントする(ステップS21)。図5(a)において、各の下に示した数字(左から、0、4、3、3、…)が各のコストを示している。
【0050】
次に、図5(b)に示すように、隣接するフォント構成画素を有する画素分の加算を行う(ステップS22)。図5(b)の例では、隣接するフォント構成画素を有するフォント構成画素ごとに、コストに「2」を加算している。こうして、隣接画素分のコストを加算した結果得られる各のコストが各の下に示されている。隣接する画素を有する画素についてコストを加算することにより、そのに存在するフォント構成画素が点であるのか、線分に近いのかをある程度区分することができる。即ち、1つのに含まれるフォント構成画素数が同じであっても、コストが大きいほど、そのに含まれるフォント構成画素は線分に近いということが言える。そして、後述のように、コスト値の大きい、つまり線分
に近いほど拡大されにくくする。
【0051】
次に、図6(a)に示すように、スペースを考慮した重み付け処理を行う(ステップS23)。具体的には、各について、両端の画素がスペース(フォント構成画素が存在しない。図5及び6ではスペースで示されている。)である場合には、コスト値を「+2」する。また、両端の画素の1画素内側の画素がスペースである場合、コスト値を「+1」する。この処理は、文字としてのバランス及び文字を横方向に並べて文にした場合のバランスの面を考慮している。例えば平仮名の「し」という文字などは、普通に拡大すると左右の空きの部分だけが拡大されてしまい、文字を構成する中央のフォント構成画素はあまり拡大されない。その結果、拡大後の文章として見ると、他の文字は拡大されているが、文字「し」だけはフォント構成部分が十分に拡大されていないため、小さいままに見えてしまう。このような不具合を防止するために、スペースを考慮した重み付けを行うのである。この処理の結果、上下端にスペースを有するはコスト値が大きくなり、拡大されにくくなる。
【0052】
次に、同一コスト値を有するの重み付け処理を行う(ステップS24)。具体的には、あるについて、隣接するとフォント構成画素のパターンを比較し、隣接するとフォント構成画素のパターンが同じであるについてはコスト値を「+2」する。この処理も、文字としてのバランスの面を考慮して行われる。隣接するのフォント構成画素のパターンが同一であると、これまでのコスト計算においてはコスト値は同じになる。よって、そのコスト値を有するが後述の拡大処理により拡大対象となると、隣接する両方が拡大されることになる。その結果、同一の画素パターンを有するが両方とも拡大されることになり、1つの文字中の一部分のみが必要以上に拡大されてしまうことになる。そこで、隣接するが同一のパターンを有する場合は、コスト値を増加させて、それらのが拡大されににくすることにより、1つの文字中の特定箇所のみが偏って拡大されることを防止する。
【0053】
こうして、コスト計算処理が終了すると、処理は図3に示す行方向拡大処理へ戻る。そして、CPU1は対象となるフォントの全てのについてコスト計算が完了したか否かを判定し(ステップS13)、完了していない場合は全てののコスト計算を行う。全てのについてコスト計算が完了した場合(ステップS13;Yes)、CPU1は図7(a)に示すように、コストの低い順にを順序付けする(ステップS14)。図7(a)においては、コストの小さいから順に、A、B、C、…と順序が付されている。なお、同じコストを有するが複数ある場合は、文字の中央に近いから順に上位の順序を付すことにより、拡大する方向が左右方向において偏らないようにする。図7(a)の例では、コストが「3」である列が6つあるが、それらについて中央から順に左右に分散するようにC、D、E、F、G、Hと順序付けをしている。こうして、文字の中央から左右にバランスよく拡大がなされるように、拡大対象となる順序を付けている。
【0054】
コストの低い順に各の順序付けが終了すると、CPU1は、拡大率に基づいて拡大するの数を決定する(ステップS15)。ここで、拡大率とは、今回のフォント拡大処理により、ビットマップフォントの元データを拡大する割合を指す。ステップS1においてフォント拡大指示がなされる場合、その指示には、拡大率の情報が含まれている。例えば、ユーザが文字を見やすくするために文字の拡大を指示する場合、その拡大率(例えば、120%、150%など)を選択することになる。また、ユーザの指示に拘わらず、携帯端末装置10の特定の処理によって自動的にフォント拡大処理がなされる場合でも、必ず拡大率は決定される。よって、その拡大率に基づいて、対象となるフォントの数のうち、いくつのを拡大するかを決定する。例えば、拡大の対象となるフォントの数が15(15ドット)であり、拡大率が120%(1.2倍)と決定された場合、拡大するの数は15×1.2=18()となり、3つのだけ拡大することになる。図7(a)及び(b)の例はこの場合の例である。
【0055】
こうして、拡大するの数が決定すると、CPU1は、拡大処理を実行する(ステップS16)。即ち、コストが小さいから順に、拡大するの数だけ拡大 を行う。この場合の拡大は、例えば、拡大の対象となると同一のフォント画素パターンのを拡大の対象となるの隣に挿入することにより行われる。図7(a)及び(b)の例では、前述のように拡大するの数は3であるので、図7(a)に示すコストの小さいから順に3つの(コスト順序が「A、「B」、「C」の)について、同一のフォント構成画素パターンを有するを挿入する。その結果、図7(b)に示すように、3つのが挿入されて、全体として横方向に18(18ドット)の拡大文字が得られている。
【0056】
こうして、行方向拡大処理が終了すると、処理は図2に示すメインルーチンへ戻る。そして、CPU1は、列方向拡大処理を行う(ステップS4)。なお、この列方向拡大処理において対象となるフォントは、行方向への拡大処理後のフォントとなる。よって、図7(a)及び(b)の例では、横方向が18(ドット)となったフォントに対して行われる。
【0057】
列方向拡大処理は、基本的に図3に示す行方向拡大処理と同様の処理を、列毎ではなく、ごとに行う。即ち、拡大対象となるフォントをごとに分割し(ステップS11)、各についてコスト計算を行い(ステップS12)、コストの低い順に各について順序付けを行い(ステップS14)、拡大率に基づいて拡大対象となるの数を決定し(ステップS15)、対象となるに拡大処理を実行する(ステップS16)。なお、図4に示すコスト計算処理においては、縦方向に隣接画素を考慮したコストの重み付け(ステップS22)、スペースを考慮した重み付け(ステップS23)、及び同一コストを有するの重み付け(ステップS24)を実行する。また、本例の拡大処理では、対象となるフォントを縦方向及び横方向に同一の拡大率で拡大するので、ステップS15で使用する拡大率は行方向拡大処理において使用する拡大率と同一となる。
【0058】
こうして、行方向及び列方向に拡大処理が完了すると、CPU1は得られたフォント、即ち処理フォントを処理フォントメモリ14に記憶し(ステップS5)、必要に応じて表示部12に表示する。こうして、拡大後のフォントが携帯端末装置10の表示部12上に表示される。
【0059】
以上のように、本発明のフォント拡大処理では、対象となるフォントの構成(フォント構成画素のパターン)に基づいて行、列ごとにコストを計算し、コストに基づいて適切な行、列を拡大する。具体的には、線分に近い行、列は拡大されにくくすることにより、文字中の線分部分が必要以上に拡大されることを防止する(ステップS22)。また、端部にスペースが多い文字については、スペース部分のみが拡大されて文字部分の拡大が不十分になることを防止する(ステップS23)。さらに、同一パターンを有する行、列が隣接する場合には、それらが拡大されにくくして、文字中の特定の部分のみが必要以上に拡大されることを防止する(ステップS24)。これらの処理により、文字を構成する画素パターンを考慮して、拡大後の文字のバランスが不自然とならないようにし、自然な拡大を可能としている。
【0060】
なお、以上説明したフォント拡大処理は、表示部12上に表示すべき文字列が決定された時点で1文字ずつ実行することができる。また、ユーザが表示フォントのサイズ変更などを指定した場合には、フォントROM22内に予め用意されている全ての元データについて拡大処理を行ってその結果を処理フォントメモリ14内に格納してもよい。いずれの場合でも、上述のようにフォント拡大処理自体は整数の単純な演算で済むので、処理に必要な時間は非常に短く、ユーザが不快に感じるほどの処理時間を要することはない。
【0061】
[フォント縮小処理]
次に、フォント縮小処理について説明する。フォント縮小処理の図8に示す。フォント縮小処理は、基本的にフォント拡大処理と同様に行われる。即ち、CPU1は、フォント縮小指示を受け取ると(ステップS41)、対象となるフォントの元データをフォントROM22から抽出し、作業メモリであるRAM24に展開する(ステップS42)。次に、CPU1は、行方向縮小処理を行い(ステップS43)、さらに列方向縮小処理を行う(ステップS44)。そして、処理フォントが作成されると、CPU1は、作成された処理フォントを処理フォントメモリ14に記憶する(ステップS45)とともに、表示部12に表示する(ステップS46)。こうして、フォント縮小処理がなされる。
【0062】
次に、フォント縮小処理における行方向縮小処理について図9を参照して説明する。図9は、行方向縮小処理のフローチャートである。図9に示す行方向縮小処理は、基本的に図3に示すフォント拡大処理における行方向拡大処理と同様の手順で行われる。即ち、CPU1は、対象となるフォントを単位に分割し(ステップS51)、ごとにコストを算出し(ステップS52)、全てのについてコストが得られると(ステップS53;Yes)、コストの低い順にを順序付けする(ステップS54)。次に、CPU1は、縮小率に基づいて縮小するの数を決定し(ステップS55)、対象となるについて縮小処理を行う。
【0063】
このように、フォント縮小処理における行方向縮小処理は、基本的な流れはフォント拡大処理における行方向拡大処理と同様である。但し、フォント縮小処理における行方向縮小処理は、ステップS52におけるコスト計算方法及びステップS56における縮小方法において、フォント拡大処理の場合と異なる。以下、これについて説明する。
【0064】
まず、コスト計算について説明する。フォント拡大処理におけるコストは、線分量、即ち各行又は列に含まれる画素が線分に近いか、ドットに近いかを示す値であった。これに対し、フォント縮小処理におけるコストは、非類似度である。具体的には、CPU1は各に対し、隣のとの排他的論理和(XOR)を算出する。排他的論理和の値は、隣接する画素が同じであると「0」となり、隣接する画素が異なると「1」となる。よって、各に含まれる各フォント構成画素について排他的論理和を求め、その値が「1」となるフォント構成要素の数をそののコストとする。よって、コストが高いほど、そのと隣接するとのフォント画素パターンは非類似であり、コストが低いほど、そのと隣接するとのフォント画素パターンは類似であることになる。こうして、コストは隣接するとの非類似度を示す値となる。
【0065】
即ち、あるのコストが低いということは、そののフォント画素パターンが隣接するのフォント画素パターンと類似していることを意味する。よって、類似している画素パターンを有するを優先的に縮小の対象とすることにより、類似しているを削除する。これは、隣接するが相互に類似している場合には、それを優先的に削除しても、文字全体に与える影響、違和感は少ないであろうとの発想に基づいている。これにより、自然な縮小が可能となる。
【0066】
行方向縮小処理が終わると、次に列方向縮小処理が行われるが(ステップS44)、これは行方向縮小処理と基本的に同様である。対象となるフォントを単位に分割し(ステップS51)、ごとにコストを算出し(ステップS52)、全てのについてコストが得られると(ステップS53;Yes)、コストの低い順にを順序付けする(ステップS54)。そして、CPU1は、縮小率に基づいて縮小するの数を決定し(ステップS55)、対象となるについて縮小処理を行う。
【0067】
図10(a)〜(c)に列方向縮小処理の様子を示す。まず、図10(a)に示すように各についてコスト計算が行われ、次に図10(b)に示すようにコストの低い順にの順序付けが行われ、コストが低いから順に縮小の対象となる。ステップS56の縮小処理においては、例えば図10(c)に示すように、コストの低いから順にその行が削除される。図10(c)の例では、コストの低い3つの(A、B、C)が削除されている。
【0068】
以上説明したように、本発明のフォント縮小処理では、対象となるフォントを行方向及び列方向に分割し、それぞれ隣接する行又は列との非類似度を考慮して縮小を行う。よって、フォント画素パターンが類似する行又は列が隣接している部分を優先して縮小(行又は列の削除)を行うので、縮小後のフォントが不自然となることが少なくなる。
【0069】
図11(a)及び(b)に、単純な座標変換によるフォント拡大・縮小処理と、本発明によるフォント拡大・縮小処理により得られた拡大・縮小フォントの例を示す。図からわかるように、単純な座標変換処理による拡大・縮小フォントでは縦や横のストロークが拡大により2重になったり(「本」という文字の横線、「肌」という文字の右側の縦線など)、斜めの線がギザギザに見えたりしている。また、縮小により、文字の左右のバランスが崩れたり(「本」という文字の左右のバランス)、画素同士が連結して別の文字に見えたり(「肌」という文字の左側が「月」ではなく「目」に見える)している。これに対し、本発明によるフォント拡大・縮小処理では、そのような不具合は生じず、自然な拡大・縮小フォントが得られている。
【0070】
[行方向処理と列方向処理の順序]
次に、フォント拡大/縮小処理における行方向拡大/縮小処理と、列方向拡大/縮小処理の順序について検討する。先に説明したフォント拡大/縮小処理においては、まず行方向の拡大/縮小処理を行い、次に列方向の拡大/縮小処理を行っている(即ち、まず横方向に拡大/縮小し、次に縦方向に拡大/縮小している)。しかし、これは1つの例であり、列方向の拡大/縮小処理を先に行い、次に行方向の拡大/縮小処理を行うことも可能である。そして、いずれが好ましいかは、処理の対象となるフォントの構成に依存する。
【0071】
図12(a)及び(b)に、同一の画素パターンに対して異なる順序で拡大を行った場合の例を示す。図12(a)の例は、まず縦方向に拡大を行い、次に横方向に拡大を行った例である。図12(a)において、最も左の元データ50aにおいて水平方向のコストを計算すると上から2行目が最も小さい。よって、上から2行目を縦方向に1画素分拡大すると真ん中のデータ50bが得られる。次に、データ50bにおいて垂直方向のコストを計算すると左から4目及び5目のコストが最も小さい。よって、この一方を横方向に1画素分拡大すると、最も右の拡大後データ50cが得られる。
【0072】
一方、図12(b)の例は、まず横方向に拡大を行い、次に縦方向に拡大を行った例である。図12(b)において、最も左の元データ60aにおいて垂直方向のコストを計算すると、左から4目及び5目が最も小さい。よって、その一方を横方向に1画素分拡大すると真ん中のデータ60bが得られる。次に、データ60bにおいて水平方向のコストを計算すると、上から1行目及び3行目のコストが最も小さい。よって、上から1行目を縦方向に1画素分拡大すると、最も右の拡大後データ60cが得られる。
【0073】
このように、元データが同一でも、縦→横の順で拡大するか、横→縦の順で拡大するかによって、結果として得られるデータは異なる。図12(a)及び(b)の例では、元データに対しては図12(a)に示すように縦→横の順で拡大した方が自然に拡大がなされる。よって、全ての文字に対して自然な拡大を行うためには、文字ごとに実験的に縦→横、及び横→縦の順で拡大処理を行ってどちらの順序で拡大を行う方が自然な処理フォントが得られるかを予め決めておくことが好ましい。そして、図12(c)に模式的に示すように、各フォントの元データに対して、拡大/縮小処理を行う場合に、縦→横の順がよいか、横→縦の順がよいかを示す処理順序情報(例えばフラグなど)を属性データとして付属させることがより好ましい。こうすれば、CPU16は、フォント拡大/縮小処理の実行時にフォントROM22から読み出したフォントに付属する処理順序情報を参照し、それに示す順序でフォントの拡大・縮小を行えばよい。なお、同一のフォントであっても、拡大の場合に好ましい処理順序と、縮小の場合に好ましい処理順序とが異なる場合もあるので、拡大/縮小について個別に処理順序情報を用意することが好ましい。さらに、拡大率/縮小率によって好ましい処理順序が異なる場合には、拡大率/縮小率ごとに処理順序情報を用意すればよい。
【0074】
なお、本実施形態においては、コストの小さい行又は列から順に画素の拡大又は縮小処理を行うものとしたが、本発明の適用範囲はこれに限られるものではなく、例えば本実施形態において用いたコストの逆数を取ったものを新しい意味でのコストと定義すれば、コストの大きい行又は列から順に画素の拡大又は縮小処理を行うことにより、本実施形態と同様の効果を得ることができる。
【図面の簡単な説明】
【図1】 本発明の実施形態にかかるビットマップフォントの拡大・縮小処理を適用した携帯端末装置の概略構成を示す。
【図2】 本発明によるフォント拡大処理のフローチャートである。
【図3】 行(列)方向拡大処理のフローチャートである。
【図4】 フォント拡大処理におけるコスト計算処理のフローチャートである。
【図5】 フォント拡大処理におけるコスト計算処理例を示す図である。
【図6】 コスト計算処理の例を示す図である。
【図7】 行(列)方向拡大処理の例を示す図である。
【図8】 フォント縮小処理のフローチャートである。
【図9】 行(列)方向縮小処理のフローチャートである。
【図10】 フォント縮小処理におけるコスト計算処理例を示す図である。
【図11】 本発明によるフォント拡大/縮小処理と、単純な座標変換によるフォント拡大/縮小処理の結果を比較する図である。
【図12】 行方向処理と列方向処理の処理順序と処理結果との比較、及び、処理順序情報を含むフォントデータのデータ構造例を示す図である。
【符号の説明】
10 携帯端末装置
12 表示部
14 処理フォントメモリ
16 CPU
18 入力部
20 プログラムROM
22 フォントROM
24 RAM
[0001]
BACKGROUND OF THE INVENTION
  The present invention relates to bitmap font enlargement / reduction processing.
[0002]
[Background]
  In devices such as mobile phones and PDAs (Personal Digital Assistants), bitmap fonts are used to display characters. The bitmap font displays characters, symbols, and the like according to a pixel arrangement pattern prepared in advance. Unlike outline fonts that display characters, symbols, and the like as a set of vector data, bitmap fonts have a simple pixel arrangement pattern, so the amount of data per character is small. Therefore, bitmap fonts are used in mobile phones, PDAs, and the like that have a relatively small number of pixels in the display area.
[0003]
[Problems to be solved by the invention]
  When displaying characters and symbols on a display device, enlargement or reduction of characters may be required. In the case of bitmap fonts used for mobile phones and PDAs, the size of one character is small, and the thickness of the character is often expressed by one pixel. In such a case, if the bitmap font is enlarged by a simple coordinate transformation based on the aspect ratio between the original character size and the enlarged character size, an unnatural thickness part will appear in the enlarged character. It can be done. In addition, if the same small bitmap font is reduced by simple coordinate conversion as described above, the characters are crushed after the reduction, lines with an unnatural thickness are formed, or the character parts are improperly connected and differ. It may look like letters.
[0004]
  The present invention has been made in view of the above points, and an object of the present invention is to naturally enlarge and reduce a small-sized bitmap font used in a mobile phone, a PDA, or the like.
[0005]
[Means for Solving the Problems]
  The present inventionIn the font processing apparatus, data acquisition means for acquiring font data of a bitmap font, and a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, the row or column Calculating means for calculating the number of pixels constituting the font data as a line segment, and adding to the line segment for each pixel having pixels adjacent in the arrangement direction among the pixels constituting the font data; Horizontal direction enlargement processing means for horizontally enlarging a predetermined number of columns in order from the smallest amount column, and vertical direction enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the smallest line segment amount row And comprising.
[0006]
  Further, data acquisition means for acquiring font data of a bitmap font, and the font data for each row or column for a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged The number of pixels to be calculated is calculated as a line segment amount, and addition to the line segment amount is performed for each pixel having pixels adjacent in the arrangement direction among the pixels constituting the font data, and the reciprocal of the added line segment amount is calculated. A calculating means for calculating; a horizontal expansion processing means for horizontally expanding a predetermined number of columns in order from the column having the largest reciprocal of the line segment amount; and a predetermined number of rows in order from the row having the larger reciprocal of the line segment amount. Vertical direction enlargement processing means for enlarging in the vertical direction.
[0007]
  Further, data acquisition means for acquiring font data of a bitmap font, and the font data for each row or column for a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged Calculation means for calculating the number of pixels to be processed as a line segment amount, horizontal enlargement processing means for expanding a predetermined number of columns in the horizontal direction in order from the column with the smallest line segment amount, and predetermined in order from the row with the smallest line segment amount A vertical enlargement processing unit for enlarging a number of rows in the vertical direction, and the font data is a process indicating the order in which the vertical enlargement process and the horizontal enlargement process should be executed in the enlargement process of the font data. Order control means is included, which includes order information, and controls the execution order of the horizontal direction enlargement process and the vertical direction enlargement process according to the process order information.
[0008]
  Further, data acquisition means for acquiring font data of a bitmap font, and the font data for each row or column for a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged Calculation means for calculating the number of pixels to be processed as a line segment amount, horizontal enlargement processing means for horizontally expanding a predetermined number of columns in order from the column having the largest reciprocal number of the line segment amount, and the reciprocal number of the line segment amount being large Vertical enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the row, and the font data should be subjected to vertical enlargement processing and horizontal enlargement processing in the enlargement processing of the font data And further comprising order control means for controlling the execution order of the horizontal enlargement process and the vertical enlargement process in accordance with the process order information.
[0009]
  Further, data acquisition means for acquiring font data of a bitmap font, processing order information indicating an order in which column direction enlargement processing and row direction enlargement processing should be performed in the enlargement processing of the font data, and based on the font data For a plurality of rows or columns in which a plurality of pixels in a pixel configuration are arranged, according to the calculation order means for calculating the number of pixels constituting the font data for each row or column as a line segment amount, and the processing order information, An enlargement process for enlarging a predetermined number of columns in the row direction in order from the column with the smallest line segment amount, and sequentially from the row with the smallest line segment amount Order control means for controlling the execution order of the enlargement process for enlarging a predetermined number of rows in the column direction.
[0010]
  Further, data acquisition means for acquiring font data of a bitmap font, processing order information indicating an order in which column direction enlargement processing and row direction enlargement processing should be performed in the enlargement processing of the font data, and based on the font data For a plurality of rows or columns in which a plurality of pixels in a pixel configuration are arranged, according to the calculation order means for calculating the number of pixels constituting the font data for each row or column as a line segment amount, and the processing order information, Enlarging process for enlarging a predetermined number of columns in the row direction in order from the column having the largest reciprocal of the line segment amount, and enlarging process for enlarging the predetermined number of rows in the column direction in order from the row having the larger inverse of the line segment amount Order control means for controlling the execution order.
[0011]
  Also, a data acquisition means for acquiring font data of a bitmap font, and a pixel configuration of a row adjacent to each row with respect to a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged Calculation means for calculating the dissimilarity of each pixel or calculating the dissimilarity of the pixel configuration with the adjacent column for each column, and a predetermined number of columns in order from the least dissimilarity column in the horizontal direction Horizontal direction reduction processing means, and vertical direction reduction processing means for reducing a predetermined number of rows in the vertical direction in order from the low dissimilarity row, and the font data is reduced by the font data. Includes processing order information indicating the order in which the vertical reduction processing and the horizontal reduction processing should be executed, and controls the execution order of the horizontal reduction processing and the vertical reduction processing according to the processing order information. Further comprising a mechanism control means.
[0012]
  Further, data acquisition means for acquiring font data of a bitmap font, processing order information indicating an order in which column direction reduction processing and row direction reduction processing should be executed in the reduction processing of the font data, and based on the font data Based on the exclusive OR of the pixel configuration of the row or column and the pixel configuration of the row or column adjacent to the row or column for a plurality of rows or columns in which a plurality of pixels in the pixel configuration are arranged And calculating means for calculating the dissimilarity, reduction processing for reducing a predetermined number of columns in the row direction in order from the column with the lower dissimilarity according to the processing order information, and the row with the lower dissimilarity Order control means for controlling the execution order of the reduction processing for reducing a predetermined number of rows in the column direction in order.
[0013]
  Also, a data acquisition means for acquiring font data of a bitmap font, and a pixel configuration of a row adjacent to each row with respect to a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged A calculation means for calculating the dissimilarity of each pixel or calculating a dissimilarity of a pixel configuration with an adjacent column for each column, and reducing a predetermined number of columns in the horizontal direction in descending order of the reciprocal of the dissimilarity And a vertical direction reduction processing means for reducing a predetermined number of rows in the vertical direction in order from a row having a large reciprocal of the dissimilarity, and the font data includes the font data Processing order information indicating the order in which the vertical reduction process and the horizontal reduction process should be executed in the data reduction process, and the execution order of the horizontal reduction process and the vertical reduction process according to the processing order information Further comprising a sequence control means for controlling.
[0014]
  Further, data acquisition means for acquiring font data of a bitmap font, processing order information indicating an order in which column direction reduction processing and row direction reduction processing should be executed in the reduction processing of the font data, and based on the font data Based on the exclusive OR of the pixel configuration of the row or column and the pixel configuration of the row or column adjacent to the row or column for a plurality of rows or columns in which a plurality of pixels in the pixel configuration are arranged A non-similarity calculating unit, and a reduction process for reducing a predetermined number of columns in a row direction in order from a column having a large reciprocal of the dissimilarity according to the processing order information, and a reciprocal of the non-similarity Order control means for controlling the execution order of a reduction process for reducing a predetermined number of rows in the column direction in order from the rows.
[0015]
  In the terminal device of the present invention, the font processing device, storage means for storing the font data generated by the font processing device, and a display unit for displaying the font data generated by the font processing device, Prepare.
[0016]
  In the display device of the present invention, the font processing device, storage means for storing the font data generated by the font processing device, and a display unit for displaying the font data generated by the font processing device, Prepare.
[0017]
  The font processing method of the present invention is a font processing method by a font processing apparatus, and includes a data acquisition step of acquiring font data of a bitmap font, and a plurality of pixels in which a plurality of pixels in the pixel configuration of the font data are arranged. For each row or column, the number of pixels constituting the font data for each row or column is calculated as a line segment amount, and for each pixel having pixels adjacent in the arrangement direction among the pixels constituting the font data A calculation step for adding to the line segment amount, a horizontal enlargement process step for horizontally expanding a predetermined number of columns in order from the column with the smallest line segment amount, and a predetermined number in order from the row with the smallest line segment amount A vertical enlargement processing step for enlarging the first row in the vertical direction.
[0018]
  Further, in the font processing method by the font processing device, a data acquisition step of acquiring font data of a bitmap font, and a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, The number of pixels constituting the font data for each row or column is calculated as a line segment amount, and addition to the line segment amount is performed for each pixel having pixels adjacent to the arrangement direction among the pixels constituting the font data. Performing a calculation step of calculating the reciprocal of the added line segment amount, a horizontal expansion processing step for horizontally expanding a predetermined number of columns in order from the column having the largest reciprocal of the line segment amount, and A vertical enlargement processing step for enlarging a predetermined number of rows in the vertical direction in order from the row having the largest reciprocal number.
[0019]
  Further, in the font processing method by the font processing device, a data acquisition step of acquiring font data of a bitmap font, and a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, A calculation step of calculating the number of pixels constituting the font data for each row or column as a line segment amount, and a horizontal direction enlargement process step for horizontally expanding a predetermined number of columns in order from the column having the smallest line segment amount And a vertical direction enlargement process step for enlarging a predetermined number of lines in the vertical direction in order from the line with the smallest amount of line segment, and the font data is a vertical direction enlargement process in the reduction process of the font data. Processing order information indicating the order in which the horizontal enlargement process should be executed, and according to the processing order information, the execution order of the horizontal enlargement process and the vertical enlargement process Control to.
[0020]
  Further, in the font processing method by the font processing device, a data acquisition step of acquiring font data of a bitmap font, and a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, A calculation step of calculating the number of pixels constituting the font data for each row or column as a line segment amount, and a horizontal expansion for expanding a predetermined number of columns in the horizontal direction in order from a column having a large reciprocal of the line segment amount A processing step and a vertical enlargement processing step for enlarging a predetermined number of rows in the vertical direction in order from the line having the largest reciprocal of the line segment amount. Processing order information indicating the order in which the direction enlargement process and the horizontal direction enlargement process should be executed, and according to the process order information, the horizontal direction enlargement process and the vertical direction enlargement process Controlling the execution order.
[0021]
  Further, in the font processing method by the font processing device, a data acquisition step of acquiring font data of a bitmap font, and a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, A calculation step of calculating a dissimilarity of a pixel configuration with an adjacent row for each row or calculating a dissimilarity of a pixel configuration with an adjacent column for each column; A horizontal reduction processing step for reducing a predetermined number of columns in the horizontal direction in order from the column having the lower dissimilarity; and a method for reducing the predetermined number of rows in the vertical direction in order from the row having the lower dissimilarity. The font data includes processing order information indicating an order in which the vertical reduction processing and the horizontal reduction processing should be performed in the reduction processing of the font data, and according to the processing order information The execution order of the horizontal direction reduction process and the vertical direction reduction process is controlled.
[0022]
  Further, in the font processing method by the font processing device, a data acquisition step of acquiring font data of a bitmap font, and a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, A calculation step of calculating the dissimilarity of the pixel configuration with the adjacent row for each row or calculating the dissimilarity of the pixel configuration with the adjacent column for each column, and a column having a large reciprocal of the dissimilarity A horizontal reduction processing step for reducing a predetermined number of columns in the horizontal direction in order, and a vertical reduction processing step for reducing a predetermined number of rows in the vertical direction in order from the row having the larger reciprocal of the dissimilarity. The font data includes processing order information indicating the order in which the vertical reduction processing and the horizontal reduction processing should be performed in the reduction processing of the font data, and according to the processing order information Controlling the execution order of the vertical direction reduction processing and the horizontal direction reduction processing.
[0023]
  The font processing program of the present invention is a font processing program executed on a computer, wherein the computer is applied to a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged. The number of pixels constituting the font data for each row or column is calculated as a line segment amount, and the line segment amount is calculated for each pixel having pixels adjacent to the arrangement direction among the pixels constituting the font data. Calculation means for performing addition, horizontal expansion processing means for horizontally expanding a predetermined number of columns in order from the column with the smallest line segment amount, and expanding a predetermined number of rows in the vertical direction in order from the row with the smallest line segment amount Function as a vertical enlargement processing means.
[0024]
  Further, a font processing program executed in a computer, wherein the computer is executed for each row or column with respect to a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged. The number of pixels constituting the font data is calculated as a line segment amount, and addition to the line segment amount is performed for each pixel having pixels adjacent in the arrangement direction among the pixels constituting the font data. Calculation means for calculating the reciprocal of the line segment amount, horizontal enlargement processing means for horizontally expanding a predetermined number of columns in order from the column having the largest reciprocal number of the line segment amount, and a predetermined number in order from the row having the larger reciprocal number of the line segment amount It functions as a vertical direction enlargement processing means for enlarging the rows in the vertical direction.
[0025]
  Further, a font processing program executed in a computer, wherein the computer is executed for each row or column with respect to a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged. Calculation means for calculating the number of pixels constituting the font data as a line segment amount, horizontal enlargement processing means for horizontally enlarging a predetermined number of columns in order from the column with the smallest line segment amount, rows with a small line segment amount The vertical direction enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order, and the order in which the vertical direction enlargement process and the horizontal direction enlargement process should be executed in the enlargement process of the font data included in the font data According to the processing order information, it functions as order control means for controlling the execution order of the horizontal enlargement process and the vertical enlargement process.
[0026]
  Further, a font processing program executed in a computer, wherein the computer is executed for each row or column with respect to a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged. Calculation means for calculating the number of pixels constituting the font data as a line segment amount, horizontal enlargement processing means for horizontally enlarging a predetermined number of columns in order from a column having a large reciprocal of the line segment amount, Predetermined from the line with the largest inverse Vertical direction enlargement processing means for enlarging a number of lines in the vertical direction, processing order information included in the font data and indicating the order in which the vertical direction enlargement process and the horizontal direction enlargement process should be executed in the enlargement process of the font data Accordingly, the function is functioned as an order control means for controlling the execution order of the horizontal enlargement process and the vertical enlargement process.
[0027]
  A font processing program executed in a computer, wherein the computer is adjacent to each of a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged. A calculation means for calculating a dissimilarity of a pixel configuration with a row or calculating a dissimilarity of a pixel configuration with an adjacent column for each column; a predetermined number of columns in a horizontal direction in order from the column with the lowest dissimilarity A horizontal reduction processing means for reducing the font data, a vertical reduction processing means for reducing a predetermined number of lines in the vertical direction in order from the line having the smallest dissimilarity, and reduction of the font data included in the font data In the processing, the execution order of the horizontal reduction process and the vertical reduction process is controlled according to the processing order information indicating the order in which the vertical reduction process and the horizontal reduction process should be executed. Sequence control means for, to function as a.
[0028]
  A font processing program executed in a computer, wherein the computer is adjacent to each of a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged. Calculating means for calculating a dissimilarity of a pixel configuration with a row or calculating a dissimilarity of a pixel configuration with an adjacent column for each column; a predetermined number of columns in order from a column having a large reciprocal of the dissimilarity A horizontal reduction processing means for reducing in the horizontal direction, a vertical reduction processing means for reducing a predetermined number of lines in the vertical direction in order from the line having the largest reciprocal of the dissimilarity, and included in the font data and In the font data reduction process, the horizontal direction reduction process and the vertical direction reduction process are performed according to processing order information indicating the order in which the vertical direction reduction process and the horizontal direction reduction process should be executed. Sequence control means for controlling the line order, to function as a.
[0029]
  In the present invention, the predetermined number is determined by the number of vertical and horizontal pixels of the font data and the enlargement ratio of the font data, or the number of vertical and horizontal pixels of the font data Preferably, it is determined by the reduction rate of the font data. Further, the calculation means calculates the dissimilarity for each row or column based on an exclusive OR of a pixel configuration of the row or column and a pixel configuration of a row or column adjacent to the row or column. It is preferable to calculate.
[0030]
  According to the font processing apparatus of the present invention, the pixel configuration in the horizontal direction or the vertical direction of the pixels constituting the font data is digitized, and the enlargement / reduction process is performed based on the value. Therefore, analysis of the pixel configuration can be performed by simple calculation, and rapid processing is possible.
[0031]
According to one aspect of the font processing apparatus or method of the present invention, a row or column having a pixel configuration close to a point or a set of points is preferentially enlarged, and a row or column having a pixel configuration close to a line segment is enlarged. It becomes difficult. Therefore, the line segment constituting the character is not enlarged more than necessary and the balance of the entire character is not lost, and natural enlargement is performed.
[0032]
According to one aspect of the font processing apparatus or method of the present invention, for each font to be enlarged, a more natural enlarged font can be obtained by performing either the vertical enlargement process or the horizontal enlargement process first. Is determined in advance, and processing order information indicating the order is attached to the font data. Therefore, the font processing apparatus refers to the processing order information to determine the execution order of the vertical enlargement process and the horizontal enlargement process, thereby obtaining a natural enlarged font.
[0033]
According to one aspect of the font processing apparatus or method of the present invention, since adjacent portions of rows or columns having similar pixel configurations are preferentially reduced, the balance of the entire character is not lost, and natural reduction is achieved. Made.
[0034]
The terminal device of the present invention can be a portable terminal device such as a mobile phone or a PDA. Since the font processing apparatus of the present invention can quickly enlarge or reduce the font by a simple calculation, natural font enlargement / reduction can be performed even in such a portable terminal device.
[0035]
  In addition, the present inventionThe above-described font processing apparatus can be realized by executing the font processing program on a computer in the terminal device.
[0036]
DETAILED DESCRIPTION OF THE INVENTION
  Preferred embodiments of the present invention will be described below with reference to the drawings.
[0037]
  [Configuration of mobile terminal device]
  FIG. 1 shows a schematic configuration of a mobile terminal device to which a bitmap font enlargement / reduction process according to an embodiment of the present invention is applied. In FIG. 1, a mobile terminal device 10 is a terminal device having a relatively small image display area, such as a mobile phone or a PDA. The mobile terminal device 10 includes a display unit 12, a processing font memory 14, a CPU 16, an input unit 18, a program ROM 20, a font ROM 22, and a RAM 24.
[0038]
  The display unit 22 can be a light and thin display device such as an LCD (Liquid Crystal Display), and displays characters composed of bitmap fonts in the display area.
[0039]
  The input unit 18 can be composed of various operation buttons for a mobile phone, a tablet that detects contact with a touch pen for a PDA, and the like, and is used when a user performs various instructions and selections. . Instructions, selections, and the like input to the input unit 18 are converted into electrical signals and sent to the CPU 16.
[0040]
  The program ROM 20 stores various programs for executing various functions of the mobile terminal device 10. In particular, in this embodiment, a bitmap font enlargement / reduction program (hereinafter referred to as a “font enlargement / reduction program”), It stores character display programs using bitmap fonts.
[0041]
  The font ROM 22 stores bitmap font original data (also referred to as “character data”). The original data of the bitmap font is generally a font having the same aspect ratio (also referred to as “square font”), such as 16 × 16 dots.
[0042]
  The RAM 24 is used as a working memory when the original data of the bitmap font is enlarged / reduced according to the bitmap font enlargement / reduction program. On the other hand, the processing font memory 14 is a memory for temporarily storing a font (hereinafter also referred to as “processing font”) created by enlargement or reduction processing by a bitmap font enlargement / reduction program. The processing font memory 14 can be normally configured by a RAM, a flash memory, or the like, and retains stored contents until the mobile terminal device 10 is powered off.
[0043]
  The CPU 16 executes various functions of the mobile terminal device 10 by executing various programs stored in the program ROM 20. In particular, in this embodiment, a character display program stored in the program ROM 20 is read and executed to display characters on the display unit 12. Similarly, by reading and executing a font enlargement / reduction program stored in the program ROM 20, the original data of the bitmap font stored in the font ROM 22 is enlarged and reduced to generate a processed font. The CPU 16 realizes various functions of the mobile terminal device 10 by executing various programs other than these, but since these are not directly related to the present invention, description thereof is omitted.
[0044]
  [Font expansion processing]
  Next, a font enlargement / reduction process, which is a characteristic part of the present invention, will be described. The font enlargement / reduction process is performed by the CPU 16 executing the font enlargement / reduction program stored in the program ROM 20 as described above. Hereinafter, the font enlargement process and the font reduction process will be described in order.
[0045]
  First, the font enlargement process will be described with reference to FIGS. 2 to 4 are flowcharts of the main routine and subroutine of the font enlargement process, and FIGS. 5 to 7 are diagrams for explaining each process by the font enlargement process.
[0046]
  Referring to FIG. 2, first, the CPU 1 receives a font enlargement instruction (step S1). The font enlargement instruction is generated based on an instruction from the input unit 18 when, for example, the user operates the input unit 18 to specify, select or select a display font size or display mode. Note that even in cases other than instructions from the user, it may be necessary to enlarge the font according to the display content on the display unit 12. For example, when displaying specific character data in the display area, the character display program may automatically request font enlargement automatically.
[0047]
  When an instruction for enlarging the font is given, the CPU 1 reads the original data of the font to be displayed from the font ROM 22 and expands it to the RAM 24 which is a working memory (step S2). Then, the CPU 1 executes the line direction enlargement process, first enlarges the target font in the line direction (step S3), and then executes the column direction enlargement process to further add the font enlarged in the line direction. Enlarge in the direction (step S4). In the case of this example, the enlargement factor in the row direction and the enlargement factor in the column direction are set to be the same. When the font enlargement is completed in the row direction and the column direction in this way, the CPU 1 temporarily stores the enlarged font data as a process font in the process font memory 14 (step S5) and further displays it on the display unit 12 (step S5). Step S6). In this way, a specific font is enlarged and displayed on the display unit 12.
[0048]
  Next, details of the row direction enlargement processing performed in step S3 will be described with reference to the flowchart of FIG. In FIG. 3, the CPU 1 first selects a target font from a plurality of fonts.Column(Step S11). And CPU1 was obtained by the divisionColumnEach time, the cost is calculated (step S12). Here, the cost is a value obtained from the number of pixels constituting the font and the presence / absence of adjacent pixels, and indicates a line segment amount in the font enlargement process. That is, the higher the cost, the moreColumnMeans that it is not a point or a set of points, but a high degree of line segment.
[0049]
  FIG. 4 shows details of the cost calculation process in step S12. In the cost calculation process, first, as shown in FIG.ColumnThe number of font components is counted in units (step S21). In FIG. 5 (a), eachColumnThe numbers shown below (from the left, 0, 4, 3, 3, ...)ColumnShows the cost.
[0050]
  Next, as shown in FIG. 5B, addition for pixels having adjacent font constituent pixels is performed (step S22). In the example of FIG. 5B, “2” is added to the cost for each font constituent pixel having adjacent font constituent pixels. Thus, each result obtained by adding the cost for adjacent pixelsColumnCost of eachColumnShown below. By adding the cost for pixels that have adjacent pixels,ColumnIt is possible to classify to some extent whether the font constituent pixels existing in the are dots or lines. That is, oneColumnCost is large even if the number of font components included inColumnAbout thatColumnIt can be said that the font constituent pixels included in are close to line segments. And as will be described later, the cost value is large.ColumnThat is, the line segment
Close toColumnIt is difficult to enlarge.
[0051]
  Next, as shown in FIG. 6A, a weighting process is performed in consideration of the space (step S23). Specifically, eachColumn, The cost value is “+2” when the pixels at both ends are spaces (there are no font constituent pixels, which are indicated by spaces in FIGS. 5 and 6). Further, when the pixel inside one pixel of both ends is a space, the cost value is “+1”. This process takes into consideration the balance of the characters and the balance when the characters are arranged in the horizontal direction into a sentence. For example, when hiragana characters “shi” and the like are normally enlarged, only the left and right empty portions are enlarged, and the central font constituent pixels constituting the characters are not enlarged much. As a result, when viewed as an enlarged sentence, other characters are enlarged, but only the character “shi” appears to be small because the font component is not sufficiently enlarged. In order to prevent such problems, weighting is performed in consideration of space. As a result of this process, there are spaces at the upper and lower ends.ColumnIncreases the cost value and is difficult to expand.
[0052]
  Then have the same cost valueColumnIs performed (step S24). Specifically, there isColumnAbout adjacentColumnCompare the pattern of the font component pixel and the adjacentColumnAnd the font component pixel pattern is the sameColumnFor, the cost value is “+2”. This process is also performed in consideration of balance as a character. AdjacentColumnIf the patterns of the font constituent pixels are the same, the cost values are the same in the cost calculation so far. Therefore, having that cost valueColumnAre adjacent to each other when they are enlargedColumnBoth will be magnified. As a result, it has the same pixel patternColumnBoth of them will be enlarged, and only a part of one character will be enlarged more than necessary. So adjacentColumnIf they have the same pattern, increase the cost value andColumnBy making it difficult to enlarge, only a specific part in one character is prevented from being enlarged in a biased manner.
[0053]
  Thus, when the cost calculation process ends, the process returns to the row direction enlargement process shown in FIG. The CPU 1 then selects all the target fonts.ColumnIt is determined whether the cost calculation has been completed for (Step S13).ColumnCalculate the cost. All ofColumnWhen the cost calculation has been completed for (Step S13; Yes), as shown in FIG.ColumnAre ordered (step S14). In FIG. 7A, the cost is small.ColumnIn order, A, B, C,. Have the same costColumnIf there is more than one, it is close to the center of the characterColumnIn order to prevent the enlargement direction from being biased in the left-right direction, a higher order is assigned in order. In the example of FIG. 7 (a), there are six columns with a cost of “3”, but they are ordered as C, D, E, F, G, H so that they are distributed to the left and right sequentially from the center. Yes. In this way, the order of enlargement is set so that the characters are enlarged in a balanced manner from the center to the left and right.
[0054]
  Each in ascending order of costColumnWhen the ordering is completed, the CPU 1 enlarges based on the enlargement ratio.ColumnIs determined (step S15). Here, the enlargement ratio refers to a ratio of enlargement of the original data of the bitmap font by the current font enlargement process. When a font enlargement instruction is given in step S1, the instruction includes information on the enlargement ratio. For example, when the user gives an instruction to enlarge characters so that the characters can be easily seen, the enlargement ratio (for example, 120%, 150%, etc.) is selected. Further, the enlargement ratio is always determined even when the font enlargement process is automatically performed by the specific process of the mobile terminal device 10 regardless of the user's instruction. Therefore, based on the enlargement ratio,ColumnHow many out of the numberColumnDecide whether to enlarge. For example, the font to be enlargedColumnNumber 15ColumnIf it is (15 dots) and the enlargement ratio is determined to be 120% (1.2 times), the image is enlarged.ColumnIs 15 × 1.2 = 18 (Column) And threeColumnWill only expand. The examples of FIGS. 7A and 7B are examples in this case.
[0055]
  Thus expandingColumnWhen the number is determined, the CPU 1 executes an enlargement process (step S16). That is, the cost is smallColumnZoom in order fromColumnEnlarge as many as. The enlargement in this case is an object of enlargement, for example.ColumnWith the same font pixel patternColumnTo be expandedColumnThis is done by inserting it next to In the example of FIGS. 7A and 7B, the image is enlarged as described above.ColumnThe number of is 3ColumnTherefore, the cost shown in FIG.ColumnIn order fromColumn(Cost order is “A", "B", "C"Column) Have the same font component pixel patternColumnInsert. As a result, as shown in FIG.Column18 is inserted in the lateral direction as a whole.ColumnAn enlarged character of (18 dots) is obtained.
[0056]
  Thus, when the row direction enlargement process ends, the process returns to the main routine shown in FIG. Then, the CPU 1 performs a column direction enlargement process (step S4). Note that the target font in this column direction enlargement process is the font after the enlargement process in the row direction. Therefore, in the example of FIGS. 7A and 7B, the horizontal direction is 18ColumnIt is performed for the font that becomes (dot).
[0057]
  The column direction enlargement process is basically the same process as the row direction enlargement process shown in FIG.lineDo it every time. In other words, the font to be enlargedline(Step S11)lineCost calculation for each (step S12), in order from the lowest costlineAre ordered (step S14), and are subject to enlargement based on the enlargement ratio.lineIs determined (step S15) and becomes the targetlineThe enlargement process is executed (step S16). Note that the cost calculation processing shown in FIG. 4 includes weighting in consideration of adjacent pixels in the vertical direction (step S22), weighting in consideration of space (step S23), and the same cost.lineIs weighted (step S24). In the enlargement process of this example, the target font is enlarged in the vertical and horizontal directions at the same enlargement ratio, so the enlargement ratio used in step S15 is the same as the enlargement ratio used in the row direction enlargement process. .
[0058]
  When the enlargement process is completed in the row direction and the column direction in this way, the CPU 1 stores the obtained font, that is, the processed font in the processed font memory 14 (step S5) and displays it on the display unit 12 as necessary. In this way, the enlarged font is displayed on the display unit 12 of the mobile terminal device 10.
[0059]
  As described above, in the font enlargement processing of the present invention, the cost is calculated for each row and column based on the configuration of the target font (pattern of font constituent pixels), and the appropriate row and column are enlarged based on the cost. To do. Specifically, by making the rows and columns close to the line segment difficult to be enlarged, the line segment part in the character is prevented from being enlarged more than necessary (step S22). In addition, for a character having a large space at the end, only the space portion is enlarged and the enlargement of the character portion is prevented from becoming insufficient (step S23). Furthermore, when rows and columns having the same pattern are adjacent to each other, they are difficult to enlarge, and only a specific part in the character is prevented from being enlarged more than necessary (step S24). With these processes, the pixel pattern constituting the character is taken into consideration so that the balance of the character after enlargement is not unnatural and natural enlargement is possible.
[0060]
  The font enlargement process described above can be executed character by character when a character string to be displayed on the display unit 12 is determined. When the user designates changing the display font size or the like, the enlargement process may be performed on all original data prepared in advance in the font ROM 22 and the result may be stored in the processing font memory 14. . In either case, as described above, the font enlargement process itself can be a simple integer calculation, so the time required for the process is very short, and the processing time that the user feels uncomfortable is not required.
[0061]
  [Font reduction processing]
  Next, the font reduction process will be described. FIG. 8 shows the font reduction process. The font reduction process is basically performed in the same manner as the font enlargement process. That is, when the CPU 1 receives a font reduction instruction (step S41), the CPU 1 extracts the original data of the target font from the font ROM 22 and develops it in the RAM 24, which is a working memory (step S42). Next, the CPU 1 performs row direction reduction processing (step S43), and further performs column direction reduction processing (step S44). When the processed font is created, the CPU 1 stores the created processed font in the processed font memory 14 (step S45) and displays it on the display unit 12 (step S46). In this way, font reduction processing is performed.
[0062]
  Next, the line direction reduction process in the font reduction process will be described with reference to FIG. FIG. 9 is a flowchart of the row direction reduction process. The line direction reduction process shown in FIG. 9 is basically performed in the same procedure as the line direction enlargement process in the font enlargement process shown in FIG. That is, the CPU 1 selects the target font.ColumnDivided into units (step S51),ColumnThe cost is calculated for each (step S52) and allColumnIf the cost is obtained (step S53; Yes), the order from the lowest costColumnAre ordered (step S54). Next, the CPU 1 reduces based on the reduction rate.ColumnIs determined (step S55) and becomes the targetColumnPerform reduction processing for.
[0063]
  Thus, the basic flow of the line direction reduction process in the font reduction process is the same as the line direction enlargement process in the font enlargement process. However, the line direction reduction process in the font reduction process is different from the font enlargement process in the cost calculation method in step S52 and the reduction method in step S56. This will be described below.
[0064]
  First, cost calculation will be described. The cost in the font enlarging process is a value indicating the amount of a line segment, that is, whether a pixel included in each row or column is close to a line segment or a dot. In contrast, the cost of font reduction processing isDissimilarityIt is. Specifically, the CPU 1ColumnAgainstColumnAnd the exclusive OR (XOR) is calculated. The value of the exclusive OR is “0” when adjacent pixels are the same, and is “1” when adjacent pixels are different. Therefore, eachColumnXOR is calculated for each font component pixel included in the number of font components whose value is “1”.ColumnCost. Therefore, the higher the cost, the moreColumnAdjacent toColumnAnd the font pixel pattern is dissimilar, and the lower the cost, theColumnAdjacent toColumnThe font pixel pattern is similar. Thus, the cost is adjacentColumnWithDissimilarityIs a value indicating.
[0065]
  That is, there isColumnThe low cost ofColumnAdjacent font pixel patternsColumnIt means that it is similar to the font pixel pattern. Therefore, it has a similar pixel patternColumnIs similar by preferentially reducingColumnIs deleted. This is adjacentColumnAre similar to each other, it is based on the idea that even if they are deleted preferentially, the effect on the whole character and the sense of incongruity will be small. Thereby, natural reduction becomes possible.
[0066]
  When the row direction reduction process ends, the column direction reduction process is performed next (step S44), which is basically the same as the row direction reduction process. The target fontlineDivided into units (step S51),lineThe cost is calculated for each (step S52) and alllineIf the cost is obtained (step S53; Yes), the order from the lowest costlineAre ordered (step S54). Then, the CPU 1 reduces based on the reduction rate.lineIs determined (step S55) and becomes the targetlinePerform reduction processing for.
[0067]
  10A to 10C show the state of the column direction reduction processing. First, as shown in FIG.lineCost calculation is performed for the, and then in order of increasing cost as shown in FIG.lineOrdering and low costlineIt becomes an object of reduction in order. In the reduction process in step S56, for example, as shown in FIG.lineThe rows are deleted in order. In the example of FIG. 10C, three low costline(A, B, C) is deleted.
[0068]
  As described above, in the font reduction processing according to the present invention, the target font is divided in the row direction and the column direction, and each of the adjacent rows or columns is divided.DissimilarityReduce in consideration of Therefore, since reduction (deletion of rows or columns) is performed with priority given to a portion where rows or columns having similar font pixel patterns are adjacent to each other, the reduced font is less likely to be unnatural.
[0069]
  FIGS. 11A and 11B show examples of enlarged / reduced fonts obtained by font enlargement / reduction processing by simple coordinate conversion and font enlargement / reduction processing according to the present invention. As can be seen from the figure, with the enlarged / reduced font by simple coordinate conversion processing, the vertical and horizontal strokes are doubled due to enlargement (such as the horizontal line of the characters “Book”, the vertical line on the right side of the characters “Skin”, etc.) ), Diagonal lines appear jagged. Also, due to the reduction, the left / right balance of the character is lost (the left / right balance of the character “book”), the pixels are connected together and look like another character (the left side of the character “skin” is “moon” It looks like “eyes”. On the other hand, in the font enlargement / reduction process according to the present invention, such a problem does not occur, and a natural enlargement / reduction font is obtained.
[0070]
  [Order of row direction processing and column direction processing]
  Next, the order of the row direction enlargement / reduction process and the column direction enlargement / reduction process in the font enlargement / reduction process will be considered. In the font enlargement / reduction process described above, first, the enlargement / reduction process in the row direction is performed, then the enlargement / reduction process in the column direction is performed (that is, the enlargement / reduction process is performed in the horizontal direction first, and then Scaled vertically). However, this is one example, and it is also possible to perform the enlargement / reduction process in the column direction first and then the enlargement / reduction process in the row direction. Which is preferable depends on the configuration of the font to be processed.
[0071]
  FIGS. 12A and 12B show an example in which enlargement is performed in the different order with respect to the same pixel pattern. The example of FIG. 12A is an example in which enlargement is first performed in the vertical direction and then enlargement is performed in the horizontal direction. In FIG. 12A, when the horizontal cost is calculated in the leftmost original data 50a, the second line from the top is the smallest. Therefore, when the second row from the top is enlarged by one pixel in the vertical direction, the middle data 50b is obtained. Next, when calculating the vertical cost in the data 50b, 4 from the leftColumnEyes and 5ColumnThe eye cost is the lowest. Therefore, when one of these is expanded by one pixel in the horizontal direction, the rightmost expanded data 50c is obtained.
[0072]
  On the other hand, the example of FIG. 12B is an example in which enlargement is first performed in the horizontal direction and then in the vertical direction. In FIG. 12B, when the cost in the vertical direction is calculated in the leftmost original data 60a, 4 from the left is calculated.ColumnEyes and 5ColumnThe eyes are the smallest. Therefore, if one of them is enlarged by one pixel in the horizontal direction, the middle data 60b is obtained. Next, when the cost in the horizontal direction is calculated in the data 60b, the costs in the first and third rows from the top are the smallest. Therefore, when the first row from the top is enlarged by one pixel in the vertical direction, the rightmost enlarged data 60c is obtained.
[0073]
  As described above, even if the original data is the same, the resulting data differs depending on whether the data is enlarged in the order of vertical → horizontal or in the order of horizontal → vertical. In the example of FIGS. 12A and 12B, the original data is naturally enlarged when it is enlarged in the order of vertical → horizontal as shown in FIG. 12A. Therefore, in order to perform natural enlargement on all characters, it is more natural to perform enlargement processing in the order of vertical → horizontal and horizontal → vertical for each character and to enlarge in either order. It is preferable to determine in advance whether a processed font can be obtained. Then, as schematically shown in FIG. 12C, when the enlargement / reduction processing is performed on the original data of each font, is the vertical → horizontal order or the horizontal → vertical order good? It is more preferable to attach processing order information (for example, a flag) indicative of In this way, the CPU 16 may refer to the processing order information attached to the font read from the font ROM 22 when executing the font enlargement / reduction process, and enlarge / reduce the font in the order shown there. Even in the case of the same font, the processing order preferable for enlargement and the processing order preferable for reduction may be different, so it is preferable to prepare processing order information individually for enlargement / reduction. Furthermore, if the preferred processing order differs depending on the enlargement ratio / reduction ratio, processing order information may be prepared for each enlargement ratio / reduction ratio.
[0074]
  In this embodiment, the pixel enlargement or reduction processing is performed in order from the lowest cost row or column. However, the scope of application of the present invention is not limited to this, and for example, used in this embodiment. If the reciprocal of the cost is defined as a cost in a new sense, the same effect as in the present embodiment can be obtained by performing pixel enlargement or reduction processing in order from the row or column with the highest cost.
[Brief description of the drawings]
FIG. 1 shows a schematic configuration of a mobile terminal device to which bitmap font enlargement / reduction processing according to an embodiment of the present invention is applied.
FIG. 2 is a flowchart of font enlargement processing according to the present invention.
FIG. 3 is a flowchart of row (column) direction enlargement processing;
FIG. 4 is a flowchart of cost calculation processing in font enlargement processing.
FIG. 5 is a diagram illustrating an example of cost calculation processing in font enlargement processing;
FIG. 6 is a diagram illustrating an example of a cost calculation process.
FIG. 7 is a diagram illustrating an example of row (column) direction enlargement processing;
FIG. 8 is a flowchart of font reduction processing.
FIG. 9 is a flowchart of row (column) direction reduction processing;
FIG. 10 is a diagram illustrating an example of cost calculation processing in font reduction processing.
FIG. 11 is a diagram comparing the results of font enlargement / reduction processing according to the present invention and font enlargement / reduction processing by simple coordinate transformation.
FIG. 12 is a diagram illustrating an example of a data structure of font data including a comparison between processing order and processing result of row direction processing and column direction processing, and processing order information;
[Explanation of symbols]
  10 Mobile terminal device
  12 Display section
  14 Processing font memory
  16 CPU
  18 Input section
  20 Program ROM
  22 Font ROM
  24 RAM

Claims (27)

ビットマップフォントのフォントデータを取得するデータ取得手段と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行う計算手段と、
前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、
前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備えることを特徴とするフォント処理装置。
Data acquisition means for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, the number of pixels constituting the font data for each row or column is calculated as a line quantity, and the font data is Calculation means for performing addition to the line segment amount for each pixel having pixels adjacent in the arrangement direction among the constituent pixels;
A lateral enlargement processing means for enlarging a predetermined number of rows in the horizontal direction in order from the row with the smallest amount of line segment ;
A font processing apparatus comprising: a vertical direction enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the line with the smallest amount of line segment .
ビットマップフォントのフォントデータを取得するデータ取得手段と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行い、当該加算された線分量の逆数を計算する計算手段と、
前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、
前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備えることを特徴とするフォント処理装置。
Data acquisition means for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, the number of pixels constituting the font data for each row or column is calculated as a line quantity, and the font data is Calculating means for performing addition to the line segment amount for each pixel having pixels adjacent in the arrangement direction among the constituting pixels, and calculating an inverse number of the added line segment amount;
A lateral enlargement processing means for enlarging a predetermined number of rows in a horizontal direction in order from a row having a large reciprocal of the line segment amount ;
A font processing apparatus comprising: a vertical enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the line having the largest reciprocal of the line segment amount .
ビットマップフォントのフォントデータを取得するデータ取得手段と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、
前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、
前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備え、
前記フォントデータは、当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段をさらに備えることを特徴とするフォント処理装置。
Data acquisition means for acquiring font data of a bitmap font;
Calculation means for calculating the number of pixels constituting the font data for each row or column as a line segment for a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged;
A lateral enlargement processing means for enlarging a predetermined number of rows in the horizontal direction in order from the row with the smallest amount of line segment;
A vertical direction enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the line with the smallest amount of line segment,
The font data includes processing order information indicating an order in which the vertical enlargement process and the horizontal enlargement process should be performed in the enlargement process of the font data,
The process in accordance with the order information, said lateral enlargement processing and the vertical direction enlargement processing font processor you further comprising sequence control means for controlling the execution order of.
ビットマップフォントのフォントデータを取得するデータ取得手段と、Data acquisition means for acquiring font data of a bitmap font;
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、  Calculation means for calculating the number of pixels constituting the font data for each row or column as a line segment for a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged;
前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段と、  A lateral enlargement processing means for enlarging a predetermined number of rows in a horizontal direction in order from a row having a large reciprocal of the line segment amount;
前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段と、を備え、  A vertical enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from a row having a large reciprocal of the line segment amount;
前記フォントデータは、当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、  The font data includes processing order information indicating an order in which the vertical enlargement process and the horizontal enlargement process should be performed in the enlargement process of the font data,
前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段をさらに備えることを特徴とするフォント処理装置。  A font processing apparatus, further comprising: order control means for controlling an execution order of the horizontal enlargement process and the vertical enlargement process according to the processing order information.
前記所定数は、前記フォントデータの縦方向及び横方向の画素数と、前記フォントデータの拡大率とにより決定されることを特徴とする請求項1乃至4のいずれか一項に記載のフォント処理装置。Wherein the predetermined number, the number of pixels in the vertical direction and the transverse direction of the font data, the font processing according to any one of claims 1 to 4, characterized in that it is determined by the magnification of the font data apparatus. ビットマップフォントのフォントデータと、当該フォントデータの拡大処理において列方向拡大処理と行方向拡大処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、Data acquisition means for acquiring bitmap font data and processing order information indicating the order in which column direction enlargement processing and row direction enlargement processing should be performed in the enlargement processing of the font data;
前記フォントデータに基づく画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、For a plurality of rows or columns in which a plurality of pixels in the pixel configuration based on the font data are arranged, calculation means for calculating the number of pixels constituting the font data for each row or column as a line segment amount;
前記処理順序情報に従って、前記線分量の小さい列から順に所定数の列を行方向に拡大するための拡大処理と、前記線分量の小さい行から順に所定数の行を列方向に拡大するための拡大処理との実行順序を制御する順序制御手段と、を備えることを特徴とするフォント処理装置。  According to the processing order information, an enlargement process for enlarging a predetermined number of columns in the row direction in order from the column with the smallest line segment amount, and an enlargement process for enlarging the predetermined number of rows in the column direction in order from the row with the smaller line segment amount A font processing apparatus comprising: order control means for controlling the execution order of enlargement processing.
ビットマップフォントのフォントデータと、当該フォントデータの拡大処理において列方向拡大処理と行方向拡大処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、Data acquisition means for acquiring bitmap font data and processing order information indicating the order in which column direction enlargement processing and row direction enlargement processing should be performed in the enlargement processing of the font data;
前記フォントデータに基づく画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段と、  For a plurality of rows or columns in which a plurality of pixels in the pixel configuration based on the font data are arranged, calculation means for calculating the number of pixels constituting the font data for each row or column as a line segment amount;
前記処理順序情報に従って、前記線分量の逆数が大きい列から順に所定数の列を行方向に拡大するための拡大処理と、前記線分量の逆数が大きい行から順に所定数の行を列方向に拡大するための拡大処理との実行順序を制御する順序制御手段と、を備えることを特徴とするフォント処理装置。  In accordance with the processing order information, an enlargement process for enlarging a predetermined number of columns in the row direction in order from the column having the largest reciprocal of the line segment amount, and a predetermined number of rows in the column direction in order from the row having the larger reciprocal of the line segment amount A font processing apparatus comprising: order control means for controlling an execution order of enlargement processing for enlargement.
ビットマップフォントのフォントデータを取得するデータ取得手段と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段と、
前記非類似度の小さい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段と、
前記非類似度の小さい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段と、を備え、
前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段をさらに備えることを特徴とするフォント処理装置。
Data acquisition means for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, a dissimilarity of a pixel configuration with a row adjacent to each row is calculated or a column adjacent to each column Calculating means for calculating the dissimilarity of the pixel configuration of
A horizontal reduction processing means for reducing a predetermined number of columns in the horizontal direction in order from the column having the smallest dissimilarity ;
A vertical direction reduction processing means for reducing a predetermined number of rows in the vertical direction in order from the row with the lower dissimilarity ,
The font data includes processing order information indicating an order in which the vertical direction reduction process and the horizontal direction reduction process should be performed in the font data reduction process,
A font processing apparatus , further comprising: an order control unit that controls an execution order of the horizontal direction reduction process and the vertical direction reduction process according to the processing order information .
ビットマップフォントのフォントデータと、当該フォントデータの縮小処理において列方向縮小処理と行方向縮小処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、Data acquisition means for acquiring bitmap font data and processing order information indicating the order in which column direction reduction processing and row direction reduction processing should be performed in the reduction processing of the font data;
前記フォントデータに基づく画素構成における複数の画素が配列される複数の行又は列に対して、当該行又は列の画素構成と、当該行又は列に隣接する行又は列との画素構成との排他的論理和に基づいて非類似度を計算する計算手段と、  For a plurality of rows or columns in which a plurality of pixels are arranged in the pixel configuration based on the font data, exclusion of the pixel configuration of the row or column and the pixel configuration of a row or column adjacent to the row or column A calculation means for calculating a dissimilarity based on a logical OR,
前記処理順序情報に従って、前記非類似度の小さい列から順に所定数の列を行方向に縮小するための縮小処理と、前記非類似度の小さい行から順に所定数の行を列方向に縮小するための縮小処理との実行順序を制御する順序制御手段と、を備えることを特徴とするフォント処理装置。  In accordance with the processing order information, a reduction process for reducing a predetermined number of columns in the row direction in order from the column with the lower dissimilarity, and a predetermined number of rows in the column direction in order from the row with the lower dissimilarity. And an order control means for controlling the execution order of the reduction processing for the font processing apparatus.
ビットマップフォントのフォントデータを取得するデータ取得手段と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列 との画素構成の非類似度を計算する計算手段と、
前記非類似度の逆数が大きい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段と、
前記非類似度の逆数が大きい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段と、を備え、
前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段をさらに備えることを特徴とするフォント処理装置。
Data acquisition means for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels arranged in the pixel arrangement of the font data, the column adjacent to each dissimilarity computing or the columns of pixels constituting a row adjacent to each corresponding row Calculating means for calculating the dissimilarity of the pixel configuration of
A horizontal reduction processing means for reducing a predetermined number of columns in the horizontal direction in order from the column having the largest reciprocal of the dissimilarity ;
Vertical reduction processing means for reducing a predetermined number of rows in the vertical direction in order from the row having the largest reciprocal of the dissimilarity ,
The font data includes processing order information indicating an order in which the vertical direction reduction process and the horizontal direction reduction process should be performed in the font data reduction process,
A font processing apparatus , further comprising: an order control unit that controls an execution order of the horizontal direction reduction process and the vertical direction reduction process according to the processing order information .
ビットマップフォントのフォントデータと、当該フォントデータの縮小処理において列方向縮小処理と行方向縮小処理を実行すべき順序を示す処理順序情報とを取得するデータ取得手段と、Data acquisition means for acquiring bitmap font data and processing order information indicating the order in which column direction reduction processing and row direction reduction processing should be performed in the reduction processing of the font data;
前記フォントデータに基づく画素構成における複数の画素が配列される複数の行又は列に対して、当該行又は列の画素構成と、当該行又は列に隣接する行又は列との画素構成との排他的論理和に基づいて非類似度を計算する計算手段と、  For a plurality of rows or columns in which a plurality of pixels are arranged in the pixel configuration based on the font data, exclusion of the pixel configuration of the row or column and the pixel configuration of a row or column adjacent to the row or column A calculation means for calculating a dissimilarity based on a logical OR,
前記処理順序情報に従って、前記非類似度の逆数が大きい列から順に所定数の列を行方向に縮小するための縮小処理と、前記非類似度の逆数が大きい行から順に所定数の行を列方向に縮小するための縮小処理との実行順序を制御する順序制御手段と、を備えることを特徴とするフォント処理装置。  In accordance with the processing order information, a reduction process for reducing a predetermined number of columns in the row direction in order from the column having the largest reciprocal of the dissimilarity, and a predetermined number of rows in order from the row having the largest reciprocal of the dissimilarity A font processing apparatus comprising: order control means for controlling an execution order of a reduction process for reducing in a direction.
前記所定数は、前記フォントデータの縦方向及び横方向の画素数と、前記フォントデータの縮小率とにより決定されることを特徴とする請求項8乃至11のいずれか一項に記載のフォント処理装置。12. The font processing according to claim 8 , wherein the predetermined number is determined by a number of pixels in the vertical direction and the horizontal direction of the font data and a reduction rate of the font data. apparatus. 前記計算手段は、前記行又は列ごとに、当該行又は列の画素構成と、当該行又は列に隣接する行又は列の画素構成との排他的論理和に基づいて前記非類似度を計算することを特徴とする請求項8乃至12のいずれか一項に記載のフォント処理装置。 The calculation means calculates the dissimilarity for each row or column based on an exclusive OR of a pixel configuration of the row or column and a pixel configuration of a row or column adjacent to the row or column. The font processing apparatus according to claim 8 , wherein the font processing apparatus is a font processing apparatus. 前記請求項1乃至13のいずれか一項のフォント処理装置と、
前記フォント処理装置により生成されたフォントデータを記憶する記憶手段と、
前記フォント処理装置により生成されたフォントデータを表示する表示部と、を備えることを特徴とする端末装置。
A font processing device according to any one of claims 1 to 13 ,
Storage means for storing font data generated by the font processing device;
And a display unit that displays font data generated by the font processing device.
前記請求項1乃至14のいずれか一項のフォント処理装置と、The font processing device according to any one of claims 1 to 14,
前記フォント処理装置により生成されたフォントデータを記憶する記憶手段と、  Storage means for storing font data generated by the font processing device;
前記フォント処理装置により生成されたフォントデータを表示する表示部と、を備えることを特徴とする表示装置。  A display unit configured to display font data generated by the font processing device.
フォント処理装置によるフォント処理方法であって、
ビットマップフォントのフォントデータを取得するデータ取得工程と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行う計算工程と、
前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、
前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有することを特徴とするフォント処理方法。
A font processing method by a font processing apparatus,
A data acquisition process for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, the number of pixels constituting the font data for each row or column is calculated as a line quantity, and the font data is A calculation step of performing addition to the line segment amount for each pixel having pixels adjacent in the arrangement direction among the constituent pixels;
A lateral enlargement processing step for laterally enlarging a predetermined number of rows in order from the row with the smallest amount of line segment;
And a vertical enlargement process for enlarging a predetermined number of lines in the vertical direction in order from the line with the smallest amount of line segment .
フォント処理装置によるフォント処理方法であって、
ビットマップフォントのフォントデータを取得するデータ取得工程と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行い、当該加算された線分量の逆数を計算する計算工程と、
前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、
前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有することを特徴とするフォント処理方法。
A font processing method by a font processing apparatus,
A data acquisition process for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, the number of pixels constituting the font data for each row or column is calculated as a line quantity, and the font data is A calculation step of performing addition to the line segment amount for each pixel having pixels adjacent in the arrangement direction among the constituting pixels, and calculating an inverse number of the added line segment amount;
A lateral expansion processing step for horizontally expanding a predetermined number of columns in order from a column having a large reciprocal of the line segment amount ; and
And a vertical enlargement process for enlarging a predetermined number of lines in the vertical direction in order from the line having the largest reciprocal of the line segment amount .
フォント処理装置によるフォント処理方法であって、
ビットマップフォントのフォントデータを取得するデータ取得工程と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算工程と、
前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、
前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有し、
前記フォントデータは、当該フォントデータの縮小処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御することを特徴とするフォント処理方法。
A font processing method by a font processing apparatus,
A data acquisition process for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, a calculation step for calculating the number of pixels constituting the font data for each row or column as a line segment amount;
A lateral enlargement processing step for laterally enlarging a predetermined number of rows in order from the row with the smallest amount of line segment;
A vertical enlargement processing step for enlarging a predetermined number of rows in the vertical direction in order from the row with the smallest amount of line segment, and
The font data includes processing order information indicating an order in which the vertical enlargement process and the horizontal enlargement process should be performed in the font data reduction process,
A font processing method, comprising: controlling an execution order of the horizontal enlargement process and the vertical enlargement process according to the processing order information .
フォント処理装置によるフォント処理方法であって、
ビットマップフォントのフォントデータを取得するデータ取得工程と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算工程と、
前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理工程と、
前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理工程と、を有し、
前記フォントデータは、当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御することを特徴とするフォント処理方法。
A font processing method by a font processing apparatus,
A data acquisition process for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, a calculation step for calculating the number of pixels constituting the font data for each row or column as a line segment amount;
A lateral expansion processing step for horizontally expanding a predetermined number of columns in order from a column having a large reciprocal of the line segment amount; and
A vertical direction enlargement process step for enlarging a predetermined number of rows in the vertical direction in order from a row having a large reciprocal of the line segment amount, and
The font data includes processing order information indicating an order in which the vertical enlargement process and the horizontal enlargement process should be performed in the enlargement process of the font data,
A font processing method, comprising: controlling an execution order of the horizontal enlargement process and the vertical enlargement process according to the processing order information .
フォント処理装置によるフォント処理方法であって、
ビットマップフォントのフォントデータを取得するデータ取得工程と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算工程と、
前記非類似度の小さい列から順に所定数の列を横方向に縮小するための横方向縮小処理工程と、
前記非類似度の小さい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理工程と、を有し、
前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御することを特徴とするフォント処理方法。
A font processing method by a font processing apparatus,
A data acquisition process for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, a dissimilarity of a pixel configuration with a row adjacent to each row is calculated or a column adjacent to each column A calculation step of calculating the dissimilarity of the pixel configuration of
A horizontal reduction processing step for reducing a predetermined number of rows in the horizontal direction in order from the row with the lower dissimilarity;
A vertical reduction processing step for reducing a predetermined number of rows in the vertical direction in order from the low dissimilarity rows,
The font data includes processing order information indicating an order in which the vertical direction reduction process and the horizontal direction reduction process should be performed in the font data reduction process,
A font processing method, comprising: controlling an execution order of the horizontal direction reduction process and the vertical direction reduction process according to the processing order information .
フォント処理装置によるフォント処理方法であって、
ビットマップフォントのフォントデータを取得するデータ取得工程と、
前記フォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算工程と、
前記非類似度の逆数が大きい列から順に所定数の列を横方向に縮小するための横方向縮小処理工程と、
前記非類似度の逆数が大きい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理工程と、を有し、
前記フォントデータは、当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報を含み、
前記処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御することを特徴とするフォント処理方法。
A font processing method by a font processing apparatus,
A data acquisition process for acquiring font data of a bitmap font;
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data are arranged, a dissimilarity of a pixel configuration with a row adjacent to each row is calculated or a column adjacent to each column A calculation step of calculating the dissimilarity of the pixel configuration of
A horizontal reduction processing step for horizontally reducing a predetermined number of columns in order from the column having the largest reciprocal of the dissimilarity;
A vertical reduction process step for reducing a predetermined number of lines in the vertical direction in order from the line having the largest reciprocal of the dissimilarity, and
The font data includes processing order information indicating an order in which the vertical direction reduction process and the horizontal direction reduction process should be performed in the font data reduction process,
A font processing method, comprising: controlling an execution order of the horizontal direction reduction process and the vertical direction reduction process according to the processing order information .
コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、
ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行う計算手段、
前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、
前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段として機能させることを特徴とするフォント処理プログラム。
A font processing program Oite executed on the computer, the computer,
For a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged, the number of pixels constituting the font data for each row or column is calculated as a line segment, and Calculation means for performing addition to the line segment amount for each pixel having pixels adjacent in the arrangement direction among the pixels constituting the font data;
A lateral enlargement processing means for enlarging a predetermined number of rows in the horizontal direction in order from the row with the smallest amount of line segment;
A font processing program that functions as a vertical direction enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the line with the smallest amount of line segment .
コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、A font processing program executed in a computer, the computer
ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算すると共に、前記フォントデータを構成する画素のうち配列方向に隣接する画素を有する画素毎に前記線分量への加算を行い、当該加算された線分量の逆数を計算する計算手段、  For a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged, the number of pixels constituting the font data for each row or column is calculated as a line segment, and Calculating means for performing addition to the line segment amount for each pixel having pixels adjacent in the arrangement direction among pixels constituting the font data, and calculating a reciprocal of the added line segment amount;
前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、  A lateral enlargement processing means for enlarging a predetermined number of rows in a horizontal direction in order from a row having a large reciprocal of the line segment amount;
前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段として機能させることを特徴とするフォント処理プログラム。A font processing program that functions as a vertical direction enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the line having the largest reciprocal of the line segment amount.
コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、
ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段、
前記線分量の小さい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、
前記線分量の小さい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段、
前記フォントデータに含まれ且つ当該フォントデータの拡大処理において縦方向拡大処理と横方向拡大処理を実行すべき順序を示す処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段、として機能させることを特徴とするフォント処理プログラム。
A font processing program Oite executed on the computer, the computer,
Calculation means for calculating the number of pixels constituting the font data for each row or column as a line segment for a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged;
A lateral enlargement processing means for enlarging a predetermined number of rows in the horizontal direction in order from the row with the smallest amount of line segment;
A vertical enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from the line with the smallest amount of line segment;
The execution order of the horizontal enlargement process and the vertical enlargement process is determined according to processing order information included in the font data and indicating the order in which the vertical enlargement process and the horizontal enlargement process should be executed in the enlargement process of the font data. A font processing program which functions as an order control means for controlling .
コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、
ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、前記行又は列毎に前記フォントデータを構成する画素の数を線分量として計算する計算手段、
前記線分量の逆数が大きい列から順に所定数の列を横方向に拡大するための横方向拡大処理手段、
前記線分量の逆数が大きい行から順に所定数の行を縦方向に拡大するための縦方向拡大処理手段、
前記フォントデータに含まれ且つ当該フォントデータの拡大処理において縦方向拡大処 理と横方向拡大処理を実行すべき順序を示す処理順序情報に従って、前記横方向拡大処理と前記縦方向拡大処理の実行順序を制御する順序制御手段、として機能させることを特徴とするフォント処理プログラム。
A font processing program Oite executed on the computer, the computer,
Calculation means for calculating the number of pixels constituting the font data for each row or column as a line segment for a plurality of rows or columns in which a plurality of pixels in a pixel configuration of bitmap font font data are arranged;
A lateral enlargement processing means for enlarging a predetermined number of rows in a horizontal direction in order from a row having a large reciprocal of the line segment amount;
A vertical enlargement processing means for enlarging a predetermined number of rows in the vertical direction in order from a row having a large reciprocal of the line segment amount;
According to the processing order information indicating the order to execute the longitudinal expansion processing and horizontal enlargement processing in the enlargement processing and the font data included in the font data, the execution order of the vertical direction enlargement processing to the horizontal direction enlargement processing A font processing program which functions as an order control means for controlling the above .
コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、
ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段、
前記非類似度の小さい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段、
前記非類似度の小さい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段、
前記フォントデータに含まれ且つ当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段、として機能させることを特徴とするフォント処理プログラム。
A font processing program Oite executed on the computer, the computer,
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data of the bitmap font are arranged, the dissimilarity of the pixel configuration with the adjacent row for each row is calculated or adjacent for each column Calculating means for calculating the dissimilarity of the pixel configuration with the column to be
A horizontal reduction processing means for reducing a predetermined number of columns in the horizontal direction in order from the column having the smallest dissimilarity;
A vertical reduction processing means for reducing a predetermined number of rows in the vertical direction in order from the low dissimilarity rows;
The execution order of the horizontal reduction process and the vertical reduction process is determined according to processing order information included in the font data and indicating the order in which the vertical reduction process and the horizontal reduction process should be performed in the font data reduction process. A font processing program which functions as an order control means for controlling .
コンピュータにおいて実行されるフォント処理プログラムであって、前記コンピュータを、
ビットマップフォントのフォントデータの画素構成における複数の画素が配列された複数の行又は列に対して、当該行毎に隣接する行との画素構成の非類似度を計算する又は当該列毎に隣接する列との画素構成の非類似度を計算する計算手段、
前記非類似度の逆数が大きい列から順に所定数の列を横方向に縮小するための横方向縮小処理手段、
前記非類似度の逆数が大きい行から順に所定数の行を縦方向に縮小するための縦方向縮小処理手段、
前記フォントデータに含まれ且つ当該フォントデータの縮小処理において縦方向縮小処理と横方向縮小処理を実行すべき順序を示す処理順序情報に従って、前記横方向縮小処理と前記縦方向縮小処理の実行順序を制御する順序制御手段、として機能させることを特徴とするフォント処理プログラム。
A font processing program Oite executed on the computer, the computer,
For a plurality of rows or columns in which a plurality of pixels in the pixel configuration of the font data of the bitmap font are arranged, the dissimilarity of the pixel configuration with the adjacent row for each row is calculated or adjacent for each column Calculating means for calculating the dissimilarity of the pixel configuration with the column to be
Horizontal reduction processing means for reducing a predetermined number of columns in the horizontal direction in order from the column having the largest reciprocal of the dissimilarity;
Vertical reduction processing means for reducing a predetermined number of rows in the vertical direction in order from the rows having the largest reciprocal of the dissimilarity;
The execution order of the horizontal reduction process and the vertical reduction process is determined according to processing order information included in the font data and indicating the order in which the vertical reduction process and the horizontal reduction process should be performed in the font data reduction process. A font processing program which functions as an order control means for controlling .
JP2002255257A 2002-08-30 2002-08-30 Font processing device, terminal device, display device, font processing method, and font processing program Expired - Fee Related JP3815411B2 (en)

Priority Applications (7)

Application Number Priority Date Filing Date Title
JP2002255257A JP3815411B2 (en) 2002-08-30 2002-08-30 Font processing device, terminal device, display device, font processing method, and font processing program
TW092122883A TWI277058B (en) 2002-08-30 2003-08-20 Font processing device, terminal, font processing method and font processing program
US10/648,432 US6927773B2 (en) 2002-08-30 2003-08-27 Font processing device, terminal device, font processing method, and font processing program
CN 200610093194 CN1873773A (en) 2002-08-30 2003-08-28 Font processor, terminal device, and font processing method
CNB031560083A CN100367345C (en) 2002-08-30 2003-08-28 Character style processing device, terminal device character style processing method and programme
CNU032086512U CN2706801Y (en) 2002-08-30 2003-08-29 Font processor and terminal apparatus
KR10-2003-0060181A KR100517162B1 (en) 2002-08-30 2003-08-29 Font processor, terminal device, font processing method and recording medium recording the font processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002255257A JP3815411B2 (en) 2002-08-30 2002-08-30 Font processing device, terminal device, display device, font processing method, and font processing program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2003209654A Division JP2004133401A (en) 2003-08-29 2003-08-29 Font processing device, terminal, font processing method, and font processing program

Publications (2)

Publication Number Publication Date
JP2004093930A JP2004093930A (en) 2004-03-25
JP3815411B2 true JP3815411B2 (en) 2006-08-30

Family

ID=32060816

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002255257A Expired - Fee Related JP3815411B2 (en) 2002-08-30 2002-08-30 Font processing device, terminal device, display device, font processing method, and font processing program

Country Status (2)

Country Link
JP (1) JP3815411B2 (en)
CN (1) CN1873773A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000601B (en) * 2007-01-10 2010-05-19 方正国际软件(北京)有限公司 Device and method for automatic changing type face in type-setting process
CN102262785B (en) * 2010-05-24 2014-01-29 珠海扬智电子有限公司 Edge smooth method and scale method for bitmap font

Also Published As

Publication number Publication date
CN1873773A (en) 2006-12-06
JP2004093930A (en) 2004-03-25

Similar Documents

Publication Publication Date Title
US8576252B2 (en) Information display apparatus, information displaying method, and computer readable medium
JPH03208094A (en) Treatment of outline of symbol image of various sizes and computor display device
KR100517162B1 (en) Font processor, terminal device, font processing method and recording medium recording the font processing program
JP2013125426A (en) Content display device, method, and program
JP3815411B2 (en) Font processing device, terminal device, display device, font processing method, and font processing program
JP3815412B2 (en) Font processing device, terminal device, display device, font processing method, and font processing program
JP2004185370A (en) Image display method and image display device
JP2007322810A (en) Font database generating program and font data structure
JP3854030B2 (en) Information browsing apparatus and medium storing information browsing program
JP3416489B2 (en) Font processing device and recording medium recording font processing program
JP2004133401A (en) Font processing device, terminal, font processing method, and font processing program
JP2004126555A (en) Font processor, terminal device, and font processing method and program
JP2004219937A (en) Font processing device, terminal device, font processing method and font processing program
JP3991061B1 (en) Image processing system
JP5114249B2 (en) Display device and display method
JPH1165430A (en) Map zooming display method and its map zooming display device, and computer for map zooming display device
JP5256628B2 (en) Image display device, image enlargement / reduction method and image enlargement / reduction control program used in the image display device
JP4125245B2 (en) Document display method and document display apparatus
EP1916650A1 (en) Character data generation device, electronic information device, character data generation program, and readable recording medium
JP2007213046A (en) Image display device and image display program
JP6085197B2 (en) Portable information processing apparatus, display processing method, and display processing program
JP2675458B2 (en) Symbol display device
JP5310038B2 (en) Image processing apparatus and image processing program
JP6253387B2 (en) Character size acquisition device, character size acquisition method, and character size acquisition program
JP4670278B2 (en) Document display device and document display program

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040921

A25B Written notification of impossibility to examine because of no request for precedent application

Free format text: JAPANESE INTERMEDIATE CODE: A2522

Effective date: 20041019

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20060131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20060403

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20060516

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060529

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3815411

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100616

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110616

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20110616

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120616

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130616

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130616

Year of fee payment: 7

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees