CN105513108A - Word stock drawing method based on texture mapping - Google Patents

Word stock drawing method based on texture mapping Download PDF

Info

Publication number
CN105513108A
CN105513108A CN201510929747.XA CN201510929747A CN105513108A CN 105513108 A CN105513108 A CN 105513108A CN 201510929747 A CN201510929747 A CN 201510929747A CN 105513108 A CN105513108 A CN 105513108A
Authority
CN
China
Prior art keywords
character
texture
generation unit
configuration
input end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510929747.XA
Other languages
Chinese (zh)
Inventor
马城城
田泽
刘晖
黎小玉
张琛
聂瞾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautics Computing Technique Research Institute of AVIC
Original Assignee
Xian Aeronautics Computing Technique Research Institute of AVIC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Aeronautics Computing Technique Research Institute of AVIC filed Critical Xian Aeronautics Computing Technique Research Institute of AVIC
Priority to CN201510929747.XA priority Critical patent/CN105513108A/en
Publication of CN105513108A publication Critical patent/CN105513108A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/001Texturing; Colouring; Generation of texture or colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Image Generation (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a word stock drawing method based on texture mapping, and solves the problems in the prior art that resource occupation is high, drawing efficiency is low and special character display is difficult to realize in character drawing. The word stock drawing method based on texture mapping comprises the steps that 1) information is inputted; 2) index information and word stock texture data are generated; 3) word stock texture data loading is performed; and 4) characters are displayed. The system comprises a character configuration data acquisition unit, a character font data acquisition unit, an index generation unit, a word stock texture data generation unit, an index operation management and texture coordinate generation unit, a texture configuration unit, a texture mapping drawing character functional unit and an input unit. Texture data are assembled for specific character sets, and character display is performed in a texture mapping mode so that character drawing efficiency is greatly enhanced, and abundant display effects, such as functions of any angles and any directions of rotation and stepless zooming, can be realized by changes realized by graphic drawing control information.

Description

A kind of character library method for drafting based on texture mapping
Technical field
The invention belongs to Computer Applied Technology field, particularly relate to a kind of character library method for drafting based on texture mapping.
Background technology
Character library process and character drafting belong to GUI design field and cannot avoid and the link of widespread use.Along with the universal of embedded technology and development, the visual effect of user to embedded type GUI has had higher requirement.Under the prerequisite that embedded system hardware resource is extremely limited, how to reduce resource occupation, improve drafting speed, strengthen display effect, become the key problem of character library process and character drafting.
Character library process the most frequently used at present and character method for drafting are, namely often draw a character uses character library analytical tool directly or indirectly to obtain the font data of this character from standard character library, by lining by line scan and being plotted to screen appointed area, or bitmap is used to draw function.The method takies system hardware resources in a large number, has a strong impact on character drafting efficiency, and is difficult to realize the special character display effects such as vertical letters.
Summary of the invention
The invention provides a kind of character library method for drafting based on texture mapping, carry out to solve current techniques the problem that when character is drawn, resource occupation is large, drafting efficiency is low, special efficacy Charactes Display is difficult to realization.
Technical solution of the present invention is as follows:
Should comprise the following steps based on the character library method for drafting of texture mapping:
1] information is inputted
Obtain character configuration data and character font data respectively according to character data source, obtain the configuration of texture character library simultaneously;
2] generating indexes information and character library data texturing
According to character configuration data, character font data, texture character library configuration generating indexes information and character library data texturing;
3] character library data texturing loads
Input and wait to draw character, according to waiting whether the character library data texturing drawing the generation of character check step 2 has been loaded on texture configuration, if load, then enters step 4 and processes, if do not load, then enter step 4 after completing loading and process;
4] character is shown
What step 3 inputted wait draws the index information calculating texture coordinate that character generates according to step 2, according to texture coordinate and texture configuration extraction character, then by Charactes Display on desired location.
In above-mentioned steps 4, by Charactes Display before desired location, drafting configuration is carried out to character; The described drafting configuration information such as color, foreground, background colour, the anglec of rotation comprised character is configured.
Character library drawing system based on texture mapping comprises character configuration data acquiring unit, character font data acquiring unit, index generation unit, character library data texturing generation unit, index operational management and texture coordinate generation unit, texture dispensing unit, texture mapping drafting character functional unit and input block; The input end of described character configuration data acquiring unit is connected with input block, and output terminal is connected with the input end of index generation unit; The input end of described character font data acquiring unit is connected with input block, and output terminal is connected with the input end of index generation unit and the input end of character library data texturing generation unit respectively; The output terminal of described index generation unit is connected with the input end of index operational management and texture coordinate generation unit respectively; The output terminal of described character library data texturing generation unit is connected with the input end of texture dispensing unit; The input end that the output terminal of described index operational management and texture coordinate generation unit draws character functional unit with the input end of texture dispensing unit and texture mapping is respectively connected; The input end that output terminal and the texture mapping of described texture dispensing unit draw character functional unit is connected; The input end that the input end of the input end of described character library data texturing generation unit, index operational management and texture coordinate generation unit and texture mapping draw character functional unit is also connected with input block respectively.
The information of above-mentioned input block input comprises character data source, character set to be output, the configuration of texture character library and character and draws configuration.
The invention has the advantages that:
Should based on the character library method for drafting of texture mapping by assembling data texturing to designated character collection, Charactes Display is carried out in the mode of texture mapping, substantially increase character and draw efficiency, and the change realized by graphic plotting control information can be utilized to realize enriching display effect, as arbitrarily angled, any direction rotate, the functions such as electrodeless convergent-divergent.
Accompanying drawing explanation
Fig. 1 is the character library method for drafting schematic diagram that the present invention is based on texture mapping;
Accompanying drawing is detailed as follows:
The raw unit one-tenth of M1-character configuration data acquiring unit, M2-character font data acquiring unit, M3-index, M4-character library data texturing generation unit, the operational management of M5-index and texture coordinate generation unit, M6-texture dispensing unit, M7-texture mapping drafting character functional unit, configuration is drawn in the texture character library configuration of the character data source of I1-input block, the character set to be output of I2-input block, I3-input block, the character of I4-input block.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with embodiment, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Below in conjunction with accompanying drawing, the invention will be further described:
Should comprise the following steps based on the character library method for drafting of texture mapping:
1] information is inputted
Obtain character configuration data and character font data respectively according to character data source, obtain the configuration of texture character library simultaneously;
2] generating indexes information and character library data texturing
According to character configuration data, character font data, texture character library configuration generating indexes information and character library data texturing;
3] character library data texturing loads
Input and wait to draw character, according to waiting whether the character library data texturing drawing the generation of character check step 2 has been loaded on texture configuration, if load, then enters step 4 and processes, if do not load, then enter step 4 after completing loading and process;
4] character is shown
What step 3 inputted wait draws the index information calculating texture coordinate that character generates according to step 2, according to texture coordinate and texture configuration extraction character, then by Charactes Display on desired location.
In above-mentioned steps 4, by Charactes Display before desired location, drafting configuration is carried out to character; The described drafting configuration information such as color, foreground, background colour, the anglec of rotation comprised character is configured.
Character library drawing system based on texture mapping comprises character configuration data acquiring unit, character font data acquiring unit, index generation unit, character library data texturing generation unit, index operational management and texture coordinate generation unit, texture dispensing unit, texture mapping drafting character functional unit and input block;
The annexation of said units is as follows:
The input end of character configuration data acquiring unit is connected with input block, and output terminal is connected with the input end of index generation unit; The input end of described character font data acquiring unit is connected with input block, and output terminal is connected with the input end of index generation unit and the input end of character library data texturing generation unit respectively; The output terminal of described index generation unit is connected with the input end of index operational management and texture coordinate generation unit respectively; The output terminal of described character library data texturing generation unit is connected with the input end of texture dispensing unit; The input end that the output terminal of described index operational management and texture coordinate generation unit draws character functional unit with the input end of texture dispensing unit and texture mapping is respectively connected; The input end that output terminal and the texture mapping of described texture dispensing unit draw character functional unit is connected; The input end that the input end of the input end of described character library data texturing generation unit, index operational management and texture coordinate generation unit and texture mapping draw character functional unit is also connected with input block respectively.
Wherein the information of input block input comprises character data source, character set to be output, the configuration of texture character library and character drafting configuration.
Specifically, character configuration data acquiring unit, in order to process the character data source input of input block, is resolved and records character configuration data.
Character font data acquiring unit, in order to process the input in the character data source of input block, is resolved and store character font data.
The data that generating indexes unit reception character configuration data acquiring unit and character font data acquiring unit provide, generate character list index information.
Character library data texturing generation unit receives the texture character library of input block and configure the font data that the configuration information that provides and character font data acquiring unit provide, and is aided with the data that index generation unit provides, generation data texturing.
The texture character library that index operational management and texture coordinate generation unit receive input block configures the character set to be output provided, and determines the index of each character successively in index generation unit, generates the information such as texture coordinate, and passes to texture dispensing unit.
The character library data texturing that information, the character library data texturing generation unit such as index, texture coordinate that the reception hint operational management of texture dispensing unit and texture coordinate generate to be provided provide, the service data of texture and running status are configured, and generate and be supplied to texture mapping for the texture information of drawing and draw character functional unit.
Texture mapping draws character functional unit, the texture configuration provided according to texture dispensing unit and for draw texture information, input block character draw and the configuration information provided is provided uses texture mapping function to draw character.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although explain invention has been with reference to previous embodiment, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (4)

1., based on a character library method for drafting for texture mapping, it is characterized in that, comprise the following steps:
1] information is inputted
Obtain character configuration data and character font data respectively according to character data source, obtain the configuration of texture character library simultaneously;
2] generating indexes information and character library data texturing
According to character configuration data, character font data, texture character library configuration generating indexes information and character library data texturing;
3] character library data texturing loads
Input and wait to draw character, according to waiting whether the character library data texturing drawing the generation of character check step 2 has been loaded on texture configuration, if load, then enters step 4 and processes, if do not load, then enter step 4 after completing loading and process;
4] character is shown
What step 3 inputted wait draws the index information calculating texture coordinate that character generates according to step 2, according to texture coordinate and texture configuration extraction character, then by Charactes Display on desired location.
2. the character library method for drafting based on texture mapping according to claim 1, is characterized in that: in described step 4, by Charactes Display before desired location, carries out drafting configuration to character; The described drafting configuration information such as color, foreground, background colour, the anglec of rotation comprised character is configured.
3. the character library drawing system based on texture mapping, it is characterized in that, comprise character configuration data acquiring unit, character font data acquiring unit, index generation unit, character library data texturing generation unit, index operational management and texture coordinate generation unit, texture dispensing unit, texture mapping drafting character functional unit and input block; The input end of described character configuration data acquiring unit is connected with input block, and output terminal is connected with the input end of index generation unit; The input end of described character font data acquiring unit is connected with input block, and output terminal is connected with the input end of index generation unit and the input end of character library data texturing generation unit respectively; The output terminal of described index generation unit is connected with the input end of index operational management and texture coordinate generation unit respectively; The output terminal of described character library data texturing generation unit is connected with the input end of texture dispensing unit; The input end that the output terminal of described index operational management and texture coordinate generation unit draws character functional unit with the input end of texture dispensing unit and texture mapping is respectively connected; The input end that output terminal and the texture mapping of described texture dispensing unit draw character functional unit is connected; The input end that the input end of the input end of described character library data texturing generation unit, index operational management and texture coordinate generation unit and texture mapping draw character functional unit is also connected with input block respectively.
4. the character library drawing system based on texture mapping according to claim 3, is characterized in that: the information of described input block input comprises character data source, character set to be output, the configuration of texture character library and character and draws configuration.
CN201510929747.XA 2015-12-11 2015-12-11 Word stock drawing method based on texture mapping Pending CN105513108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510929747.XA CN105513108A (en) 2015-12-11 2015-12-11 Word stock drawing method based on texture mapping

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510929747.XA CN105513108A (en) 2015-12-11 2015-12-11 Word stock drawing method based on texture mapping

Publications (1)

Publication Number Publication Date
CN105513108A true CN105513108A (en) 2016-04-20

Family

ID=55721064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510929747.XA Pending CN105513108A (en) 2015-12-11 2015-12-11 Word stock drawing method based on texture mapping

Country Status (1)

Country Link
CN (1) CN105513108A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977343A (en) * 2019-03-28 2019-07-05 武汉轻工大学 Ellipsoid equation method for drafting, device, equipment and storage medium
CN115272535A (en) * 2022-08-19 2022-11-01 杭州新迪数字工程***有限公司 Method and system for drawing font consistency of DWG drawing under Web

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630311A (en) * 2008-07-18 2010-01-20 常州华文印刷新技术有限公司 Method and device for displaying characters
CN103678261A (en) * 2013-12-26 2014-03-26 深圳市开立科技有限公司 Method, device and equipment for rapidly displaying TTFs
US8760451B2 (en) * 2011-06-30 2014-06-24 Google Inc. Rendering a text image using texture map character center encoding with character reference encoding
CN104298504A (en) * 2014-09-22 2015-01-21 无锡梵天信息技术股份有限公司 Method for achieving font rendering based on FreeType font engine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101630311A (en) * 2008-07-18 2010-01-20 常州华文印刷新技术有限公司 Method and device for displaying characters
CN101630311B (en) * 2008-07-18 2011-05-04 常州华文印刷新技术有限公司 Method and device for displaying characters
US8760451B2 (en) * 2011-06-30 2014-06-24 Google Inc. Rendering a text image using texture map character center encoding with character reference encoding
CN103678261A (en) * 2013-12-26 2014-03-26 深圳市开立科技有限公司 Method, device and equipment for rapidly displaying TTFs
CN104298504A (en) * 2014-09-22 2015-01-21 无锡梵天信息技术股份有限公司 Method for achieving font rendering based on FreeType font engine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
COWBOYLYM: "如何在Ogre中显示汉字", 《GOOGLE》 *
TOYBOX: "FreeType文字绘制笔记", 《GOOGLE》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109977343A (en) * 2019-03-28 2019-07-05 武汉轻工大学 Ellipsoid equation method for drafting, device, equipment and storage medium
CN109977343B (en) * 2019-03-28 2023-03-31 武汉轻工大学 Ellipsoid equation drawing method, device, equipment and storage medium
CN115272535A (en) * 2022-08-19 2022-11-01 杭州新迪数字工程***有限公司 Method and system for drawing font consistency of DWG drawing under Web

Similar Documents

Publication Publication Date Title
EP2525294A1 (en) Method and device for rendering user interface font
US9292903B2 (en) Overlap aware reordering of rendering operations for efficiency
CN107943363B (en) Background image configuration method and device, interactive intelligent panel and storage medium
CN110852449B (en) Model migration method and electronic equipment
US20140082471A1 (en) Displaying a Syntactic Entity
US8159495B2 (en) Remoting sub-pixel resolved characters
CN103309665A (en) Method for realizing embedded type GUI (Graphical User Interface) based on configuration
CN114218890A (en) Page rendering method and device, electronic equipment and storage medium
CN105513108A (en) Word stock drawing method based on texture mapping
US8854385B1 (en) Merging rendering operations for graphics processing unit (GPU) performance
CN114860233A (en) Page generation method, device, equipment, storage medium and product
US20210312240A1 (en) Header Model For Instance Segmentation, Instance Segmentation Model, Image Segmentation Method and Apparatus
US20240005446A1 (en) Methods, systems, and non-transitory storage media for graphics memory allocation
CN113344074A (en) Model training method, device, equipment and storage medium
CN112309313B (en) Module controller configuration method, device and system and computer readable storage medium
CN112614210A (en) Engineering drawing display method, system and related device
CN101556680A (en) Method for reusing transaction information in character front end and character front-end system
CN105549932A (en) Graphic processor host driver software structure
CN113038184B (en) Data processing method, device, equipment and storage medium
CN112540958B (en) File processing method, device, equipment and computer storage medium
CN108287809A (en) A kind of vector fonts display optimization method based on vxWorks systems
CN101847050A (en) Simple Chinese input and display method in embedded product
CN110059215B (en) Arrangement system suitable for rapid naming and filing of defect photos of power transmission line
CN113608809A (en) Component layout method, device, equipment, storage medium and program product
CN109189789B (en) Method and device for displaying table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160420