JP5757097B2 - Bitmap font display device - Google Patents
Bitmap font display device Download PDFInfo
- Publication number
- JP5757097B2 JP5757097B2 JP2011021499A JP2011021499A JP5757097B2 JP 5757097 B2 JP5757097 B2 JP 5757097B2 JP 2011021499 A JP2011021499 A JP 2011021499A JP 2011021499 A JP2011021499 A JP 2011021499A JP 5757097 B2 JP5757097 B2 JP 5757097B2
- Authority
- JP
- Japan
- Prior art keywords
- font
- index
- character code
- bitmap
- character
- 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.)
- Active
Links
Landscapes
- Document Processing Apparatus (AREA)
- Controls And Circuits For Display Device (AREA)
Description
本発明は、CPUの指令でフラッシュメモリに保持されているビットマップフォントをVRAMに展開し、グラフィックコントローラによりディスプレーに転送して表示させるビットマップフォント表示装置に関し、特に産業用組み込み機器に適用して有効なビットマップフォント表示装置を提供するものである。 The present invention relates to a bitmap font display device that develops a bitmap font stored in a flash memory by a command from a CPU into a VRAM, transfers it to a display by a graphic controller, and displays the bitmap font. An effective bitmap font display device is provided.
図11は、従来のビットマップフォント表示装置の構成例を示す機能ブロック図である。システムバス上に、フラッシュメモリ101、システムメモリ102、外部記憶インタフェース103、外部通信インタフェース104、グラフィックコントローラ105、ディスプレー106、VRAM107、機器本体のプロセッサーであるCPU108が接続されている。 FIG. 11 is a functional block diagram showing a configuration example of a conventional bitmap font display device. On the system bus, a flash memory 101, a system memory 102, an external storage interface 103, an external communication interface 104, a graphic controller 105, a display 106, a VRAM 107, and a CPU 108 which is a processor of the device main body are connected.
以下に説明する従来および本発明のビットマップフォント表示装置は、メモリサイズが大きくなる多言語ビットマップフォントを例示して説明するが、これに限定されるものではなく、1言語でも表示文字列情報が極めて多いビットマップフォント場合に有効に適用できる。また、「文字列」の表記には、記号を含むものとする。 The conventional bitmap font display device of the present invention and the bitmap font display device according to the present invention will be described by exemplifying a multilingual bitmap font having a large memory size. However, the present invention is not limited to this. This can be effectively applied to bitmap fonts with a large amount of. Further, the notation of “character string” includes a symbol.
フラッシュメモリ101は、ブートプログラム、計測・制御プログラム、初期データ、文字列コード、全文字(フルセット)のビットマップフォントを内蔵している。 The flash memory 101 includes a boot program, a measurement / control program, initial data, a character string code, and a bitmap font of all characters (full set).
システムメモリ102は、ブートプログラムにより、計測・制御プログラムと初期データが展開される。また、計測・制御プログラムに実行が移行した後、予め設定された言語モードに従ってフラッシュメモリ101に格納された当該言語の文字フォントが展開される。 In the system memory 102, the measurement / control program and the initial data are expanded by the boot program. In addition, after execution shifts to the measurement / control program, the character font of the language stored in the flash memory 101 is developed in accordance with a preset language mode.
外部記憶インタフェース103には、ハードディスク、CDROMドライブ、USBメモリ、SDメモリなどが接続される。外部通信インタフェース104は、イーサネット(登録商標)、フィールドバス、無線回線などとのインタフェースであり、これらの回線を通じて分散制御システムやハンディターミナルとデータの交換を行う。 A hard disk, CDROM drive, USB memory, SD memory, etc. are connected to the external storage interface 103. The external communication interface 104 is an interface with Ethernet (registered trademark), a field bus, a wireless line, and the like, and exchanges data with the distributed control system and the handy terminal through these lines.
グラフィックコントローラ105は、CPU108の指令に従って、ディスプレー106に固定画面の表示、メッセージ、データなどを表示する。表示に必要な文字や記号のビットマップフォントは、CPU108がシステムメモリ102に展開された全文字のビットマップフォントから文字コードで検索して、当該文字や記号のビットマップフォントをVRAM107に展開する。 The graphic controller 105 displays a fixed screen display, a message, data, and the like on the display 106 in accordance with a command from the CPU 108. The bitmap font of characters and symbols necessary for display is searched by the character code from the bitmap font of all characters developed in the system memory 102 by the CPU 108, and the bitmap font of the characters and symbols is developed in the VRAM 107.
ディスプレー106は、一般的なカラー液晶ディスプレーである。VRAM107は、ディスプレー106に表示されるビットマップフォントを展開して格納しており、グラフィックコントローラ105によって、その全体および部分が、ディスプレー106にDMA転送される。 The display 106 is a general color liquid crystal display. The VRAM 107 expands and stores a bitmap font displayed on the display 106, and the whole and a part thereof are DMA-transferred to the display 106 by the graphic controller 105.
従来装置では次のような問題がある。
(1)産業用組み込み機器に適用されるビットマップフォント表示装置では、フラッシュメモリ101およびシステムメモリ102のコスト制約から、大容量の多言語ビットマップフォント(数十MB)を組み込むことは不可能であった。
The conventional apparatus has the following problems.
(1) In a bitmap font display device applied to an industrial embedded device, it is impossible to incorporate a large-capacity multilingual bitmap font (several tens of MBs) due to the cost constraints of the flash memory 101 and the system memory 102. there were.
(2)産業用組み込み機器は、通常固定表示で、携帯電話やカーナビなどのように任意の文字コードが通信から入ってくることはないが、実際に使用されない文字のビットマップフォント(フルセット)まで組み込んでいた。また、24ドット以上の大型ビットマップフォントを使用する場合は、ハードディスクが必要になる場合もある。 (2) Industrial embedded devices usually have a fixed display, and arbitrary character codes such as mobile phones and car navigation systems do not come in from communication, but bitmap fonts of characters that are not actually used (full set) Was incorporated. Also, when using a large bitmap font of 24 dots or more, a hard disk may be required.
(3)文字コードによるビットマップフォントテーブル検索のオーバーヘッドは大きく、CPUの負担が大きい。また、キーボードや通信インタフェースから任意の文字コードが入力された場合に文字化けする場合もある。 (3) The bitmap font table search overhead by character code is large, and the burden on the CPU is large. In addition, characters may be garbled when an arbitrary character code is input from a keyboard or communication interface.
本発明の目的は、表示に必要な文字のビットマップフォントだけをフラッシュメモリに組み込み、必要メモリサイズを最小限としたビットマップフォント表示装置を実現することにある。 An object of the present invention is to realize a bitmap font display device in which only a bitmap font of characters necessary for display is incorporated in a flash memory and the required memory size is minimized.
このような課題を達成するために、本発明は次の通りの構成になっている。
(1)CPUの指令でフラッシュメモリに保持されているビットマップフォントをVRAMに展開し、グラフィックコントローラによりディスプレーに転送して表示させるビットマップフォント表示装置において、
前記CPUの指令で起動されるフォント管理ユニット及び外部インタフェースを介して取得するマスタービットマップフォントデータまたはマスターベクターフォントデータを保持するマスターフォントデータ保持手段を備え、
前記フォント管理ユニットは、
システム初期化時に、前記フラッシュメモリにあらかじめ格納されている、文字列ID及び言語IDにより定義される文字列のコードを出力する文字列コードテーブルと、前記外部インタフェースを介して与えられる前記マスタービットマップフォントデータまたは前記マスターベクターフォントデータに基づき、
アドレス入力により表示すべき文字列のインデックスを出力する文字列インデックステーブルと、
前記文字列ID及び言語IDにより、前記文字列インデックステーブルへのアドレスを出力する文字列インデックステーブル管理テーブルと、
文字コードを入力し、当該文字コードに対応するインデックスを出力する文字コード・インデックス対応テーブルと、
前記文字コード・インデックス対応テーブルから出力されるインデックスを入力し、前記インデックスに対応する文字コードのビットマップフォントのパターンデータを出力するビットマップフォントテーブルと、
を生成して前記フラッシュメモリに格納することを特徴とするビットマップフォント表示装置。
In order to achieve such a subject, the present invention has the following configuration.
(1) In a bitmap font display device that develops a bitmap font held in a flash memory by a command from a CPU into a VRAM, transfers it to a display by a graphic controller, and displays it.
Master font data holding means for holding a master bitmap font data or master vector font data acquired via a font management unit activated by an instruction of the CPU and an external interface ,
The font management unit is
At system initialization, the previously stored in the flash memory, a character string code table for outputting a code string defined by the string ID and language ID, the master bitmap provided via the external interface Based on the font data or the master vector font data ,
A string index table that outputs the index of the string to be displayed by address input ;
A character string index table management table for outputting an address to the character string index table by the character string ID and the language ID ;
A character code / index correspondence table for inputting a character code and outputting an index corresponding to the character code;
A bitmap font table that inputs an index output from the character code / index correspondence table and outputs pattern data of a bitmap font of a character code corresponding to the index ;
Is generated and stored in the flash memory.
(2)前記フォント管理ユニットは、
システム初期化時、または外部入力文字コードの取得時に、前記文字列コードテーブルまたは前記外部入力文字コードから1つの文字コードを読み出したとき、この文字コードに対応したビットマップフォントが前記文字コード・インデックス対応テーブルにある場合には、このインデックスから前記ビットマップフォントテーブルを参照してビットマップフォントを取り出して表示させ、全文字列の表示処理を実行することを特徴とする(1)に記載のビットマップフォント表示装置。
(2) The font management unit
When one character code is read from the character string code table or the external input character code at the time of system initialization or acquisition of the external input character code, the bitmap font corresponding to this character code is the character code index. If it is in the correspondence table, the bitmap font table is extracted from this index with reference to the bitmap font and displayed, and the display processing of all character strings is executed. Map font display device.
(3)前記フォント管理ユニットは、
システム初期化時、または外部入力文字コードの取得時に、前記文字列コードテーブルまたは前記外部入力文字コードから1つの文字コードを読み出したとき、この文字コードに対応したビットマップフォントが前記文字コード・インデックス対応テーブルになく、かつ、システムがビットマップフォント対応の場合には、前記文字コードで前記マスタービットマップフォントデータを検索すると共に、前記文字コードに対応したインデックスとの組みを前記文字コード・インデックス対応テーブルに登録し、前記検索でマッチングしたビットマップフォントを前記ビットマップフォントテーブルの空きインデックス・スロットに登録し、このインデックスから前記ビットマップフォントテーブルを参照してビットマップフォントを取り出して前記グラフィックコントローラを駆動して表示させ、全文字列の表示処理を実行することを特徴とする(1)に記載のビットマップフォント表示装置。
(3) The font management unit
When one character code is read from the character string code table or the external input character code at the time of system initialization or acquisition of the external input character code, the bitmap font corresponding to this character code is the character code index. When not in the correspondence table and the system supports bitmap font, the master bitmap font data is searched with the character code, and a combination with the index corresponding to the character code is associated with the character code / index. registered in the table, registers a bitmap fonts matching the search to the free index slots in the bit map font table, retrieves the bitmap fonts by referring to the bit map font table from the index The drives the graphic controller to display the bitmap font display device according to and executes the display processing of all character strings (1).
(4)前記フォント管理ユニットは、
システム初期化時、または外部入力文字コードの取得時に、前記文字列コードテーブルまたは前記外部入力文字コードから1つの文字コードを読み出したとき、この文字コードに対応したビットマップフォントが前記文字コード・インデックス対応テーブルになく、かつ、システムがベクターフォント対応の場合には、前記マスターベクターフォントデータをビットマップデータに変換し、前記文字コードによりビットマップ変換されたマスターフォントデータを検索すると共に、前記文字コードに対応したインデックスとの組みを前記文字コード・インデックス対応テーブルに登録し、前記検索でマッチングしたビットマップフォントを前記ビットマップフォントテーブルの空きインデックス・スロットに登録し、このインデックスから前記ビットマップフォントテーブルを参照してビットマップフォントを取り出して前記グラフィックコントローラを駆動して表示させ、全文字列の表示処理を実行することを特徴とする(1)に記載のビットマップフォント表示装置。
(4) The font management unit
When one character code is read from the character string code table or the external input character code at the time of system initialization or acquisition of the external input character code, the bitmap font corresponding to this character code is the character code index. If not in the correspondence table and the system supports vector fonts , the master vector font data is converted into bitmap data, the master font data bitmap-converted by the character code is searched, and the character code A pair with an index corresponding to is registered in the character code / index correspondence table, and a bitmap font matched by the search is registered in an empty index slot of the bitmap font table. Remove the bit map font by referring to the bit map font table is displayed by driving the graphic controller, the bit map font display device according to and executes the display processing of all character strings (1).
(5)前記フォント管理ユニットは、
システム通常稼動時に、前記CPUより渡される指定座標、文字列IDを含む表示要求メッセージのパラメータに基づき、前記文字列インデックステーブル管理テーブルから前記文字列インデックステーブルのアドレスを取得し、このアドレスから前記ビットマップフォントテーブルにアクセスしてビットマップフォントを取り出し、前記指定座標を基点として前記VRAMに書き込み、前記グラフィックコントローラを駆動して表示させ、全文字列の表示処理を実行することを特徴とする(1)乃至(4)のいずれかに記載のビットマップフォント表示装置。
(5) The font management unit
In the normal operation of the system, the address of the character string index table is acquired from the character string index table management table based on the parameters of the display request message including the designated coordinates and character string ID passed from the CPU, and the bit is calculated from the address. A bitmap font is retrieved by accessing a map font table, written into the VRAM using the designated coordinates as a base point, driven to display the graphic controller, and a display process for all character strings is executed (1). The bitmap font display device according to any one of (4) to (4).
本発明によれば、次のような効果を期待することができる。
(1)メモリコストの削減:
フルセットのオリジナルフォントデータであるマスタービットマップフォントデータは、システムの初期化(初期化処理は、一回だけでよい)時に、外部記憶インタフェース103から与えられ、稼動時には不要となるので、フラッシュメモリ101およびシステムメモリ102のコスト削減に有効である。
According to the present invention, the following effects can be expected.
(1) Memory cost reduction:
Master bitmap font data, which is a full set of original font data, is provided from the external storage interface 103 at the time of system initialization (initialization processing only needs to be performed once) and is not required during operation. This is effective for cost reduction of the system memory 101 and system memory 102.
ちなみに、図2で例示した12言語分の多言語ビットマップフォントデータの格納に必要なメモリサイズは、フォントサイズ12ドット、14ドット、16ドットで、書体がレギュラー、イタリック、ボールドの場合、約20MBを必要とする。本発明の適用で、これを1MB程度とすることが可能であり、必要容量は1/20に削減される。 Incidentally, the memory size necessary for storing the multilingual bitmap font data for the 12 languages illustrated in FIG. 2 is 12 dots, 14 dots, and 16 dots, and about 20 MB when the typeface is regular, italic, or bold. Need. By applying the present invention, this can be reduced to about 1 MB, and the required capacity is reduced to 1/20.
(2)液晶表示の高速化:
本発明の各種テーブルへのアクセスは、インデックス(配列の要素番号)で行うので、通常の「文字コード検索」のオーバーヘッドがない。従って、表示スピードは、文字列の文字数、フォントサイズ、書体の種類の違い以外は、ほぼ一定で、高速化を図ることができる。
(2) Speeding up of liquid crystal display:
Since access to the various tables of the present invention is performed by index (element number of array), there is no overhead of normal “character code search”. Therefore, the display speed is almost constant except for the difference in the number of characters in the character string, font size, and type of font, and the speed can be increased.
(3)CPU負荷の軽減:
表示専用のフォント管理ユニット109の新設により、CPU108は表示負荷が軽減され、本来の処理に専念することができる。
(3) CPU load reduction:
By newly providing a display-only font management unit 109, the CPU 108 can reduce the display load and concentrate on the original processing.
(4)動的な文字コードの識別:
通信から入ってくる文字コードを、新規か既登録かを動的に識別し、表示しながら、フラッシュメモリに蓄積することができる。キーボードや通信インタフェースから動的に任意文字コードが入力された場合も、文字化けすることがなく、表示することができる。
(4) Dynamic character code identification:
Character codes entered from communication can be stored in the flash memory while dynamically identifying whether the character codes are new or already registered. Even when an arbitrary character code is dynamically input from a keyboard or a communication interface, it can be displayed without being garbled.
(5)フォントのアップデート:
多言語文字ビットマップフォントデータを外付けとすることで、ビットマップフォントのアップデート管理が容易となる。
(5) Font update:
By making multilingual character bitmap font data externally attached, update management of bitmap fonts becomes easy.
以下本発明を、図面を用いて詳細に説明する。図1は、本発明を適用したビットマップフォント表示装置の一実施例を示す機能ブロック図である。図11で説明した従来構成と同一要素には同一符号を付して説明を省略する。 Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 1 is a functional block diagram showing an embodiment of a bitmap font display device to which the present invention is applied. The same elements as those of the conventional configuration described with reference to FIG.
図11に示した従来構成に追加される本発明の構成上の特徴部は、システムバスに接続されたフォント管理ユニット109および多言語用マスターフォントデータ保持手段114の新設である。 The structural features of the present invention added to the conventional configuration shown in FIG. 11 are the new installation of a font management unit 109 and multilingual master font data holding means 114 connected to the system bus.
フォント管理ユニット109は、システム初期化時に、CPU108の指示に従って、フラッシュメモリ101内に予め格納された文字列コードテーブル110と、外部記憶インタフェース103を介して多言語用マスターフォントデータ保持手段114から与えられるオリジナルのマスタービットマップフォントデータから、文字表示に必要な文字列インデックステーブル111、文字列インデックステーブル管理テーブル112、必要最小限の多言語ビットマップフォントテーブル113、文字コード・インデックス対応テーブル115を生成し、フラッシュメモリ101に格納する。 The font management unit 109 is supplied from the multilingual master font data holding unit 114 via the character string code table 110 stored in advance in the flash memory 101 and the external storage interface 103 in accordance with an instruction from the CPU 108 at the time of system initialization. A character string index table 111, a character string index table management table 112, a minimum necessary multilingual bitmap font table 113, and a character code / index correspondence table 115 necessary for character display are generated from the original master bitmap font data. And stored in the flash memory 101.
図2は、文字列コードテーブルのイメージ図である。文字列コードテーブル110は、組み込み機器のフラッシュメモリ101に、予め組み込まれているテーブルであり、機器で使用する文字列が、言語ID、文字列IDの2次元配列で定義されている。文字列コードは、Unicodeまたはローカルコードで定義されている。 FIG. 2 is an image diagram of a character string code table. The character string code table 110 is a table that is pre-installed in the flash memory 101 of the embedded device, and character strings used in the device are defined by a two-dimensional array of language IDs and character string IDs. The string code is defined in Unicode or local code.
図3(A)は、文字列インデックステーブルのイメージ図である。文字列インデックステーブル111は、システムの初期化時に、文字列コードテーブル110と多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータから自動生成されるテーブルである。図3(B)に、データ形式を示す。 FIG. 3A is an image diagram of the character string index table. The character string index table 111 is a table that is automatically generated from the character string code table 110 and the master bitmap font data of the multilingual master font data holding unit 114 when the system is initialized. FIG. 3B shows a data format.
図4(A)は、文字列インデックステーブル管理テーブルのイメージ図である。文字列インデックステーブル管理テーブル112は、システムの初期化時に、文字列コードテーブル110と多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータから自動生成されるテーブルである。 FIG. 4A is an image diagram of the character string index table management table. The character string index table management table 112 is a table automatically generated from the character string code table 110 and the master bitmap font data of the multilingual master font data holding unit 114 at the time of system initialization.
図4(B)に、データ形式を示す。言語ID、文字列ID,の2次元配列で構成され、文字列インデックステーブル111へのアドレスが登録されている。 FIG. 4B shows a data format. It consists of a two-dimensional array of language IDs and character string IDs, and addresses to the character string index table 111 are registered.
図5(A)は、多言語ビットマップフォントテーブルのイメージ図である。多言語ビットマップフォントテーブル113は、システムの初期化時に、文字列コードテーブル110と多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータから自動生成されるテーブルである。 FIG. 5A is an image diagram of a multilingual bitmap font table. The multilingual bitmap font table 113 is a table automatically generated from the character string code table 110 and the master bitmap data of the multilingual master font data holding unit 114 at the time of system initialization.
図5(B)に、データ形式を示す。文字列コードテーブル110の各文字に対応したビットマップフォントが、重複なく出現した順番に登録されたテーブルであり、文字列コードテーブル110に定義された全言語のビットマップフォントが一括登録される。 FIG. 5B shows a data format. Bitmap fonts corresponding to the characters in the character string code table 110 are registered in the order in which they appear without duplication. Bitmap fonts for all languages defined in the character string code table 110 are registered in a batch.
図6(A)は、多言語用マスターフォントデータ保持手段114で保持されるマスタービットマップフォントデータのイメージ図である。このマスタービットマップフォントデータは、システムの初期化時に、外部記憶インタフェース103を介して、多言語用マスターフォントデータ保持手段114から与えられる、12×12ドットのフルセットのオリジナルフォントデータテーブル例である。図6(B)に、データ形式を示す。 FIG. 6A is an image diagram of master bitmap font data held by the multilingual master font data holding means 114. The master bitmap font data is an example of a full 12 × 12 dot original font data table provided from the multilingual master font data holding unit 114 via the external storage interface 103 at the time of system initialization. . FIG. 6B shows a data format.
図7は、文字コード・インデックス管理テーブルのイメージ図である。文字コード・インデックス管理テーブル115は、システムの初期化時に、文字列コードテーブル110と多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータから自動生成されるテーブルであり、文字コードに対するインデックス値、文字が定義されている。 FIG. 7 is an image diagram of the character code / index management table. The character code index management table 115 is a table automatically generated from the character string code table 110 and master bitmap font data of the multilingual master font data holding means 114 at the time of initialization of the system. , Characters are defined.
図8は、フォント管理ユニットの初期化動作シーケンスを説明するフローチャートである。文字列が変更されなければ、初期化は一回だけでよい。ステップS1で初期化動作が開始すると、ステップS2では文字列コードテーブル110から1つの文字コードを読み出す。 FIG. 8 is a flowchart for explaining an initialization operation sequence of the font management unit. If the string is not changed, it only needs to be initialized once. When the initialization operation starts in step S1, one character code is read from the character string code table 110 in step S2.
ステップS3のチェックで、読み出した文字コードに対応したビットマップフォントが文字コード・インデックス対応テーブル115にある場合には、ステップS4でこのインデックス値から多言語ビットマップフォントテーブル113を参照してビットマップフォントを取り出し、初期画面を、グラフィックコントローラ105を駆動して表示させる。 If it is determined in step S3 that the bitmap font corresponding to the read character code is in the character code / index correspondence table 115, the bitmap is referred to the multilingual bitmap font table 113 from this index value in step S4. The font is taken out and the initial screen is displayed by driving the graphic controller 105.
ステップS5のチェックで、1文字列全ての処理の終了が確認され、次のステップS6チェックで、全文字列の処理の終了が確認されれば、ステップS7で初期化動作の処理を終了する。 If the check of step S5 confirms the end of the process for all the character strings, and the next check of step S6 confirms the end of the process for all the character strings, the process of the initialization operation ends in step S7.
ステップS3のチェックで、読み出した文字コードに対応したビットマップフォントが文字コード・インデックス対応テーブル115になく、かつ、ステップS8のチェックでシステムがビットマップフォント対応の場合には、ステップS9に進む。 If it is determined in step S3 that the bitmap font corresponding to the read character code is not in the character code / index correspondence table 115 and the system is bitmap font compatible in step S8, the process proceeds to step S9.
ステップS9では、外部記憶インタフェース103を介して与えられる多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータ(フルセットのビットマップフォントデータ)を文字コードで検索する。 In step S9, the master bitmap font data (full set bitmap font data) of the multilingual master font data holding means 114 given through the external storage interface 103 is searched by the character code.
ステップS10では、文字コードに対応したインデックス値との組みを前記文字コード・インデックス対応テーブル115に登録する。更に、ステップS11では、検索でマッチングしたビットマップフォントを多言語ビットマップフォントテーブル113の空きインデックス・スロットに登録し、前記したステップS4乃至S7の処理を実行して初期化動作の処理を終了する。 In step S10, a combination with the index value corresponding to the character code is registered in the character code / index correspondence table 115. Further, in step S11, the bitmap font matched by the search is registered in the empty index slot of the multilingual bitmap font table 113, the processing in steps S4 to S7 described above is executed, and the initialization operation processing is completed. .
ステップS3のチェックで、読み出した文字コードに対応したビットマップフォントが文字コード・インデックス対応テーブル115になく、かつ、ステップS8のチェックでシステムがベクターフォント対応の場合には、ステップS12に進む。 If it is determined in step S3 that the bitmap font corresponding to the read character code is not in the character code / index correspondence table 115 and the system is compatible with the vector font in step S8, the process proceeds to step S12.
ステップS12では、外部記憶インタフェース103を介して与えられる多言語用マスターフォントデータ保持手段114のマスターベクターフォントデータをビットマップデータに変換し、変換されたビットマップフォントを文字コードにより検索する。 In step S12, the master vector font data of the multilingual master font data holding means 114 given through the external storage interface 103 is converted into bitmap data, and the converted bitmap font is searched by the character code.
以下、前記したステップS10およびステップS11の処理に進み、更に前記したステップS4乃至S7の処理を実行して初期化動作の処理を終了する。 Thereafter, the process proceeds to the processes of step S10 and step S11 described above, and the processes of steps S4 to S7 described above are further executed to complete the initialization operation process.
図9は、フォント管理ユニット109の通常稼動動作時のシーケンスを説明するフローチャートである。ステップS1で1文字列単位の通常稼動動作を開始すると、ステップS2では、CPU108より渡される指定座標、言語ID、文字列IDよりなる表示要求メッセージのパラメータがフォント管理ユニット109に送られる。 FIG. 9 is a flowchart for explaining a sequence during normal operation of the font management unit 109. When the normal operation in units of one character string is started in step S1, the parameters of the display request message including the designated coordinates, language ID, and character string ID delivered from the CPU 108 are sent to the font management unit 109 in step S2.
ステップS3では、CPU108から送られたパラメータ(指定座標、言語ID、文字列ID)に基づき、文字列インデックステーブル管理テーブル112から文字列インデックステーブル111のアドレスを取得する。 In step S3, the address of the character string index table 111 is acquired from the character string index table management table 112 based on the parameters (designated coordinates, language ID, character string ID) sent from the CPU.
ステップS4では、このアドレスからビットマップフォントテーブル113にアクセスしてインデックス番号に対応したビットマップフォントを取り出し、指定座標を基点としてVRAM107に書き込む。 In step S4, the bitmap font table 113 is accessed from this address, a bitmap font corresponding to the index number is extracted, and written in the VRAM 107 using the designated coordinates as a base point.
ステップS5チェックで、1文字列すべての文字の処理を確認し、ステップS6でグラフィックコントローラ105を駆動して表示させ、ステップS7で1文字列の表示動作を終了する。 In step S5, the processing of all characters in one character string is confirmed. In step S6, the graphic controller 105 is driven and displayed. In step S7, the display operation of one character string is terminated.
図10は、フォント管理ユニットのオンライン文字コード変換動作シーケンスを説明するフローチャートである。このフローの動作は、外部通信インタフェース104から入力される動的な文字コード識別動作である。この動作を可能とするためには、多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータを常時読み込み可能に接続しておく必要がある。 FIG. 10 is a flowchart for explaining the online character code conversion operation sequence of the font management unit. The operation of this flow is a dynamic character code identification operation input from the external communication interface 104. In order to enable this operation, it is necessary to connect the master bitmap font data of the multilingual master font data holding unit 114 so that the master bitmap font data can always be read.
この処理フローは、図8で説明した初期化処理のフローと近似している。ステップS1で文字コード変換動作が開始すると、ステップS2では外部通信インタフェース104から1つの文字コードを読み出す。 This processing flow is close to the initialization processing flow described in FIG. When the character code conversion operation starts in step S1, one character code is read from the external communication interface 104 in step S2.
ステップS3のチェックで、読み出した文字コードに対応したビットマップフォントが文字コード・インデックス対応テーブル115にある場合には、ステップS4でこのインデックス値から多言語ビットマップフォントテーブル113を参照してビットマップフォントを取り出し、グラフィックコントローラ105を駆動して表示させる。 If it is determined in step S3 that the bitmap font corresponding to the read character code is in the character code / index correspondence table 115, the bitmap is referred to the multilingual bitmap font table 113 from this index value in step S4. The font is taken out and the graphic controller 105 is driven to be displayed.
ステップS5のチェックで、入力した全文字列の処理の終了が確認されれば、ステップS6で文字コード変換動作の処理を終了する。 If it is confirmed in the check in step S5 that the processing of all input character strings has been completed, the processing of the character code conversion operation is ended in step S6.
ステップS3のチェックで、読み出した文字コードに対応したビットマップフォントが文字コード・インデックス対応テーブル115になく、かつ、ステップS8のチェックでシステムがビットマップフォント対応の場合には、ステップS9に進む。 If it is determined in step S3 that the bitmap font corresponding to the read character code is not in the character code / index correspondence table 115 and the system is bitmap font compatible in step S8, the process proceeds to step S9.
ステップS9では、外部記憶インタフェース103を介して与えられる多言語用マスターフォントデータ保持手段114のマスタービットマップフォントデータ(フルセットのビットマップフォントデータ)を文字コードで検索する。 In step S9, the master bitmap font data (full set bitmap font data) of the multilingual master font data holding means 114 given through the external storage interface 103 is searched by the character code.
ステップS10では、文字コードに対応したインデックス値との組みを前記文字コード・インデックス対応テーブル115に登録する。更に、ステップS11では、検索でマッチングしたビットマップフォントをビットマップフォントテーブル113の空きインデックス・スロットに登録し、前記したステップS4乃至S6の処理を実行して変換動作の処理を終了する。 In step S10, a combination with the index value corresponding to the character code is registered in the character code / index correspondence table 115. Furthermore, in step S11, the bitmap font matched by the search is registered in the empty index slot of the bitmap font table 113, the processing of steps S4 to S6 is executed, and the processing of the conversion operation is completed.
ステップS3のチェックで、読み出した文字コードに対応したビットマップフォントが文字コード・インデックス対応テーブル115になく、かつ、ステップS8のチェックでシステムがベクターフォント対応の場合には、ステップS12に進む。 If it is determined in step S3 that the bitmap font corresponding to the read character code is not in the character code / index correspondence table 115 and the system is compatible with the vector font in step S8, the process proceeds to step S12.
ステップS12では、外部記憶インタフェース103を介して与えられるマスターフォントデータ保持手段114の多言語用マスターベクターフォントデータをビットマップデータに変換し、変換されたビットマップフォントを文字コードにより検索する。 In step S12, the multilingual master vector font data of the master font data holding means 114 given through the external storage interface 103 is converted into bitmap data, and the converted bitmap font is searched by the character code.
以下、前記したステップS10およびステップS11の処理に進み、更に前記したステップS4乃至S6の処理を実行して変換動作の処理を終了する。 Thereafter, the process proceeds to the above-described steps S10 and S11, and the above-described steps S4 to S6 are further executed to complete the conversion operation.
本発明では、ビットマップフォントを例に説明したが、ベクターフォントでも同様である。特に、ベクターフォントのラスタライズ負荷は、初回の初期化時に限定することができる。 In the present invention, a bitmap font has been described as an example, but the same applies to a vector font. In particular, the rasterization load of the vector font can be limited at the initial initialization.
本発明は、ITRONベースまたは非OS搭載のすべての組み込み機器製品、例えば、フィールド製品、通信・測定器、PLCなどに有効に適用することができる。 The present invention can be effectively applied to all embedded device products mounted with ITRON base or non-OS, such as field products, communication / measuring instruments, and PLCs.
101 フラッシュメモリ
102 システムメモリ
103 外部記憶インタフェース
104 外部通信インタフェース
105 グラフィックコントローラ
106 ディスプレー
107 VRAM
108 CPU
109 フォント管理ユニット
110 文字列コードテーブル
111 文字列インデックステーブル
112 文字列インデックステーブル管理テーブル
113 多言語ビットマップフォントテーブル
114 多言語マスターフォントデータ保持手段
115 文字コード・インデックス対応テーブル
101 Flash memory 102 System memory 103 External storage interface 104 External communication interface 105 Graphic controller 106 Display 107 VRAM
108 CPU
109 Font management unit 110 Character string code table 111 Character string index table 112 Character string index table management table 113 Multilingual bitmap font table 114 Multilingual master font data holding means 115 Character code / index correspondence table
Claims (5)
前記CPUの指令で起動されるフォント管理ユニット及び外部インタフェースを介して取得するマスタービットマップフォントデータまたはマスターベクターフォントデータを保持するマスターフォントデータ保持手段を備え、
前記フォント管理ユニットは、
システム初期化時に、前記フラッシュメモリにあらかじめ格納されている、文字列ID及び言語IDにより定義される文字列のコードを出力する文字列コードテーブルと、前記外部インタフェースを介して与えられる前記マスタービットマップフォントデータまたは前記マスターベクターフォントデータに基づき、
アドレス入力により表示すべき文字列のインデックスを出力する文字列インデックステーブルと、
前記文字列ID及び言語IDにより、前記文字列インデックステーブルへのアドレスを出力する文字列インデックステーブル管理テーブルと、
文字コードを入力し、当該文字コードに対応するインデックスを出力する文字コード・インデックス対応テーブルと、
前記文字コード・インデックス対応テーブルから出力されるインデックスを入力し、前記インデックスに対応する文字コードのビットマップフォントのパターンデータを出力するビットマップフォントテーブルと、
を生成して前記フラッシュメモリに格納することを特徴とするビットマップフォント表示装置。 In a bitmap font display device that develops a bitmap font stored in a flash memory in accordance with a command from a CPU into a VRAM, transfers it to a display by a graphic controller, and displays it.
Master font data holding means for holding a master bitmap font data or master vector font data acquired via a font management unit activated by an instruction of the CPU and an external interface,
The font management unit is
A character string code table for outputting a character string code defined by a character string ID and a language ID, which is stored in advance in the flash memory at the time of system initialization, and the master bit map given via the external interface Based on the font data or the master vector font data,
A string index table that outputs the index of the string to be displayed by address input;
A character string index table management table for outputting an address to the character string index table by the character string ID and the language ID;
A character code / index correspondence table for inputting a character code and outputting an index corresponding to the character code;
A bitmap font table that inputs an index output from the character code / index correspondence table and outputs pattern data of a bitmap font of a character code corresponding to the index;
Is generated and stored in the flash memory.
システム初期化時、または外部入力文字コードの取得時に、前記文字列コードテーブルまたは前記外部入力文字コードから1つの文字コードを読み出したとき、この文字コードに対応したビットマップフォントが前記文字コード・インデックス対応テーブルにある場合には、このインデックスから前記ビットマップフォントテーブルを参照してビットマップフォントを取り出して表示させ、全文字列の表示処理を実行することを特徴とする請求項1に記載のビットマップフォント表示装置。 The font management unit is
When one character code is read from the character string code table or the external input character code at the time of system initialization or acquisition of the external input character code, the bitmap font corresponding to this character code is the character code index. 2. The bit according to claim 1, wherein, if it is in the correspondence table, a bitmap font is extracted from the index by referring to the bitmap font table and displayed, and display processing of all character strings is executed. Map font display device.
システム初期化時、または外部入力文字コードの取得時に、前記文字列コードテーブルまたは前記外部入力文字コードから1つの文字コードを読み出したとき、この文字コードに対応したビットマップフォントが前記文字コード・インデックス対応テーブルになく、かつ、システムがビットマップフォント対応の場合には、前記文字コードで前記マスタービットマップフォントデータを検索すると共に、前記文字コードに対応したインデックスとの組みを前記文字コード・インデックス対応テーブルに登録し、前記検索でマッチングしたビットマップフォントを前記ビットマップフォントテーブルの空きインデックス・スロットに登録し、このインデックスから前記ビットマップフォントテーブルを参照してビットマップフォントを取り出して前記グラフィックコントローラを駆動して表示させ、全文字列の表示処理を実行することを特徴とする請求項1に記載のビットマップフォント表示装置。 The font management unit is
When one character code is read from the character string code table or the external input character code at the time of system initialization or acquisition of the external input character code, the bitmap font corresponding to this character code is the character code index. When not in the correspondence table and the system supports bitmap font, the master bitmap font data is searched with the character code, and a combination with the index corresponding to the character code is associated with the character code / index. The bitmap font registered in the table and registered in the search is registered in an empty index slot of the bitmap font table, and the bitmap font is retrieved from the index by referring to the bitmap font table. Wherein it is displayed by driving the graphic controller, the bit map font display device according to claim 1, wherein the display processing is executed for all strings.
システム初期化時、または外部入力文字コードの取得時に、前記文字列コードテーブルまたは前記外部入力文字コードから1つの文字コードを読み出したとき、この文字コードに対応したビットマップフォントが前記文字コード・インデックス対応テーブルになく、かつ、システムがベクターフォント対応の場合には、前記マスターベクターフォントデータをビットマップデータに変換し、前記文字コードによりビットマップ変換されたマスターフォントデータを検索すると共に、前記文字コードに対応したインデックスとの組みを前記文字コード・インデックス対応テーブルに登録し、前記検索でマッチングしたビットマップフォントを前記ビットマップフォントテーブルの空きインデックス・スロットに登録し、このインデックスから前記ビットマップフォントテーブルを参照してビットマップフォントを取り出して前記グラフィックコントローラを駆動して表示させ、全文字列の表示処理を実行することを特徴とする請求項1に記載のビットマップフォント表示装置。 The font management unit is
When one character code is read from the character string code table or the external input character code at the time of system initialization or acquisition of the external input character code, the bitmap font corresponding to this character code is the character code index. If not in the correspondence table and the system supports vector fonts , the master vector font data is converted into bitmap data, the master font data bitmap-converted by the character code is searched, and the character code A pair with an index corresponding to is registered in the character code / index correspondence table, and a bitmap font matched by the search is registered in an empty index slot of the bitmap font table. Remove the bit map font by referring to the bit map font table is displayed by driving the graphic controller, the bit map font display device according to claim 1, wherein the display processing is executed for all strings.
システム通常稼動時に、前記CPUより渡される指定座標、文字列IDを含む表示要求メッセージのパラメータに基づき、前記文字列インデックステーブル管理テーブルから前記文字列インデックステーブルのアドレスを取得し、このアドレスから前記ビットマップフォントテーブルにアクセスしてビットマップフォントを取り出し、前記指定座標を基点として前記VRAMに書き込み、前記グラフィックコントローラを駆動して表示させ、全文字列の表示処理を実行することを特徴とする請求項1乃至4のいずれかに記載のビットマップフォント表示装置。 The font management unit is
In the normal operation of the system, the address of the character string index table is acquired from the character string index table management table based on the parameters of the display request message including the designated coordinates and character string ID passed from the CPU, and the bit is calculated from the address. The bitmap font is retrieved by accessing a map font table, written into the VRAM using the designated coordinates as a base point, the graphic controller is driven to display, and display processing of all character strings is executed. The bitmap font display device according to any one of 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011021499A JP5757097B2 (en) | 2011-02-03 | 2011-02-03 | Bitmap font display device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011021499A JP5757097B2 (en) | 2011-02-03 | 2011-02-03 | Bitmap font display device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012163589A JP2012163589A (en) | 2012-08-30 |
JP5757097B2 true JP5757097B2 (en) | 2015-07-29 |
Family
ID=46843072
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011021499A Active JP5757097B2 (en) | 2011-02-03 | 2011-02-03 | Bitmap font display device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5757097B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014048647A (en) * | 2012-09-04 | 2014-03-17 | Yamaha Corp | Image display device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH01166091A (en) * | 1987-12-22 | 1989-06-29 | Fujitsu Ltd | Font controller |
JPH06259426A (en) * | 1993-03-10 | 1994-09-16 | Canon Inc | Method and device for processing character |
JP2004021831A (en) * | 2002-06-19 | 2004-01-22 | Patoraito:Kk | Display device, drawing device for display device, drawing program, and recording medium recording the program |
-
2011
- 2011-02-03 JP JP2011021499A patent/JP5757097B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2012163589A (en) | 2012-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8643652B2 (en) | Dynamic augmentation of extensible font subsets | |
JPH0527880B2 (en) | ||
JP2002507289A (en) | Glyph drawing method using layout service library | |
JP2017194959A (en) | METHOD, HOST COMPUTER SYSTEM AND NON-TRANSITORY, COMPUTER-READABLE STORAGE MEDIUM FOR ENABLING SIMULTANEOUS KERNEL MODE ACCESS AND USER MODE ACCESS TO NVMe DEVICE | |
US7629976B2 (en) | Display device, control method for the same, and information storage medium | |
US9299322B2 (en) | Rendering texts on electronic devices | |
US10203850B2 (en) | Data editing apparatus, data editing method, and data editing program | |
KR102574306B1 (en) | dynamic typesetting | |
CN103413084A (en) | Method and device for controlling display content of code box | |
JP5757097B2 (en) | Bitmap font display device | |
JPH0619439A (en) | Alteration system for screen display | |
US20100238178A1 (en) | Information processing apparatus, control device, and program | |
JPH024938B2 (en) | ||
US7657897B2 (en) | Methods and apparatus for communicating between multiple levels of software components | |
JP2007240848A (en) | Display program, data structure and display device | |
US10049478B2 (en) | Retrieval and display of visual objects | |
JP2019020892A (en) | Printing system and printer used in the same | |
CN110187881B (en) | Special-shaped window creation method, system, device and computer storage medium | |
CN113704660A (en) | Method and device for acquiring rendered page view and electronic equipment | |
JP2009163455A (en) | Business form system, business form server, information processor, method for controlling business form server, and method for controlling information processor, and program | |
JP5575262B2 (en) | Drawing apparatus, drawing method and program | |
CN113807048B (en) | Method, device, terminal and storage medium for self-adapting to character width | |
JP2009020364A (en) | Map display device and map display method | |
US10459681B2 (en) | Information processing apparatus, information processing method, and storage medium | |
JPH03279998A (en) | Font output controller |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20131205 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20140514 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140617 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140811 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20150202 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20150209 |
|
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: 20150507 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20150520 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5757097 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |