CN104598560A - Display method and display system for multifont characters of embedded system - Google Patents

Display method and display system for multifont characters of embedded system Download PDF

Info

Publication number
CN104598560A
CN104598560A CN 201510005789 CN201510005789A CN104598560A CN 104598560 A CN104598560 A CN 104598560A CN 201510005789 CN201510005789 CN 201510005789 CN 201510005789 A CN201510005789 A CN 201510005789A CN 104598560 A CN104598560 A CN 104598560A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
font
character
information
data
dot
Prior art date
Application number
CN 201510005789
Other languages
Chinese (zh)
Inventor
潘张鑫
余亚东
马海平
朱敏杰
金宝根
阮谢永
施茜蓝
Original Assignee
绍兴文理学院
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

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/3061Information retrieval; Database structures therefor ; File system structures therefor of unstructured textual data
    • G06F17/30613Indexing
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/30Information retrieval; Database structures therefor ; File system structures therefor
    • G06F17/3061Information retrieval; Database structures therefor ; File system structures therefor of unstructured textual data
    • G06F17/30731Creation of semantic tools
    • G06F17/30737Thesaurus

Abstract

The invention is applicable to the field of character display, and provides a display method and a display system for multifont characters of an embedded system. The method comprises the following steps that a current word stock information index table is preset; the currently used Chinese font and English font word stock information table address is stored into the current font information index table; character data of internal codes to be displayed is read; the currently used word stock information is obtained through the current word stock information index table, and the dot matrix data of the currently used word stock and characters are obtained according to the word stock information and the character data; characters are displayed according to the width and the height of the dot matrix character matrixes provided by the word stock information and the dot matrix data. When the method and the system provided by the invention are implemented, various character fonts can be displayed.

Description

一种嵌入式系统多字体文字的显示方法和显示系统 Method of displaying an embedded system multi-font text and display system

技术领域 FIELD

[0001] 本发明属于文字显示领域,尤其涉及一种嵌入式系统多字体文字的显示方法和显示系统。 [0001] The present invention belongs to the character display, and more particularly relates to an embedded system multi-font text display method and a display system.

背景技术 Background technique

[0002] 在嵌入式系统应用中,为实现更为良好的人机界面,通常需要在不同界面中显示不同字体的中英文字符。 [0002] In an embedded system applications, to achieve a more favorable man-machine interface, usually you need to display different fonts in different characters in English interface.

[0003] 嵌入式系统需要显示的文字中无重复的文字数通常较少,且嵌入式系统的存储容量通常较小,为了节省系统的存储资源,所以无法建立完整的字库。 Text [0003] Embedded systems need to display no repetition of the number of characters usually less, and the storage capacity of embedded systems is usually small, in order to save storage resources of the system, it is impossible to establish a complete character. 为此,通常现有的采用单一字体的嵌入式系统中的文字显示方法为: For this reason, usually existing embedded system uses a single font text display method:

[0004] 1、确定需要显示的文字; [0004] 1, determine the text to be displayed;

[0005] 2、建立某种所需字体的无重复文字的点阵字库和机内码表,点阵字库和机内码表在文字顺序上保持一致; [0005] 2, to establish some characters without repeating the desired font dot matrix font code table and the machine, the machine dot matrix font code table and consistency in the text sequence;

[0006] 3、以当前需显示文字的机内码为索引查找机内码表,确定该内码在机内码表中的索引值; [0006] 3, the current machine code to be displayed as an index to find the text of the machine code table to determine the index value of the machine code in the code table;

[0007] 4、根据索引值计算需显示文字的点阵字模数据在点阵字库中的起始地址; [0007] 4, is calculated to be displayed according to the index value of the starting address of the character in dot matrix font data of the font;

[0008] 5、根据起始地址获取字模数据,显示相应文字。 [0008] 5, font data acquired according to the start address of the respective display text.

[0009] 在嵌入式系统需要多字体显示中英文字符时,面临着几个新问题,主要是: [0009] When embedded systems require multiple font display Chinese and English characters, new faces several problems, mainly:

[0010] 1、如何以简单、统一的方式为每种所需字体建立所需字符的字库; [0010] 1, What is a simple, unified way to build character fonts required for each desired font;

[0011] 2、如何以简单的方式实现字体的选择; [0011] 2, What is a simple way to achieve font selection;

[0012] 3、在每种字体的点阵字库所含的字符数、点阵数据不尽相同的情况下,如何以一种统一、高效的方式从所选字体的字库中找到待显示字符的点阵字模数据并加以显示,而不是为每种字体分别建立一种字模数据的查找和显示方法。 [0012] 3, the number of characters in each font contained in the dot matrix font, the different lattice data, how in a uniform and efficient way to find the font to be selected from the display character font dot matrix font data and displays, rather than for each font establish a method to find and display font data, respectively.

发明内容 SUMMARY

[0013] 鉴于此,本发明提供一种嵌入式系统多字体文字的显示方法和显示系统,以解决现有技术无法显示多种字体的技术问题。 [0013] In view of this, the present invention provides a multi-font text embedded system display method and a display system, to solve the technical problems of the prior art can not display multiple fonts.

[0014] 本发明实施例是这样实现的,一种嵌入式系统多字体文字的显示方法,所述方法包括以下步骤: [0014] Example embodiments of the present invention is implemented, the display method of multi-font text embedded system, said method comprising the steps of:

[0015] 预设当前字库信息索引表; [0015] The current default font information index table;

[0016] 将当前使用的中文字体和英文字体的字库信息表地址存放到所述当前字库信息索引表; [0016] The currently used in Chinese and English font character font address information table stored in the current font information index table;

[0017] 读取待显示的机内码格式的字符数据; [0017] The read character data to be displayed in machine code format;

[0018] 通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和所述字符数据获取当前使用的字库和字符的点阵数据; [0018] acquires font information currently used by the current font information index table, and acquires font data and dot-matrix characters according to the currently used and character information of the character data;

[0019] 根据所述点阵数据和字库信息提供的点阵字模的宽度、高度显示字符。 [0019] The width of the dot matrix font data and dot font information, the display height of the character.

[0020] 本发明实施例还提供一种嵌入式系统多字体文字的显示系统,所述系统包括: [0020] The display system according to the present invention further provides a multi-font text embedded system, the system comprising:

[0021] 预设单元,用于预设当前字库信息索引表; [0021] The preset unit for presetting the current font information index table;

[0022] 存放单元,用于将当前使用的中文字体和英文字体的字库信息表地址存放到所述预设单元预设的当前字库信息索引表; [0022] The storage unit for storing the fonts currently used in Chinese and English character font address information table unit preset to the preset current font information index table;

[0023] 字符数据读取单元,用于读取待显示的机内码格式的字符数据; [0023] The character data reading means for reading the character data to be displayed in machine code format;

[0024] 获取单元,用于通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和所述字符数据读取单元读取的字符数据获取当前使用的字库和字符的点阵数据; [0024] acquiring unit, configured to acquire font information currently used by the current font information index table, and reads the character data reading unit acquires font and character currently in use based on the font information and the character data dot matrix data;

[0025] 显示单元,用于根据所述获取单元获取的点阵数据和字库信息提供的点阵字模的宽度、高度显示字符。 [0025] The display unit according to the width of the dot matrix font dot data acquisition unit and acquires the font information, the display height of the character.

[0026] 本发明实施例,预设当前字库信息索引表,将当前使用的中文字体和英文字体的字库信息表地址存放到所述当前字库信息索引表,读取待显示的机内码格式的字符数据, 通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和读取的字符数据获取当前使用的字库和字符的点阵数据,根据所述字符的点阵数据和字库信息提供的点阵字模的宽度、高度显示字符,使得字库建立、字体选择以及显示简单方便,且便于字符的增减等维护操作。 [0026] The machine code format of the present embodiment of the invention, the preset current font information index table, storing the fonts currently used in Chinese and English character font address information table to the current font information index table, to be read displayed character data, character information index table information acquired by the current font currently in use, and acquires font data and dot-matrix characters according to the character currently in use and the data of the font information is read, according to the dot data of the character and the width of the dot matrix font information, the display height of the character, so that the establishment of character, font selection and a display is simple and convenient, and easy maintenance operations such as changes in the character.

附图说明 BRIEF DESCRIPTION

[0027] 为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。 [0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings briefly described embodiments or the prior art needed to be used in describing the embodiments. Apparently, the drawings described below are merely Some embodiments of the present invention, those of ordinary skill in the art is concerned, without any creative effort, and may also obtain other drawings based on these drawings.

[0028] 图1是本发明实施例提供的嵌入式系统多字体文字显示方法的流程图; [0028] FIG. 1 is a system provided in an embedded multi-font character flowchart of a method embodiment of the present invention display;

[0029] 图2是本发明实施例提供的接口函数的实现流程图; [0029] FIG. 2 is a flow chart for implementing an interface function according to an embodiment of the present invention;

[0030] 图3是本发明实施例提供的嵌入式系统多字体文字显示系统的结构图。 [0030] FIG. 3 is a configuration diagram of an embedded system to provide multi-font text embodiment of a display system embodiment of the present invention.

具体实施方式 detailed description

[0031] 为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。 [0031] To make the objectives, technical solutions and advantages of the present invention will become more apparent hereinafter in conjunction with the accompanying drawings and embodiments of the present invention will be further described in detail. 应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。 It should be understood that the specific embodiments described herein are only intended to illustrate the present invention and are not intended to limit the present invention.

[0032] 为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。 [0032] In order to describe the technical solutions of the present invention will be illustrated by specific examples.

[0033] 实施例一 [0033] Example a

[0034] 如图1所示为本发明实施例提供的嵌入式系统多字体文字显示方法的流程图,所述方法包括以下步骤: [0034] As shown in FIG. 1 is a flowchart of the present method for displaying an embedded system according to the embodiment of multi-font text invention, the method comprising the steps of:

[0035] 步骤S101,确定需要使用的字体种类以及每种字体中无重复的文字。 [0035] In step S101, the determined font type and need no duplicate each font character.

[0036] 在本发明实施例中,不同的嵌入式系统所需的字体以及每种字体下需要的无重复文字都不相同,实际应用中,可根据当前嵌入式系统的需求确定需要使用的字体种类以及每种字体下需要的无重复文字。 [0036] In an embodiment of the present invention, the desired font, and various embedded systems require no repetition in each font characters are not the same, the practical application, may need to determine the current font used according to the needs of the embedded system type and no need to repeat the text of each font.

[0037] 步骤S102,为所述每种字体建立点阵字库,并为所述点阵字库建立字库信息表。 [0037] step S102, the establishment of each font is a dot matrix font, font information and to establish the dot font table.

[0038] 在本发明实施例中,对于每种字体,都分别建立一个点阵字库,用于存放相应字体所包含的文字的机内码和点阵字模数据。 [0038] In an embodiment of the present invention, for each font, respectively establishing a dot matrix font, a machine code and the stored character dot matrix font data included in the corresponding font. 点阵字库中,一个文字的机内码和它的点阵字模数据相邻存放,通常机内码在前;各文字按照其机内码升序或降序无间隔地排列。 In dot matrix font, a machine code word and its adjacent dot font data storage, usually within the previous machine code; each character which are arranged without intervals in accordance with the machine code in ascending or descending. 点阵字库的具体实现方式可采用二维数组,其中的某一维即存放某个文字的机内码和它的点阵字模数据。 Dot matrix font specific implementation of the two-dimensional array can be employed, i.e., one dimension of which store a machine code and its character dot matrix font data.

[0039] 对于每一个所建立的点阵字库,分别建立对应的字库信息表,用于存储相应点阵字库的如下信息:字库类型(英文或中文)、文字数、字模宽度、字模高度、字模字节数、对应的点阵字库地址。 [0039] For each of the dot matrix font established, are established corresponding font information table, the following information corresponding to the dot font storage: font type (English or Chinese), number of characters, font width, font height, font character number of sections, corresponding to a dot font address. 所述字模字节数为单个文字字模数据的字节数与单个文字机内码字节数之和。 The number of bytes for a single font text and the number of bytes to the number of bytes of the machine code of a single character font data. 字库信息表的具体实现方式可采用结构体形式。 DETAILED implementation font information table may take the form of structures.

[0040] 步骤S103,预设当前字库信息索引表。 [0040] step S103, the current preset character-information index table.

[0041] 在本发明实施例中,嵌入式系统在不同的情况下需要使用不同字体的中文文字和英文字母显示文字,当前字库信息索引表用于同时存放嵌入式系统当前使用的中文文字的字库信息表地址和当前使用的英文字母的字库信息表地址。 [0041] In an embodiment of the present invention, an embedded system requires the use of different fonts in different situations Chinese characters and English letters display text, font information index table for the current store Chinese characters while embedded font currently used address information table and letters currently used font information table address.

[0042] 步骤S104,将当前使用的中文字体和英文字体的字库信息表地址存放到所述当前字库信息索引表。 [0042] In step S104, the font currently used in Chinese and English character font address information table stored in the index table of the current font information.

[0043] 在本发明实施例中,根据嵌入式系统当前的显示需要,选择当前使用的一种中文字体和一种英文字体,分别将对应的中文字体的字库信息表地址和对应的英文字体的字库信息表地址存放到当前字库信息索引表中。 [0043] In an embodiment of the present invention, a display according to the current needs of embedded systems currently used to select a Chinese font and one font English, respectively corresponding to the Chinese character font address information table and the corresponding English font font information table to address the current font information is stored in the index table.

[0044] 步骤S105,读取待显示的机内码格式的字符数据。 [0044] step S105, the read character data to be displayed in machine code format.

[0045] 在本发明实施例中,字符数据以机内码格式存储于嵌入式系统中,可以是字符串或单个字符,中英文字符数据可以混合。 [0045] In an embodiment of the present invention, the character data is stored in the machine code format in the embedded system, or may be a single character string, the character data can be mixed in English. 字符数据以字节为单位,一个机内码格式的中文字符数据具有2个字节,每个字节的最高位为1 ;一个机内码格式的英文字符数据具有1个字节,字节的最高位为〇。 Character data in bytes, a Chinese character data having machine code format 2 bytes, the most significant bit of each byte is 1; English characters a machine code data having a format byte, the most significant bit is square. 在显示中英文文字时,以字节为单位依次读取待显示的字符数据,如果当前读取的1字节字符数据的值小于128,则将当前数据作为1个英文字符数据;否则, 将当前的1字节字符数据以及后续读入的1字节字符数据共同构成1个中文文字的字符数据。 When displaying the English text, in bytes sequentially read character data to be displayed, 1-byte character data if the current reading is less than 128, then the current data as an English character data; otherwise, the current byte character data and a 1-byte character data subsequent read character data constitute a Chinese character.

[0046] 步骤S106,通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和所述字符数据获取当前使用的字库和字符的点阵数据。 [0046] step S106, acquires font information currently used by the current font information index table, and acquires font data and dot-matrix characters according to the currently used and character information of the character data.

[0047] 在本发明实施例中,如果读取的字符数据属于英文字符,根据当前字库信息索引表中的当前采用的英文字体的字库信息表地址,找到当前采用的英文字体的字库信息表, 取得字库信息,再根据当前采用的英文字体的字库信息中的字库地址,查找对应的点阵字库。 [0047] In an embodiment of the present invention, if the character data read English characters belong, according to the English character font address information table of the current of the current font information index table employed to find the currently used English character font information table, acquire font information, font information and then based on the current use of English font in the font address, find the corresponding dot matrix font. 如果读取的字符数据属于中文字符,根据当前字库信息索引表中的当前采用的中文字体的字库信息表地址,找到当前采用的中文字体的字库信息表,取得字库信息,再根据当前采用的中文字体的字库信息中的字库地址,查找对应的点阵字库。 If the character data read belongs to Chinese characters, according to the Chinese character font information table using the current address of the current font information in the index table, find the Chinese character font information table currently used to obtain font information, and then used according to the current Chinese address character font information in a font, look for the corresponding dot matrix font.

[0048] 查找点阵字库时,将字符数据的机内码值与点阵字库中所有字符的机内码以二分法逐一比较,如果字符数据的机内码值与点阵字库中第η个字符的机内码一致,则英文字符点阵数据的地址可计算为:字库地址+ηΧ字模字节数+1,中文字符点阵数据的地址可计算为:字库地址+ηΧ字模字节数+2,其中字库地址和字模字节数由字库信息提供。 [0048] When a dot font look, the machine code to the machine code values ​​of dot matrix font data of the character of all characters in each comparison dichotomy, if the machine code values ​​of dot matrix font data of character η th consistent machine code characters, English characters of the address data dot may be calculated as: + ηΧ character font address bytes + 1, the address data dot Chinese character may be calculated as: the number of character font address bytes + + ηΧ 2, wherein the number of fonts and font byte address information provided by the font. 如果字符数据的机内码值与点阵字库中所有字符的机内码均不一致,表明字库中没有对应的字符,可将所查找字符的点阵数据的地址定为NULL.根据所述字符点阵数据的地址,找到字符点阵数据。 If the machine code to the machine code values ​​of the dot font character data are inconsistent with all the characters, indicates that no font corresponding to the character, the address lookup data matrix characters may be set to NULL. The point of the character address array data, find the character dot-matrix data.

[0049] 步骤S107,根据所述点阵数据和字库信息提供的点阵字模的宽度、高度显示字符。 [0049] step S107, the width of the dot matrix font data and dot font information, the display height of the character.

[0050] 本发明实施例,预设当前字库信息索引表,将当前使用的中文字体和英文字体的字库信息表地址存放到所述当前字库信息索引表,读取待显示的机内码格式的字符数据, 通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和读取的字符数据获取当前使用的字库和字符的点阵数据,根据所述字符的点阵数据和字库信息提供的点阵字模的宽度、高度显示字符,使得字库建立、字体选择以及显示简单方便,且便于字符的增减等维护操作。 [0050] The machine code format embodiment of the present invention, the preset current font information index table, storing the fonts currently used in Chinese and English character font address information table to the current font information index table, to be read displayed character data, character information index table information acquired by the current font currently in use, and acquires font data and dot-matrix characters according to the character currently in use and the data of the font information is read, according to the dot data of the character and the width of the dot matrix font information, the display height of the character, so that the establishment of character, font selection and a display is simple and convenient, and easy maintenance operations such as changes in the character.

[0051] 举例说明: [0051] For example:

[0052] 以基于C语言的应用实施例来说明本方法,其中包括: [0052] In embodiments of the application based on the C language to illustrate the method including:

[0053] 1)确定字体种类及文字; [0053] 1) to determine the type of font and text;

