CN113806278A - Word stock chip processing method capable of arbitrarily changing vector word stock and word stock chip - Google Patents
Word stock chip processing method capable of arbitrarily changing vector word stock and word stock chip Download PDFInfo
- Publication number
- CN113806278A CN113806278A CN202111068590.8A CN202111068590A CN113806278A CN 113806278 A CN113806278 A CN 113806278A CN 202111068590 A CN202111068590 A CN 202111068590A CN 113806278 A CN113806278 A CN 113806278A
- Authority
- CN
- China
- Prior art keywords
- word stock
- font
- chip
- vector
- file
- 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
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 15
- 238000000034 method Methods 0.000 claims abstract description 22
- 239000011159 matrix material Substances 0.000 claims description 6
- 230000008569 process Effects 0.000 claims description 6
- 230000002093 peripheral effect Effects 0.000 claims description 3
- 230000008719 thickening Effects 0.000 claims description 3
- 230000002087 whitening effect Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention provides a word stock chip processing method capable of randomly changing a vector word stock, which is characterized by comprising the following steps: the method comprises the following steps that a microprocessor MCU obtains a vector word stock, and the vector word stock is burnt in a FLASH chip connected with the microprocessor MCU; and calling a font library in a font library file stored in the FLASH chip according to a font operation instruction sent by a user, carrying out corresponding processing on the font in the font library, and returning the processed font to the user for use. The invention can zoom the font arbitrarily, and is more suitable for high-resolution display and high-precision printing equipment; the vector font file can be changed at will, and the vector font is customized.
Description
Technical Field
The present disclosure relates to the field of printer technologies, and in particular, to a method for processing a font library chip capable of arbitrarily changing a vector font library and a font library chip.
Background
At present, the word stock chips mainly use dot matrix word stock chips, the dot matrix word stock can cause serious distortion and deformation and unsmooth display after being thickened, inclined and zoomed, and is not suitable for high-resolution display equipment and printing equipment.
Disclosure of Invention
Based on the defects of the prior art, the invention provides a word stock chip processing method capable of randomly changing a vector word stock and a word stock chip manufactured by the method, which are used for solving the problems that the vector word stock chip in the current market has small scalable range and fixed and unchangeable word stock files.
A word stock chip processing method capable of arbitrarily changing a vector word stock is characterized by comprising the following steps:
the method comprises the following steps that a microprocessor MCU obtains a vector word stock, and the vector word stock is burnt in a FLASH chip connected with the microprocessor MCU;
and calling a font library in a font library file stored in the FLASH chip according to a font operation instruction sent by a user, carrying out corresponding processing on the font in the font library, and returning the processed font to the user for use.
Further, before the character library stored in the FLASH chip is called, the character library file stored in the FLASH chip is searched, and whether the burnt character library file exists is determined.
Further, before searching the word library file stored in the FLASH chip, the microprocessor MCU needs to mount the FALSH chip storing the vector word library file in the file system through the FATFS file system.
Further, the word stock file comprises a standard file with a TTF format suffix or a user-defined TTF format word stock file, or a TTF vector word stock file directly extracted by Windows.
Further, the method for calling the word stock in the word stock file stored in the FLASH chip according to the font operation instruction sent by the user comprises the following steps:
and the user sends a font operation instruction through the SPI interface or the serial port of the microprocessor MCU.
Further, the corresponding processing method includes performing one or more of scaling, thickening, whitening, tilting, hooking and gray level on the font, and converting the processed font into dot matrix data.
Further, the method of the corresponding processing includes using a FREETYPE processing algorithm.
And further, the fonts in the font library are correspondingly processed, and the processed fonts are returned to the user for use through the SPI interface or the serial port of the microprocessor MCU.
On the other hand, this application still provides a font chip that can change the vector font wantonly, its characterized in that: the system comprises a microprocessing MCU and a FLASH chip integrated with the microprocessing MCU, wherein the FLASH chip stores a vector word stock file, and the microprocessing MCU calls a word stock stored in the FLASH chip according to a word stock operation instruction sent by a user, correspondingly processes the word stock, and returns the processed word stock to the user for use.
The word stock chip also comprises an SPI (serial peripheral interface) or a serial port connected with the microprocessor MCU, and a user sends a word operation instruction through the SPI or the serial port of the microprocessor MCU.
Has the advantages that:
the method can zoom fonts at will, and is more suitable for high-resolution display and high-precision printing equipment;
the vector font file can be changed arbitrarily, and the vector font is customized;
can produce various high-quality Chinese character outputs, and the font is smooth and undistorted;
the word stock chip integrates the MCU and the FLASH chip together or processes the combination process into an integrated whole, reserves an external USB interface, an SPI or a serial interface for word stock file replacement and operation instruction and data transmission, can be used as an expansion module through various output interfaces such as the SPI, the serial interface and the like, can save a large amount of resources of the MCU of the main microprocessor, and is suitable for high-resolution display or printing equipment.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method provided in an embodiment of the present invention.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
In one aspect, an embodiment of the present disclosure provides a word stock chip processing method capable of arbitrarily changing a vector word stock, including:
step 1, a microprocessor MCU acquires a vector word stock, and burns the vector word stock into a FLASH chip connected with the microprocessor MCU;
in specific implementation, the memory of this embodiment may adopt a FLASH chip connected to a microprocessor MCU, and the microprocessor MCU acquires the vector word library, and first connects to a computer through a USB interface of the microprocessor MCU, and by operating the computer, the externally-attached FLASH chip is simulated into a USB disk through the microprocessor MCU, and the required vector word library is stored in the simulated USB disk.
The word stock file can be a standard file with a TTF format suffix or a user-defined TTF format word stock file, and can also be a TTF vector word stock file directly extracted by Windows.
Before operating the word library in the word library file, the word library file can be searched, the word library file stored in the FLASH chip is searched, the purpose of searching is to confirm whether the word library file exists, and in addition, the microprocessor MCU generally mounts the FALSH chip storing the vector word library file in a file system through a FATFS file system.
Step 2, calling a font library in a font library file stored in the FLASH chip according to a font operation instruction sent by a user, carrying out corresponding processing on the font in the font library, and returning the processed font to the user for use;
when the method is specifically implemented, a user sends a font operation instruction through the SPI interface or the serial port of the MCU, the MCU calls a FREETYPE processing algorithm after receiving the operation instruction, the font is correspondingly zoomed, thickened, reversed white, inclined, hooked, gray and the like, the processed font is converted into dot matrix data, and the dot matrix data is returned to the user for use through the SPI interface or the serial port of the MCU.
And finally, integrating the MCU and the FLASH chip together or processing the MCU and the FLASH chip into an integrated whole by a bonding process, and reserving an external USB interface, an external SPI or a serial interface for carrying out character library file replacement and transmission of operation instructions and data.
In this embodiment, the FATFS file system is implemented by using the microprocessor MCU, the FATFS file system reads the TTF vector word library file stored in the external FLASH chip, the microprocessor MCU performs processing such as scaling, thickening, whitening, tilting, hooking, and graying on the font through the FREETYPE vector word library processing algorithm according to the operation instruction transmitted by the SPI, generates corresponding lattice data after the processing, and outputs the lattice data through the SPI or the serial port.
The embodiment can carry out arbitrary scaling of fonts, and is more suitable for high-resolution display and high-precision printing equipment; the vector font file can be changed arbitrarily, and the vector font is customized; it can produce many high-quality Chinese character outputs, and the character font is smooth and undistorted.
And in the second aspect, the word stock chip capable of randomly changing the vector word stock comprises a microprocessing MCU and a FLASH chip integrated with the microprocessor MCU, wherein the FLASH chip stores a vector word stock file, and the microprocessor MCU calls the word stock stored in the FLASH chip according to a font operation instruction sent by a user, correspondingly processes the fonts in the word stock and returns the processed fonts to the user for use. The word stock chip also comprises an SPI (serial peripheral interface) or a serial port connected with the microprocessor MCU, and a user sends a font operation instruction through the SPI or the serial port of the microprocessor MCU.
The manufacturing method, structure and function of the word stock chip can refer to the description in the above method, and are not repeated herein.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. A word stock chip processing method capable of arbitrarily changing a vector word stock is characterized by comprising the following steps:
the method comprises the following steps that a microprocessor MCU obtains a vector word stock, and the vector word stock is burnt in a FLASH chip connected with the microprocessor MCU;
and calling a font library in a font library file stored in the FLASH chip according to a font operation instruction sent by a user, carrying out corresponding processing on the font in the font library, and returning the processed font to the user for use.
2. The method as claimed in claim 1, wherein the word stock files stored in the FLASH chip are searched before the word stock stored in the FLASH chip is called, and the existence of the burnt word stock files is determined.
3. The word stock chip processing method of claim 2, wherein the microprocessor MCU needs to mount the FALSH chip storing the vector word stock file in the file system through the FATFS file system before searching the word stock file stored in the FLASH chip.
4. A word stock chip processing method of arbitrarily changing a vector word stock according to any one of claims 1 to 3, wherein:
the word stock file comprises a standard file with a TTF format suffix or a user-defined TTF format word stock file, or a TTF vector word stock file directly extracted by Windows.
5. The word stock chip processing method of claim 1, wherein the method for calling the word stock in the word stock file stored in the FLASH chip according to the font operation command sent by the user comprises:
and the user sends a font operation instruction through the SPI interface or the serial port of the microprocessor MCU.
6. The method for processing the word stock chip capable of arbitrarily changing the vector word stock according to claim 1, wherein the corresponding processing method comprises performing one or more of scaling, thickening, whitening, tilting, hooking and gray-level processing on the font, and converting the processed font into dot matrix data.
7. The font library chip processing method capable of arbitrarily changing the vector font library according to claim 6, wherein the corresponding processing method comprises using a FREETYPE processing algorithm.
8. The word stock chip processing method of arbitrarily changeable vector word stock according to claim 1,
and correspondingly processing the fonts in the font library, and returning the processed fonts to the user for use through an SPI (serial peripheral interface) or a serial port of the microprocessor MCU.
9. A word stock chip capable of arbitrarily changing a vector word stock is characterized in that: the system comprises a microprocessing MCU and a FLASH chip integrated with the microprocessing MCU, wherein the FLASH chip stores a vector word stock file, and the microprocessing MCU calls a word stock stored in the FLASH chip according to a word stock operation instruction sent by a user, correspondingly processes the word stock, and returns the processed word stock to the user for use.
10. The word stock chip capable of arbitrarily changing a vector word stock according to claim 9, wherein: the system also comprises an SPI interface or a serial port connected with the microprocessor MCU, and a user sends a font operation instruction through the SPI interface or the serial port of the microprocessor MCU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111068590.8A CN113806278A (en) | 2021-09-13 | 2021-09-13 | Word stock chip processing method capable of arbitrarily changing vector word stock and word stock chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111068590.8A CN113806278A (en) | 2021-09-13 | 2021-09-13 | Word stock chip processing method capable of arbitrarily changing vector word stock and word stock chip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113806278A true CN113806278A (en) | 2021-12-17 |
Family
ID=78940961
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111068590.8A Pending CN113806278A (en) | 2021-09-13 | 2021-09-13 | Word stock chip processing method capable of arbitrarily changing vector word stock and word stock chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113806278A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426565A (en) * | 2011-11-03 | 2012-04-25 | 北京华大智宝电子系统有限公司 | SOC (System on Chip) chip with font processing function |
CN102521261A (en) * | 2011-11-18 | 2012-06-27 | 四川长虹电器股份有限公司 | Method for manufacturing dot matrix word stock according to vector word stock |
CN202486778U (en) * | 2011-11-03 | 2012-10-10 | 北京华大智宝电子系统有限公司 | SOC chip |
CN109062521A (en) * | 2018-07-20 | 2018-12-21 | 珠海智汇网络设备有限公司 | A kind of print data processing method and device, computer installation, storage medium |
CN109669650A (en) * | 2017-10-16 | 2019-04-23 | 宁波柯力传感科技股份有限公司 | The image display method of weighing dot matrix large screen |
CN109992221A (en) * | 2019-04-12 | 2019-07-09 | 深圳高通半导体有限公司 | A kind of implementation method of the processor chips for vector font library operation |
CN213459004U (en) * | 2020-11-19 | 2021-06-15 | 深圳高通半导体有限公司 | Serial port screen and intelligent terminal |
-
2021
- 2021-09-13 CN CN202111068590.8A patent/CN113806278A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102426565A (en) * | 2011-11-03 | 2012-04-25 | 北京华大智宝电子系统有限公司 | SOC (System on Chip) chip with font processing function |
CN202486778U (en) * | 2011-11-03 | 2012-10-10 | 北京华大智宝电子系统有限公司 | SOC chip |
CN102521261A (en) * | 2011-11-18 | 2012-06-27 | 四川长虹电器股份有限公司 | Method for manufacturing dot matrix word stock according to vector word stock |
CN109669650A (en) * | 2017-10-16 | 2019-04-23 | 宁波柯力传感科技股份有限公司 | The image display method of weighing dot matrix large screen |
CN109062521A (en) * | 2018-07-20 | 2018-12-21 | 珠海智汇网络设备有限公司 | A kind of print data processing method and device, computer installation, storage medium |
CN109992221A (en) * | 2019-04-12 | 2019-07-09 | 深圳高通半导体有限公司 | A kind of implementation method of the processor chips for vector font library operation |
CN213459004U (en) * | 2020-11-19 | 2021-06-15 | 深圳高通半导体有限公司 | Serial port screen and intelligent terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8643652B2 (en) | Dynamic augmentation of extensible font subsets | |
US20090154759A1 (en) | Method, user interface, apparatus and computer program product for providing a graphical code pattern | |
CN102239490A (en) | Method and apparatus for adjusting the length of text strings to fit display sizes | |
US7375766B2 (en) | Method of displaying image, device for displaying image and program | |
CN106056530A (en) | Method and device for displaying picture content in application | |
JP6122800B2 (en) | Electronic device, character string display method, and character string display program | |
JP2002507289A (en) | Glyph drawing method using layout service library | |
CN101008939A (en) | Implementation method of dot matrix word library of embedded system | |
EP1332467B1 (en) | Method and apparatus for composite font generation | |
JP2006236315A (en) | Method and apparatus for enabling foreign language text display when encoding is not available | |
JP3582675B2 (en) | Apparatus and method for storing image data in memory | |
US20070013700A1 (en) | Mobile communication terminal having function of animating input characters | |
CN109992221B (en) | Method for realizing processor chip for vector font operation | |
CN103151044A (en) | Language transformation method and system based on voice recognition | |
CN113806278A (en) | Word stock chip processing method capable of arbitrarily changing vector word stock and word stock chip | |
CN112672083A (en) | Character display method, device, equipment and storage medium | |
US20230024148A1 (en) | Data processing methods and systems, and electronic devices | |
CN111688605B (en) | Character batch graph cutting method applied to automobile instrument and related equipment | |
CN111611756B (en) | Circuit board character design method, design device and terminal equipment | |
KR100255574B1 (en) | Character generating apparatus | |
CN109388726A (en) | A kind of image display method, device, equipment and computer-readable medium | |
JP7130881B2 (en) | METHOD FOR GENERATING WORDCODE, METHOD AND APPARATUS FOR RECOGNIZING WORDCODE, COMPUTER PROGRAM | |
CN102467386A (en) | Method and device for adapting software interface to different resolutions | |
JP2000165634A (en) | Device and method for storing picture data in memory | |
US20020149587A1 (en) | Method of controlling the display of a character based on a dynamic code generation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |