CN101894543B - Vector font display method for E-book reader - Google Patents

Vector font display method for E-book reader Download PDF

Info

Publication number
CN101894543B
CN101894543B CN2010102018726A CN201010201872A CN101894543B CN 101894543 B CN101894543 B CN 101894543B CN 2010102018726 A CN2010102018726 A CN 2010102018726A CN 201010201872 A CN201010201872 A CN 201010201872A CN 101894543 B CN101894543 B CN 101894543B
Authority
CN
China
Prior art keywords
font
vector
vector fonts
fonts
book reader
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2010102018726A
Other languages
Chinese (zh)
Other versions
CN101894543A (en
Inventor
邬金平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Electronics Industry Co Ltd
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 Guangdong Oppo Electronics Industry Co Ltd filed Critical Guangdong Oppo Electronics Industry Co Ltd
Priority to CN2010102018726A priority Critical patent/CN101894543B/en
Publication of CN101894543A publication Critical patent/CN101894543A/en
Application granted granted Critical
Publication of CN101894543B publication Critical patent/CN101894543B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a vector font display method for an E-book reader, which comprises the following steps of: 1, reading character codes of vector font from a font file, transmitting the character codes to a picture drawing function and setting parameters; 2, converting the character codes into font indexes; 3, loading font images; 4, drawing a dual-gray level bitmap; and 5, displaying dual-gray level vector fonts on an E-ink screen. Compared with the traditional method for reading vector fonts of the E-book, the vector font display method has the advantages of avoiding a method for filling various gradually changed gray levels between the fonts and the background by anti-aliasing technology, displaying dual-gray level vector fonts only containing two grey levels, namely pure black and pure white on the E-ink screen, ensuring the display quality of the vector fonts in the E-book reader, and improving the vector font refreshing speed.

Description

A kind of vector fonts display packing that is used for electric book reader
Technical field
The present invention relates to a kind of font display packing, particularly relate to a kind of vector fonts display packing that is used for electric book reader.
Background technology:
The electricity book reader is a kind of new-type digital reading device that adopts the E-ink display screen of Electronic Paper, and the e-book that can read online most forms is such as PDF, CHM, TXT etc.Compare with traditional E-book reader, adopt the advantage of the electric book reader of electronic paper technology to be that radiation is little, power consumption is low, not hinder eyes, and its display effect is true to nature, seem the same with the effect of reading.
Each font in the vector fonts is described through mathematic curve, and it has comprised derivative information of font borderline key point, line etc.The render engine of font carries out the certain mathematical computing then and plays up through reading these mathematical vector.Vector fonts can infinitely amplify with respect to other normal fonts and not produce distortion, so the font on the electric book reader adopts this vector fonts.
Present most of electric book reader adopts reverse sawtooth anti-aliasing technology when refreshing electric ink E-ink screen display font; Reverse sawtooth anti-aliasing technology is to the technology of scalable font; Can let the vector fonts edge seem slick and sly and do not have sawtooth; It is drawn font earlier behind the scenes with the size of several times, and then shortens the size of wanting into, fails to take the grid of a lattice pixel and just fills up with GTG; GTG filling gradual change between vector fonts and the background makes the edge look smoother.
The step that most of electric book reader reads vector fonts is following: step 1, from font file, read the character code of vector fonts; Step 2, character code is changed into bitmap; Step 3, offer the drafting function to bitmap; Step 4, use reverse sawtooth anti-aliasing technology are at the various GTGs of filling gradual change between font and the background; Step 5, drawing function are signed in the bitmap that obtains on the screen.General 256 GTGs that adopt of vector fonts in the existing product, the font that shows at the E-ink screen has comprised a lot of GTGs, and the E-ink screen when refreshing font one by one GTG refresh, each vector fonts need refresh repeatedly and just can show.Because used reverse sawtooth anti-aliasing technology, make the long meeting of refresh time cause E-ink screen blank screen in refresh process, influence reading effect.
Summary of the invention:
The objective of the invention is to overcome the deficiency of prior art; A kind of vector fonts display packing that is used for electric book reader is provided; The use reverse sawtooth anti-aliasing technology of abandoning tradition is in the method for the various GTGs of filling gradual change between font and the background; On the E-ink screen, show the two GTG vector fonts that only comprise black and pure white two GTGs, in guaranteeing electric book reader, in the display quality of vector fonts, improve the refresh rate of vector fonts.
In order to achieve the above object, the technical scheme of the present invention's employing is:
A kind of vector fonts display packing that is used for electric book reader, step is following:
Step 1, from font file, read the character code of vector fonts, character code is sent to drawing function and is provided with produce parameter that two GTG vector fonts bitmaps use and the parameter of abandoning reverse sawtooth anti-aliasing technology;
Step 2, convert character code into the font index;
Step 3, loading font image;
Step 4, drafting two GTG bitmaps;
Step 5, E-ink screen show two GTG vector fonts.
Step is following when system initialization: all font file in step 1, the editing system; Step 2, be that each font file creates a font object; Step 3, all font objects put into the overall situation chained list.
When the user opened e-book, system read the character code of each vector fonts of e-book from font file, character code is sent to drawing function, was provided with to produce font and produce some parameters that bitmap uses and the parameter of abandoning the anti-aliasing technology; From overall chained list, find corresponding font object through character code, from font object, find the font index again; Load the font image; Vector fonts is described each font with the vector font of profile by name, and the font image is stored in the font groove, and the font groove is a container that is used for depositing font; Obtain the font image according to the font index, be loaded into the font image in the font groove again; Because the parameter of abandoning the anti-aliasing technology is set, so drawing function is only played up the bitmap that only comprises black and pure white two GTGs to font, the two GTG vector fonts that on the E-ink screen, show fast.
Compared with prior art; The invention has the beneficial effects as follows: the use reverse sawtooth anti-aliasing technology of abandoning tradition is in the method for the various GTGs of filling gradual change between font and the background; On the E-ink screen, show the two GTG vector fonts that only comprise black and pure white two GTGs; In guaranteeing electric book reader, in the display quality of vector fonts, improve the refresh rate of vector fonts.
Description of drawings:
Fig. 1 is a software flow pattern of the present invention;
Fig. 2 does not pass through reverse sawtooth anti-aliasing technology synoptic diagram for vector fonts of the present invention;
Fig. 3 is that vector fonts of the present invention is through reverse sawtooth anti-aliasing technology synoptic diagram;
Fig. 4 is the enlarged drawing of Fig. 2;
Fig. 5 is the enlarged drawing of Fig. 3.
Embodiment:
Central idea of the present invention is to overcome the deficiency of prior art, and a kind of vector fonts display packing that is used for electric book reader is provided, and in guaranteeing electric book reader, in the display quality of vector fonts, improves the refresh rate of vector fonts.Be elaborated with reference to accompanying drawing below in conjunction with embodiment, so that technical characterictic of the present invention and advantage are carried out more deep annotation.
Software flow pattern of the present invention is as shown in Figure 1, a kind of vector fonts display packing that is used for electric book reader, and step is following:
Step 1, from font file, read the character code of vector fonts, character code is sent to drawing function and is provided with produce parameter that two GTG vector fonts bitmaps use and the parameter of abandoning reverse sawtooth anti-aliasing technology;
Step 2, convert character code into the font index;
Step 3, loading font image;
Step 4, drafting two GTG bitmaps;
Step 5, E-ink screen show two GTG vector fonts.
When the user opened e-book, system read the character code of each vector fonts of e-book from font file, character code is sent to drawing function, was provided with to produce font and produce some parameters that bitmap uses and the parameter of abandoning reverse sawtooth anti-aliasing technology; From overall chained list, find corresponding font object through character code, from font object, find the font index again; Load the font image; Vector fonts is described each font with the vector font of profile by name, and the font image is stored in the font groove, and the font groove is a container that is used for depositing font; Obtain the font image according to the font index, be loaded into the font image in the font groove again; Because the parameter of abandoning reverse sawtooth anti-aliasing technology is set, so drawing function is only played up the bitmap that only comprises black and pure white two GTGs to font, the two GTG vector fonts that on the E-ink screen, show fast.
Like Fig. 2, shown in Figure 3; " " both picture elements among " " among Fig. 2 and Fig. 3 such as resolution, shade of gray, pattern content, archives size etc. are identical; Fig. 1 does not pass through reverse sawtooth anti-aliasing technical finesse, and Fig. 2 handles through reverse sawtooth anti-aliasing.People's naked eyes are difficult to differentiate to both difference under Fig. 2 and size cases shown in Figure 3, and effect is more or less the same.Two figure are amplified, and Fig. 4 is the effect after Fig. 2 amplifies, and Fig. 5 is the effect after Fig. 3 amplifies, and " " among " " in the comparison diagram 4 and Fig. 5 can clearly be seen both difference.Boundary between Fig. 5 font and the background is not so clear, also has the zone of a lot of grey between the background of the word of black and white, so just formed a kind of effect that merges gradually, people's naked eyes seem smoothly, and are effective; Among Fig. 4, make a clear distinction between good and evil between the background of the word of black and white, do not have other GTGs to participate, will present irregular zigzag at black and pure white staggered edge.
Though the effect through vector fonts after the reverse sawtooth anti-aliasing technical finesse is relatively good; To a certain degree could use people's naked-eye observation to arrive but need be amplified to; And electric book reader screen is limited; In the scope that screen allows, can satisfy the demand that people read vector fonts fully without the black and the pure white two GTG vector fonts of reverse sawtooth anti-aliasing technical finesse.Use reverse sawtooth anti-aliasing technical finesse vector font to know from experience and prolong the screen-refresh time; If the long meeting of refresh time causes blank screen; The effect of people being read electric paper book produces very big influence; And combined the advantage of screen-refresh speed and reading effect two aspects without two GTG vector fonts of reverse sawtooth anti-aliasing technical finesse, be more suitable for people's reading electronic book.

Claims (3)

1. vector fonts display packing that is used for electric book reader, step is following:
Step 1, from font file, read the character code of vector fonts, character code is sent to drawing function and is provided with produce parameter that two GTG vector fonts bitmaps use and the parameter of abandoning reverse sawtooth anti-aliasing technology;
Step 2, convert character code into the font index;
Step 3, loading font image;
Step 4, drafting two GTG bitmaps;
Step 5, E-ink screen show two GTG vector fonts.
2. the vector fonts display packing that is used for electric book reader according to claim 1 is characterized in that: described two GTGs comprise black and pure white two GTGs.
3. the vector fonts display packing that is used for electric book reader according to claim 2 is characterized in that: from overall chained list, find corresponding font object through character code in the step 2, from font object, find the font index again.
CN2010102018726A 2010-06-12 2010-06-12 Vector font display method for E-book reader Expired - Fee Related CN101894543B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102018726A CN101894543B (en) 2010-06-12 2010-06-12 Vector font display method for E-book reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102018726A CN101894543B (en) 2010-06-12 2010-06-12 Vector font display method for E-book reader

Publications (2)

Publication Number Publication Date
CN101894543A CN101894543A (en) 2010-11-24
CN101894543B true CN101894543B (en) 2012-02-29

Family

ID=43103717

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102018726A Expired - Fee Related CN101894543B (en) 2010-06-12 2010-06-12 Vector font display method for E-book reader

Country Status (1)

Country Link
CN (1) CN101894543B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104900196A (en) * 2015-06-04 2015-09-09 杭州国文科技有限公司 Method for handling phenomenon of screen flicker of paper-like display
CN106126084B (en) * 2015-07-28 2019-08-13 掌阅科技股份有限公司 A kind of display methods for electric paper ink screen
CN106128369B (en) * 2016-08-31 2019-05-07 长沙丰灼通讯科技有限公司 A kind of interface processing method reducing electronic ink screen ghost
CN115691434B (en) * 2022-11-08 2023-07-07 广州文石信息科技有限公司 Text display method, device and equipment based on ink screen and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0479587A3 (en) * 1990-10-03 1992-05-27 Nhance Development Corporation A method of displaying characters
JP2005100176A (en) * 2003-09-25 2005-04-14 Sony Corp Image processor and its method
TW200625223A (en) * 2004-04-13 2006-07-16 Koninkl Philips Electronics Nv Electrophoretic display with rapid drawing mode waveform
JP5417695B2 (en) * 2007-09-04 2014-02-19 セイコーエプソン株式会社 Electrophoretic display device driving method, electrophoretic display device, and electronic apparatus
CN101727836A (en) * 2009-12-18 2010-06-09 北京登合科技有限公司 Display method of E-ink electronic paper screen

Also Published As

Publication number Publication date
CN101894543A (en) 2010-11-24

Similar Documents

Publication Publication Date Title
CN101699426B (en) Document format conversion system and method
CN101840693B (en) Electronic document display method
CN110516201B (en) Image processing method, image processing device, electronic equipment and storage medium
CN101894543B (en) Vector font display method for E-book reader
CN102750564B (en) Dynamic two-dimension code and coding/decoding method thereof
KR101454572B1 (en) Character display method and device
CN105138317A (en) Window display processing method and device applied to terminal equipment
US8830258B2 (en) Generating strokes in real-time on an electronic paper display
CN102243408A (en) Method for refreshing electronic ink screen
CN106128371A (en) A kind of device, display device and the method that picture brightness strengthens
CN104268615A (en) Encoding method and decoding method for color two-dimensional code
CN101986247A (en) Electronic reader and text display method thereof
CN107402734A (en) A kind of method that text definition is automatically adjusted with screen resolution
CN102783131B (en) Data-generating device and data-generating method
CN115831061B (en) Ink screen display method, device, terminal equipment and storage medium
KR20160138930A (en) A method of aligning the images cut of a cartoon contents
CN100377169C (en) Method for picture binaryzation
US8457426B1 (en) Method and apparatus for compressing a document using pixel variation information
CN103744942B (en) Web browser method and device, web page browsing terminal device
CN101562694B (en) Method for realizing functions of character extraction and automatic translation of digital camera
CA2790210C (en) Resolution adjustment of an image that includes text undergoing an ocr process
CN103606141A (en) Method and system for realizing image display based on two-dimension code
US8824806B1 (en) Sequential digital image panning
CN105338360B (en) Picture decoding method and device
CN116415152A (en) Diffusion model-based self-supervision contrast learning method for human motion recognition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: GUANGDONG OPPO MOBILE COMMUNICATIONS CO., LTD.

Free format text: FORMER OWNER: OPPO ELECTRIC INDUSTRY CO., LTD.

Effective date: 20130605

C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20130605

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: The town of Changan city of Dongguan province Guangdong 523860 Wusha Chen Wu Xin'an Industrial Park Guangdong oppo Electronic Industry Co Ltd

Patentee before: Guangdong Oppo Electronics Industry Co.,Ltd.

CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CP01 Change in the name or title of a patent holder
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120229