[0054] 2)建立点阵字库; [0054] 2) the establishment of a dot font;

[0055] 3)建立字库信息表; [0055] 3) the establishment of character information table;

[0056] 4)建立当前字库信息索引表; [0056] 4) Establishing a character information index table;

[0057] 5)字体选择接口函数和选择当前字体; [0057] 5) font selection interface function and the current font selection;

[0058] 6)显示字符串的接口函数。 [0058] 6) a display interface function strings.

[0059] 其中: [0059] wherein:

[0060] 1)确定字体种类及文字 [0060] 1) to determine the font type and text

[0061] 假设在一嵌入式应用系统中,需要8X16 (宽度X高度)点阵的Fixedsys英文字体,其中需要a、b、c、d四个字符;需要13X13点阵的宋体,其中需要"显"、"示"两个文字; 需要15X15点阵的宋体,其中需要"字"、"符"两个文字。 [0061] In an assumed embedded applications, it is necessary 8X16 (width X height) Fixedsys English font dot matrix, wherein require a, b, c, d four characters; Song need 13X13 dot matrix, wherein the need for "significant "," show "two characters; Song need 15X15 dot matrix, where required," word "," symbol "two characters.

[0062] 2)建立点阵字库 [0062] 2) establish a dot matrix font

[0063] 使用点阵字模生成软件PCtoLCD2002生成8 X 16点阵Fixedsys英文字体所需字符的点阵字模,并将各字符的机内码和点阵字模按步骤2所述规则存放于如下的二维数组中,构成一个8X16点阵的Fixedsys英文字体字库: [0063] PCtoLCD2002 using dot matrix generation software to generate 8 X 16 dot fonts needed Fixedsys English dot font character, and the machine code of each character and the dot matrix according to the rules stored in said second step the following two dimensional array to form a lattice Fixedsys 8X16 English font font:

[0064] unsigned char const font_fixedsys8_16[] [17] =//8X 16Fixedsys 英文字体字库 [0064] unsigned char const font_fixedsys8_16 [] [17] = // 8X 16Fixedsys English font font

[0065] {{97, //文字a的机内码 [0065] {{97 // text of a machine code

[0066] //文字a的点阵字模数据 [0066] // dot matrix font data of a character

[0067] 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x3E, 0x00, [0067] 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x3E, 0x00,

[0068] 0x00, 0x00, 0x00}, [0068] 0x00, 0x00, 0x00},

[0069] {98, //文字b的机内码 [0069] {98 // text of machine code b

[0070] //文字b的点阵字模数据 [0070] b @ character font data dot

[0071] 0x00, 0x00, 0x00, 0x60, 0x60, 0x7C, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x00, [0071] 0x00, 0x00, 0x00, 0x60, 0x60, 0x7C, 0x66, 0x66, 0x66, 0x66, 0x66, 0x7C, 0x00,

[0072] 0x00, 0x00, 0x00}, [0072] 0x00, 0x00, 0x00},

[0073] {99, //文字c的机内码 [0073] {99 // text of machine code c

[0074] //文字c的点阵字模数据 [0074] c @ character font data dot

[0075] 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0x60, 0x60, 0x60, 0x66, 0x3C, 0x00, [0075] 0x00, 0x00, 0x00, 0x00, 0x00, 0x3C, 0x66, 0x60, 0x60, 0x60, 0x66, 0x3C, 0x00,

[0076] 0x00, 0x00, 0x00}, [0076] 0x00, 0x00, 0x00},

[0077] {100, //文字d的机内码 [0077] {100, the text // d of machine code

[0078] //文字d的点阵字模数据 [0078] d @ character font data dot

[0079] 0x00, 0x00, 0x00, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3E, 0x00, [0079] 0x00, 0x00, 0x00, 0x06, 0x06, 0x3E, 0x66, 0x66, 0x66, 0x66, 0x66, 0x3E, 0x00,

[0080] 0x00,0x00,0x00}}; [0080] 0x00,0x00,0x00}};

[0081] 以同样的方法建立13X13点阵的宋体字库和15X15点阵的宋体字库(采用的点阵字模生成软件是"字符软件V0. 1"): [0081] 13X13 matrix established in the same manner as Times New Roman font Times New Roman font and 15X15 dot matrix (dot matrix generation software uses a "software character V0 1."):

[0082] unsigned char const font_songl3_13[] [28] =//13 X 13 宋体字库 [0082] unsigned char const font_songl3_13 [] [28] = // 13 X 13 Times New Roman font

[0083] {{OxCA, OxBE, // 文字"示"的机内码 [0083] {{OxCA, OxBE, // text "shown" to machine code

[0084] //文字"示"的点阵字模数据 [0084] // Text "shows a" dot font data

[0085] 0x00, 0x00, OxlF, OxCO, 0x00, 0x00, 0x00, 0x00, 0x7F, OxFO, 0x02, 0x00, 0x02, [0085] 0x00, 0x00, OxlF, OxCO, 0x00, 0x00, 0x00, 0x00, 0x7F, OxFO, 0x02, 0x00, 0x02,

[0086] 0x00, 0x12, 0x40, 0x12, 0x20, 0x22, 0x10, 0x42, 0x10, 0x06, 0x00, 0x00, 0x00}, [0086] 0x00, 0x12, 0x40, 0x12, 0x20, 0x22, 0x10, 0x42, 0x10, 0x06, 0x00, 0x00, 0x00},

[0087] {OxCF, 0xD4, //文字"显"的机内码 [0087] {OxCF, 0xD4, // text "obvious" in machine code

[0088] //文字"显"的点阵字模数据 [0088] // word "significant" in dot matrix font data

[0089] 0x00, 0x00, 0x3F, OxEO, 0x20, 0x20, 0x3F, OxEO, 0x20, 0x20, 0x3F, 0χΕ0, 0x08, [0089] 0x00, 0x00, 0x3F, OxEO, 0x20, 0x20, 0x3F, OxEO, 0x20, 0x20, 0x3F, 0χΕ0, 0x08,

[0090] 0x80, 0x48, 0x90, 0x28, 0χΑ0, 0x18, OxCO, 0x08, 0x80, 0x7F, OxFO, 0x00, 0x00}}; [0090] 0x80, 0x48, 0x90, 0x28, 0χΑ0, 0x18, OxCO, 0x08, 0x80, 0x7F, OxFO, 0x00, 0x00}};

[0091] unsigned char const font_songl5_15[] [32] =//15 X 15 宋体字库 [0091] unsigned char const font_songl5_15 [] [32] = // 15 X 15 Times New Roman font

[0092] {{0xB7, OxFB, // 文字"符"的机内码 [0092] {{0xB7, OxFB, // the word "symbol" in machine code

[0093] //文字"符"的点阵字模数据 [0093] // text "character" dot font data

[0094] 0x10, 0x40, 0x10, 0x48, 0x3E, OxFC, 0x45, 0x10, 0x8A, 0x00, 0x08, 0x20, 0x17, [0094] 0x10, 0x40, 0x10, 0x48, 0x3E, OxFC, 0x45, 0x10, 0x8A, 0x00, 0x08, 0x20, 0x17,

[0095] OxFC, 0x30, 0x20, 0x52, 0x20, 0x91, 0x20, 0x11, 0x20, 0x10, 0x20, 0x10, 0χΑ0, [0095] OxFC, 0x30, 0x20, 0x52, 0x20, 0x91, 0x20, 0x11, 0x20, 0x10, 0x20, 0x10, 0χΑ0,

[0096] 0x10, 0x40, 0x00, 0x00}, [0096] 0x10, 0x40, 0x00, 0x00},

[0097] {0xD7, 0xD6, //文字"字"的机内码 [0097] {0xD7, 0xD6, // text "words" machine code

[0098] //文字"字"的点阵字模数据 [0098] // word "word" dot matrix font data

[0099] 0x02, 0x00, 0x01, 0x00, 0x3F, 0xF8, 0x20, 0x08, 0x5F, 0xF0, 0x00, 0x40, 0x01, [0099] 0x02, 0x00, 0x01, 0x00, 0x3F, 0xF8, 0x20, 0x08, 0x5F, 0xF0, 0x00, 0x40, 0x01,

[0100] 0x80, 0x01, 0x08, OxFF, OxFC, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x05, 0x00, [0100] 0x80, 0x01, 0x08, OxFF, OxFC, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x05, 0x00,

[0101] 0x02, 0x00, 0x00, 0x00}}; [0101] 0x02, 0x00, 0x00, 0x00}};

[0102] 3)建立字库信息表 [0102] 3) the establishment of character information table

[0103] 定义如下的字库信息数据结构,用于表示步骤3所述的字库信息: [0103] font data structure is defined as information for representing the character information 3 steps:

[0104] [0104]

Figure CN104598560AD00081

[0105] 定义如下的宏,用于表示字库类型: [0105] macros defined below, is used to indicate the type of font:

[0106] #define FONTEN 0 //FONTEN 代表英文类型 [0106] #define FONTEN 0 // FONTEN representative of the type of English

[0107] #define FONTCH I //FONTCH 代表中文类型 [0107] #define FONTCH I // FONTCH on behalf of Chinese type

[0108] 建立所需3种字体字库的字库信息表为: [0108] needed to establish three kinds of font font font information table:

[0109] F0NT_INF0 const fontinfo_fixedsys8_16 = {FONTEN, 4, 8, 16, 17, [0109] F0NT_INF0 const fontinfo_fixedsys8_16 = {FONTEN, 4, 8, 16, 17,

[0110] (unsigned char*) font_fixedsys8_16} ;//8X 16Fixedsys 英文字体字库信息表 [0110] (unsigned char *) font_fixedsys8_16}; // 8X 16Fixedsys English character font information table

[0111] F0NT_INF0 const fontinfo_songl3_13 = {FONTCH, 2, 13, 13, 28, [0111] F0NT_INF0 const fontinfo_songl3_13 = {FONTCH, 2, 13, 13, 28,

[0112] (unsigned char*) font_songl3_13} ;//13 X 13 宋体字库信息表 [0112] (unsigned char *) font_songl3_13}; // 13 X 13 Times New Roman font information table

[0113] F0NT_INF0 const fontinfo_songl5_15 = {F0NTCH, 2, 15, 15, 32, [0113] F0NT_INF0 const fontinfo_songl5_15 = {F0NTCH, 2, 15, 15, 32,

[0114] (unsigned char*) font_songl5_15} ;//15 X 15 宋体字库信息表 [0114] (unsigned char *) font_songl5_15}; // 15 X 15 Times New Roman font information table

[0115] 4)建立当前字库信息索引表 [0115] 4) established the current font information index table

[0116] 建立当前字库信息索引表为: [0116] establish the current font information in the index table:

[0117] F0NT_INF0*CURFontIndex[2]; [0117] F0NT_INF0 * CURFontIndex [2];

[0118] CURFontIndex[0]用于存放当前使用的中文字库信息表地址,CURFontIndex[l] 用于存放当前使用的英文字库信息表地址。 [0118] CURFontIndex [0] Chinese character information table for storing the address of the currently used, CURFontIndex [l] is used to store information in English character table address currently used.

[0119] 5)字体选择接口函数和选择当前字体 [0119] 5) font selection interface function and the current font selection

[0120] 字体选择接口函数定义为: [0120] Font selection interface function is defined as:

[0121] [0121]

Figure CN104598560AD00082

[0122] 函数⑶I_SetFont用于将一种字体的字库信息表地址存入当前字库信息索引表中,即选择该字体作为当前字体,例如: [0122] ⑶I_SetFont function for a font character is stored in the address information table of the current font information index table, i.e., the selected font as the current font, for example:

[0123] GUI_SetFont((FONT_INFO*)&fontinfo_fixedsys8_16) ;// 选择8X16Fixedsys 英文字体作为当前英文字体 [0123] GUI_SetFont ((FONT_INFO *) & fontinfo_fixedsys8_16); // Select 8X16Fixedsys English English font as the current font

[0124] (^1_56七?〇拉($0阶'_1呖0*)&作扯丨1^〇_8〇叩15_15);//选择15\15宋体作为当前中文字体 [0124] (? ^ 1_56 seventy pull ($ 0-order '_1 cracking 0 *) & make pull Shu 1 ^ 〇_8〇 knock 15_15); // select 15 \ 15 as the current Chinese New Roman font

[0125] 6)显示字符串的接口函数 [0125] 6) function string display interface

[0126] 显示字符串的接口函数根据步骤6至步骤8所述的方法显示字符串,其原型定义为:void GUI_PutText (char*str, unsigned int x0, unsigned int yO) [0126] Display interface function string display character string according to method step 6 to step 8, the prototype is defined as: void GUI_PutText (char * str, unsigned int x0, unsigned int yO)

[0127] 其中参数str为指向待显示字符串数据的指针,参数xO、yO为字符串显示的起始坐标。 [0127] wherein the parameter str string pointer to point to the data to be displayed, the parameters xO, yO starting coordinate string displayed. 如图2所示为本发明实施例提供的接口函数的实现流程图,包括: FIG interface functions to achieve a flow chart according to an embodiment of the present invention shown in FIG. 2, comprising:

[0128] 程序执行开始,首先进入步骤S1,读取字符指针str指向的一字节字符数据。 [0128] the program execution starts, first enters step S1, the read pointer to a character byte character data str points. 接下来在步骤S2中,判断字符数据是否为0,如果结果为"是",则表示字符串结束,即显示程序结束。 Next, in step S2, it is determined whether the character data is 0 if the result is "YES", indicating the end of the string, the end of the program is displayed. 如果结果为"否",则执行下一个步骤S3,该步骤根据字符数据的值,判断字符是否为英文字符,如果结果为"是",则进入步骤S4中。 If the result is "NO", then performs the next step S3, the character data based on the value of this step, it is determined whether the character is English characters, if the result is "YES", the process proceeds to step S4. 步骤S4根据当前字库信息索引表中的当前采用的英文字体字库信息表地址,找到当前采用的英文字体的字库信息表,取得字库信息;根据该字库信息中的字库地址,查找对应的点阵字库,将字符数据的机内码值与点阵字库中所有字符的机内码以二分法逐一比较,如果字符数据的机内码值与点阵字库中第η个字符的机内码一致,则字符点阵数据的地址计算为:字库地址+ηΧ字模字节数+1 ;根据所述字符点阵数据的地址,找到字符点阵数据。 Step S4 according to the English font font information table used in the current address of the current font information in the index table, find the English font font information table currently used to obtain font information; based on the font information in the font address, find the corresponding dot matrix font the machine code values ​​of dot matrix font data of the character of all characters in machine code dichotomy each comparison, if the same machine code value and the dot data of the character font character η machine code, address character dot matrix data are calculated as: character font address + 1 + the number of bytes ηΧ; address the character dot data, character dot data is found. 接下来转到步骤S7,该步骤根据所述找到的字符点阵数据,结合字库信息给出的点阵字模的宽度、高度显示字符。 Turning next to step S7, the steps of the dot data of the character is found, the combined width of the dot matrix information given font, the height of the character. 接下来执行步骤S8, 字符指针str加1,指向下一个字符数据,并返回步骤S1。 Executed next step S8, str character pointer is incremented to point to the next character data, and returns to step S1. 如果执行步骤S3的判断结果为"否",则下一步转到步骤S5,将字符指针str加1,通过str读取下一字节字符数据,并与读取的前一字节字符数据合并为一个中文字符数据。 If the determination result of step S3 is "NO", the next step goes to step S5, the character pointer plus 1 str, read the next data byte character str, and combined with the previous byte character data read data is a Chinese character. 接下来执行步骤S6,该步骤根据当前字库信息索引表中的当前采用的中文字体字库信息表地址,找到当前采用的中文字体的字库信息表,取得字库信息;根据该字库信息中的字库地址,将字符数据的机内码值与点阵字库中所有字符的机内码以二分法逐一比较,如果字符数据的机内码值与点阵字库中第η个字符的机内码一致,则字符点阵数据的地址计算为:字库地址+ηΧ字模字节数+2 ;根据所述字符点阵数据的地址,找到字符点阵数据。 Proceed to step S6, the steps of the Chinese character font information table used in the current address of the current font information in the index table, find the Chinese character font information table currently used to obtain font information; font address in accordance with the font information, the machine code value and the dot character font data for all characters in machine code dichotomy each comparison, if the value of the machine code and the dot data of the character font character η same machine code, the character the data are calculated as the dot address: character font address bytes + 2 + ηΧ; address the character dot data, character dot data is found. 接下来执行如前所述的步骤S7和S8,然后返回步骤S1。 The next step S7 performed as previously described and S8, and then returns to step S1.

[0129] 实施例二 [0129] Second Embodiment

[0130] 如图3所示为本发明实施例提供的嵌入式系统多字体文字显示系统的结构图,为了便于说明,仅示出与本发明实施例相关的部分,包括: [0130] As shown in FIG. 3 of the present configuration diagram of a display system of the multi-font text embedded system provided in the embodiment of the invention, for convenience of explanation, only a part related to the embodiment of the present invention, comprising:

[0131] 确定单元301,用于确定需要使用的字体种类以及每种字体中无重复的文字。 [0131] determination unit 301 for determining a font type and need no duplicate each font character.

[0132] 在本发明实施例中,不同的嵌入式系统所需的字体以及每种字体下需要的无重复文字都不相同,实际应用中,可根据当前嵌入式系统的需求确定需要使用的字体种类以及每种字体下需要的无重复文字。 [0132] In an embodiment of the present invention, the desired font, and various embedded systems require no repetition in each font characters are not the same, the practical application, may need to determine the current font used according to the needs of the embedded system type and no need to repeat the text of each font.

[0133] 建立单元302,用于为所述确定单元301确定的字体建立点阵字库,并为所述点阵字库建立字库信息表。 [0133] creating unit 302, the determining unit 301 is used to determine the font dot matrix font established, and the establishment of the dot character font information table.

[0134] 在本发明实施例中,对于每种字体,都分别建立一个点阵字库,用于存放相应字体所包含的文字的机内码和点阵字模数据。 [0134] In an embodiment of the present invention, for each font, respectively establishing a dot matrix font, a machine code and the stored character dot matrix font data included in the corresponding font. 点阵字库中,一个文字的机内码和它的点阵字模数据相邻存放,通常机内码在前;各文字按照其机内码升序或降序无间隔地排列。 In dot matrix font, a machine code word and its adjacent dot font data storage, usually within the previous machine code; each character which are arranged without intervals in accordance with the machine code in ascending or descending. 点阵字库的具体实现方式可采用二维数组,其中的某一维即存放某个文字的机内码和它的点阵字模数据。 Dot matrix font specific implementation of the two-dimensional array can be employed, i.e., one dimension of which store a machine code and its character dot matrix font data.

[0135] 对于每一个所建立的点阵字库,分别建立对应的字库信息表,用于存储相应点阵字库的如下信息:字库类型(英文或中文)、文字数、字模宽度、字模高度、字模字节数、对应的点阵字库地址。 [0135] For each of the dot matrix font established, are established corresponding font information table, the following information corresponding to the dot font storage: font type (English or Chinese), number of characters, font width, font height, font character number of sections, corresponding to a dot font address. 所述字模字节数为单个文字字模数据的字节数与单个文字机内码字节数之和。 The number of bytes for a single font text and the number of bytes to the number of bytes of the machine code of a single character font data. 字库信息表的具体实现方式可采用结构体形式。 DETAILED implementation font information table may take the form of structures.

[0136] 预设单元303,用于预设当前字库信息索引表。 [0136] presetting unit 303, a preset current font information index table.

[0137] 在本发明实施例中,嵌入式系统在不同的情况下需要使用不同字体的中文文字和英文字母显示文字,当前字库信息索引表用于同时存放嵌入式系统当前使用的中文文字的字库信息表地址和当前使用的英文字母的字库信息表地址。 [0137] In an embodiment of the present invention, an embedded system requires the use of different fonts in different situations Chinese characters and English letters display text, font information index table for the current store Chinese characters while embedded font currently used address information table and letters currently used font information table address.

[0138] 存放单元304,用于将当前使用的中文字体和英文字体的字库信息表地址存放到所述预设单元303预设的当前字库信息索引表。 [0138] storage unit 304, currently used for Chinese characters and English character font address information table storage unit 303 to the preset information preset current character index table.

[0139] 在本发明实施例中,根据嵌入式系统当前的显示需要,选择当前使用的一种中文字体和一种英文字体,分别将对应的中文字体的字库信息表地址和对应的英文字体的字库信息表地址存放到当前字库信息索引表中。 [0139] In an embodiment of the present invention, a display according to the current needs of embedded systems currently used to select a Chinese font and one font English, respectively corresponding to the Chinese character font address information table and the corresponding English font font information table to address the current font information is stored in the index table.

[0140] 字符数据读取单元305,用于读取待显示的机内码格式的字符数据。 [0140] Character data reading unit 305, the read character data to be displayed in machine code format.

[0141] 在本发明实施例中,字符数据以机内码格式存储于嵌入式系统中,可以是字符串或单个字符,中英文字符数据可以混合。 [0141] In an embodiment of the present invention, the character data is stored in the machine code format in the embedded system, or may be a single character string, the character data can be mixed in English. 字符数据以字节为单位,一个机内码格式的中文字符数据具有2个字节,每个字节的最高位为1 ;一个机内码格式的英文字符数据具有1个字节,字节的最高位为〇。 Character data in bytes, a Chinese character data having machine code format 2 bytes, the most significant bit of each byte is 1; English characters a machine code data having a format byte, the most significant bit is square. 在显示中英文文字时,以字节为单位依次读取待显示的字符数据,如果当前读取的1字节字符数据的值小于128,则将当前数据作为1个英文字符数据;否则, 将当前的1字节字符数据以及后续读入的1字节字符数据共同构成1个中文文字的字符数据。 When displaying the English text, in bytes sequentially read character data to be displayed, 1-byte character data if the current reading is less than 128, then the current data as an English character data; otherwise, the current byte character data and a 1-byte character data subsequent read character data constitute a Chinese character.

[0142] 获取单元306,用于通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和所述字符数据读取单元305读取的字符数据获取当前使用的字库和字符的点阵数据。 [0142] acquiring unit 306 for acquiring the font information currently used by the current font information index table, and acquires the current font using the character font information 305 read by said data reading unit and the character data and character dot matrix data.

[0143] 在本发明实施例中,如果读取的字符数据属于英文字符,根据当前字库信息索引表中的当前采用的英文字体的字库信息表地址,找到当前采用的英文字体的字库信息表, 取得字库信息,再根据当前采用的英文字体的字库信息中的字库地址,查找对应的点阵字库。 [0143] In an embodiment of the present invention, if the character data read English characters belong, according to the English character font address information table of the current of the current font information index table employed to find the currently used English character font information table, acquire font information, font information and then based on the current use of English font in the font address, find the corresponding dot matrix font. 如果读取的字符数据属于中文字符,根据当前字库信息索引表中的当前采用的中文字体的字库信息表地址,找到当前采用的中文字体的字库信息表,取得字库信息,再根据当前采用的中文字体的字库信息中的字库地址,查找对应的点阵字库。 If the character data read belongs to Chinese characters, according to the Chinese character font information table using the current address of the current font information in the index table, find the Chinese character font information table currently used to obtain font information, and then used according to the current Chinese address character font information in a font, look for the corresponding dot matrix font.

[0144] 查找点阵字库时,将字符数据的机内码值与点阵字库中所有字符的机内码以二分法逐一比较,如果字符数据的机内码值与点阵字库中第η个字符的机内码一致,则英文字符点阵数据的地址可计算为:字库地址+ηΧ字模字节数+1,中文字符点阵数据的地址可计算为:字库地址+ηΧ字模字节数+2,其中字库地址和字模字节数由字库信息提供。 [0144] When a dot font look, the machine code to the machine code values ​​of dot matrix font data of the character of all characters in each comparison dichotomy, if the machine code values ​​of dot matrix font data of character η th consistent machine code characters, English characters of the address data dot may be calculated as: + ηΧ character font address bytes + 1, the address data dot Chinese character may be calculated as: the number of character font address bytes + + ηΧ 2, wherein the number of fonts and font byte address information provided by the font. 如果字符数据的机内码值与点阵字库中所有字符的机内码均不一致,表明字库中没有对应的字符,可将所查找字符的点阵数据的地址定为NULL.根据所述字符点阵数据的地址,找到字符点阵数据。 If the machine code to the machine code values ​​of the dot font character data are inconsistent with all the characters, indicates that no font corresponding to the character, the address lookup data matrix characters may be set to NULL. The point of the character address array data, find the character dot-matrix data.

[0145] 显示单元307,用于根据所述获取单元306获取的点阵数据和字库信息提供的点阵字模的宽度、高度显示字符。 [0145] the display unit 307, for the width of the dot matrix provided in accordance with the dot data and font information acquired by acquiring unit 306, the height of the character.

[0146] 本发明实施例,预设当前字库信息索引表,将当前使用的中文字体和英文字体的字库信息表地址存放到所述当前字库信息索引表,读取待显示的机内码格式的字符数据, 通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和读取的字符数据获取当前使用的字库和字符的点阵数据,根据所述字符的点阵数据和字库信息提供的点阵字模的宽度、高度显示字符,使得字库建立、字体选择以及显示简单方便,且便于字符的增减等维护操作。 [0146] machine code format embodiment of the present invention, the preset current font information index table, storing the fonts currently used in Chinese and English character font address information table to the current font information index table, to be read displayed character data, character information index table information acquired by the current font currently in use, and acquires font data and dot-matrix characters according to the character currently in use and the data of the font information is read, according to the dot data of the character and the width of the dot matrix font information, the display height of the character, so that the establishment of character, font selection and a display is simple and convenient, and easy maintenance operations such as changes in the character.

[0147] 本领域普通技术人员可以理解为上述实施例二所包括的各个单元只是按照功能逻辑进行划分的,但并不局限于上述的划分,只要能够实现相应的功能即可;另外,各功能单元的具体名称也只是为了便于相互区分,并不用于限制本发明的保护范围。 [0147] Those of ordinary skill in the art can be appreciated only for divided respective units including the above-described two embodiments in accordance with the logic function, but are not limited to the division, as long as the corresponding functions can be achieved; In addition, functional cell specific names for convenience only distinguished from each other, are not intended to limit the scope of the present invention.

[0148] 本领域普通技术人员还可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以在存储于一计算机可读取存储介质中,所述的存储介质,包括ROM/RAM、磁盘、光盘等。 [0148] Those of ordinary skill in the art can also be appreciated, to achieve the above embodiment, all or part of the method steps may be relevant hardware instructed by a program, the program may be stored in a computer readable storage medium. , said storage medium comprising a ROM / RAM, magnetic disk, optical disk.

[0149] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。 [0149] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, any modifications within the spirit and principle of the present invention, equivalent substitutions and improvements should be included in the present within the scope of the invention.

Claims (8)

  1. 1. 一种嵌入式系统多字体文字的显示方法,其特征在于,所述方法包括w下步骤: 预设当前字库信息索引表; 将当前使用的中文字体和英文字体的字库信息表地址存放到所述当前字库信息索引表; 读取待显示的机内码格式的字符数据; 通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和所述字符数据获取当前使用的字库和字符的点阵数据; 根据所述点阵数据和字库信息提供的点阵字模的宽度、高度显示字符。 1. A display method of multi-font text embedded system, wherein the method comprises the steps of w: this preset character-information index table; a storing fonts currently used in Chinese and English font to font information table address the current font information index table; read character data to be displayed in machine code format; acquires font information currently used by the current font information index table, and acquires the current use based on the font information and the character data font data and dot characters; the width of the dot matrix font data and dot font information, the display height of the character.
  2. 2. 如权利要求1所述的方法,其特征在于,在所述预设当前字库信息索引表的步骤之前,所述方法还包括W下步骤: 确定需要使用的字体种类W及每种字体中无重复的文字。 2. The method according to claim 1, characterized in that, prior to the current font information index table preset step, said method further comprising the steps of W: W, and determining the type of font of each font requires the use of no repeat of the text.
  3. 3. 如权利要求2所述的方法,其特征在于,在所述确定需要使用的字体种类W及每种字体中无重复的文字的步骤之后,所述方法还包括W下步骤: 为所述每种字体建立点阵字库,并为所述点阵字库建立字库信息表。 3. The method according to claim 2, characterized in that, after determining the required font type W, and each font is no text in the step of repeating, the method further comprises the steps of W: is the each font establishment dot matrix font, the font information table and the establishment of the dot matrix font.
  4. 4. 如权利要求3所述的方法,其特征在于,所述点阵字库的信息包括:字库类型、文字数、字模宽度、字模高度、字模字节数、对应的点阵字库地址。 4. The method according to claim 3, characterized in that the dot font information includes: font type, number of characters, font width, font height, font number of bytes, the address corresponding to a dot font.
  5. 5. -种嵌入式系统多字体文字的显示系统,其特征在于,所述系统包括: 预设单元,用于预设当前字库信息索引表; 存放单元,用于将当前使用的中文字体和英文字体的字库信息表地址存放到所述预设单元预设的当前字库信息索引表; 字符数据读取单元,用于读取待显示的机内码格式的字符数据; 获取单元,用于通过所述当前字库信息索引表获取当前使用的字库信息,并根据所述字库信息和所述字符数据读取单元读取的字符数据获取当前使用的字库和字符的点阵数据; 显示单元,用于根据所述获取单元获取的点阵数据和字库信息提供的点阵字模的宽度、局度显不字符。 5. - The display system kinds of multi-font text embedded system, wherein the system comprises: preset means for presetting the current font information index table; a storing unit, for Chinese and English fonts currently used character font address information table stored in the preset unit the current preset font information index table; character data reading unit, machine code character data format for reading to be displayed; obtaining unit, configured by the said information index table for the current font information of font currently in use, and the reading unit reads the character data acquiring font data and dot matrix character font currently in use according to the character information and the data; a display unit, according to the width of the acquisition unit acquires the dot matrix font data and dot font information provided, Bureau of characters is not significant.
  6. 6. 如权利要求5所述的系统,其特征在于,在所述预设单元预设之前,所述系统还包括: 确定单元,用于确定需要使用的字体种类W及每种字体中无重复的文字。 6. The system of claim 5, wherein, prior to said predetermined preset means, said system further comprising: a determining unit, for determining a required font type and each W is repeated no font Text.
  7. 7. 如权利要求6所述的系统,其特征在于,在所述确定单元确定之后,所述系统还包括: 建立单元,用于为所述确定单元确定的字体建立点阵字库,并为所述点阵字库建立字库信息表。 7. The system according to claim 6, wherein, after the determining unit determines, said system further comprising: establishing means for said determination unit determines the font dot matrix font established, and to the said dot font character information table established.
  8. 8. 如权利要求7所述的系统,其特征在于,所述点阵字库的信息包括:字库类型、文字数、字模宽度、字模高度、字模字节数、对应的点阵字库地址。 8. The system according to claim 7, characterized in that the dot font information includes: font type, number of characters, font width, font height, font number of bytes, the address corresponding to a dot font.
CN 201510005789 2015-01-06 2015-01-06 Display method and display system for multifont characters of embedded system CN104598560A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201510005789 CN104598560A (en) 2015-01-06 2015-01-06 Display method and display system for multifont characters of embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201510005789 CN104598560A (en) 2015-01-06 2015-01-06 Display method and display system for multifont characters of embedded system

Publications (1)

Publication Number Publication Date
CN104598560A true true CN104598560A (en) 2015-05-06

Family

ID=53124345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201510005789 CN104598560A (en) 2015-01-06 2015-01-06 Display method and display system for multifont characters of embedded system

Country Status (1)

Country Link
CN (1) CN104598560A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6771267B1 (en) * 2000-03-22 2004-08-03 Adobe Systems Incorporated Merging digital fonts
CN101178729A (en) * 2007-12-12 2008-05-14 北京中星微电子有限公司 Words display process in embedded system and system thereof
CN101393529A (en) * 2008-11-07 2009-03-25 用友软件股份有限公司 Method for implementing multi language support for computer software
US20100283768A1 (en) * 2009-05-08 2010-11-11 Himax Technologies Limited Output Buffer Adapted to a Source Driver and Source Driver
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
CN102662926A (en) * 2012-03-29 2012-09-12 常州华文文字技术有限公司 Storage and access methods for word stock
CN102750337A (en) * 2012-06-01 2012-10-24 中国科学院声学研究所 Producing method and device for font

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6771267B1 (en) * 2000-03-22 2004-08-03 Adobe Systems Incorporated Merging digital fonts
CN101178729A (en) * 2007-12-12 2008-05-14 北京中星微电子有限公司 Words display process in embedded system and system thereof
CN101393529A (en) * 2008-11-07 2009-03-25 用友软件股份有限公司 Method for implementing multi language support for computer software
US20100283768A1 (en) * 2009-05-08 2010-11-11 Himax Technologies Limited Output Buffer Adapted to a Source Driver and Source Driver
CN102141916A (en) * 2011-01-19 2011-08-03 深圳创维数字技术股份有限公司 Embedded equipment and method for displaying language word on OSD interface
CN102662926A (en) * 2012-03-29 2012-09-12 常州华文文字技术有限公司 Storage and access methods for word stock
CN102750337A (en) * 2012-06-01 2012-10-24 中国科学院声学研究所 Producing method and device for font

Similar Documents

Publication Publication Date Title
Ellson et al. Graphviz and dynagraph—static and dynamic graph drawing tools
US3930237A (en) Method for automating the production of engineering documentation utilizing an integrated digital data base representation of the documentation
US20060265649A1 (en) Method and apparatus for layout of text and image documents
US7903125B1 (en) Compact clustered 2-D layout
CN101308488A (en) Document stream type information processing method based on format document and device therefor
US20090109227A1 (en) System and method for independent font substitution of string characters
CN101872340A (en) Typesetting method and device based on format layout template
US20130238865A1 (en) Decompression apparatus and decompression method
US20050228811A1 (en) Method of and system for compressing and decompressing hierarchical data structures
US20020174141A1 (en) Method and system for automated data manipulation in an electronic spreadsheet program or the like
CN103413160A (en) Method, device and system for encoding and decoding
CN101271463A (en) Representation method and system of layout file logical structure information
Fredslund PHY· FI: fast and easy online creation and manipulation of phylogeny color figures
Shieber Unifying synchronous tree-adjoining grammars and tree transducers via bimorphisms.
US20130191732A1 (en) Fixed Format Document Conversion Engine
US20110164813A1 (en) Apparatus and method for digitizing documents
US20110107202A1 (en) Automatically Detecting Layout of Bidirectional (BIDI) Text
Cervone MathJax: a platform for mathematics on the Web
CN102509511A (en) Rapid map making system based on GIS (Geographic Information System) data
JP2005043990A (en) Document processor and document processing method
US20130205200A1 (en) Formula Detection Engine
US20090083315A1 (en) Information processing apparatus and encoding method
US20150106700A1 (en) Display and selection of bidirectional text
CN101364216A (en) Method and device for displaying electronic book documentary on mobile terminal
CN102289407A (en) File format conversion method and apparatus for automatic testing

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination