CN102426564A - Vector italic character reversing method - Google Patents

Vector italic character reversing method Download PDF

Info

Publication number
CN102426564A
CN102426564A CN2011103399359A CN201110339935A CN102426564A CN 102426564 A CN102426564 A CN 102426564A CN 2011103399359 A CN2011103399359 A CN 2011103399359A CN 201110339935 A CN201110339935 A CN 201110339935A CN 102426564 A CN102426564 A CN 102426564A
Authority
CN
China
Prior art keywords
vector
line
character
italics
width
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
CN2011103399359A
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.)
Inventec Besta Xian Co Ltd
Original Assignee
Inventec Besta Xian 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 Inventec Besta Xian Co Ltd filed Critical Inventec Besta Xian Co Ltd
Priority to CN2011103399359A priority Critical patent/CN102426564A/en
Publication of CN102426564A publication Critical patent/CN102426564A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)
  • Image Generation (AREA)

Abstract

The invention provides a vector italic character reversing method which comprises the following steps: 1) acquiring display width, actual width and character height of characters to be reversed; 2) scribing according to the display width, actual width and character height in the step 1); and 3) determining the parallelogram reversing region of the vector italic character according to the scribing. In the vector italic character reversing method, the reversing region is correspondingly adjusted into a parallelogram according to the inclination angle of the vector italic characters, so that the italic vector characters are completely contained in the reversing region.

Description

A kind of anti-whitening method of vector italics
Technical field
The present invention relates to the anti-whitening method of vector italics on a kind of electronic equipment, relate in particular to the method that the anti-white region of vector italics is confirmed at a kind of angle of inclination through the vector italics.
Background technology
In the electronic equipment, like portable equipments such as electronic dictionary, mobile phone, PDA, the anti-white region of vector italicized character is the same with non-italicized character at present, all is rectangle.So just exist the character of anti-white region starting and ending position can not be comprised in the situation in the anti-white region fully, referring to Fig. 1.
Summary of the invention
In order to solve existing technical matters in the background technology; The present invention proposes a kind of anti-whitening method of vector italics; Angle of inclination according to the vector italics is adjusted into a parallelogram accordingly with anti-white region, makes complete being comprised in the anti-white region of italic vector font.
Technical solution of the present invention is: a kind of anti-whitening method of vector italics, and its special character is: said method comprising the steps of:
1) obtains display width, developed width and the character height that needs reverse characters;
2) according to display width, developed width and the character height of step 1), rule;
3) confirm the anti-white region of parallelogram of vector italicized character according to ruling;
Above-mentioned steps 2) concrete steps are:
2.1) supposition needs horizontal ordinate x, the ordinate y of the reference position of reverse characters;
2.2) from (x, y) position begins to (x+a, y) line;
2.3) from (x0 is y-1) to (x0+a, y-1) line;
2.4) repeating step 1.2) and step 1.3), every standardized line scribing position ordinate subtracts 1 unit;
2.5) to (x0, y-(hi-1)), when (x0+a, y-(hi-1)), (hi is the lines that will draw the height of character altogether, and since 0 calculating, the last item line is hi-1) finished line.
Above-mentioned steps 3) concrete steps are: calculate the position of the x0 of each line, calculate through following formula according to the proportional principle in the limit of similar triangles: x0=x+ (b-a) * n/ (hi-1);
Wherein n representes to draw is which bar line (calculate since 0, the last item line n is hi-1).
The present invention comes the anti-white region of compute vectors italics through the angle of inclination of compute vectors italics.Angle of inclination according to the vector italics is adjusted into a parallelogram accordingly with anti-white region, makes complete being comprised in the anti-white region of italic vector font.
Description of drawings
Fig. 1 is an anti-whitening method synoptic diagram of the present invention;
Fig. 2 is the synoptic diagram of display width, developed width and the character height of reverse characters;
Fig. 3 .1-Fig. 3 .2 is a specific embodiment synoptic diagram of the present invention;
Embodiment
Referring to Fig. 1, Fig. 2, the present invention comes the anti-white region of compute vectors italics through the angle of inclination of compute vectors italics.Angle of inclination according to the vector italics is adjusted into a parallelogram accordingly with anti-white region, makes complete being comprised in the anti-white region, referring to Fig. 1 of italic vector font;
The present invention is a kind of anti-whitening method of vector italics, may further comprise the steps:
Referring to Fig. 2, a is a display width; B is a developed width; Hi is a character height;
1) obtains display width, developed width and the character height that needs reverse characters;
2) according to display width, developed width and the character height of step 1), rule;
2.1) supposition needs horizontal ordinate x, the ordinate y of the reference position of reverse characters;
2.2) from (x, y) position begins to (x+a, y) line;
2.3) from (x0 is y-1) to (x0+a, y-1) line;
2.4) repeating step 1.2) and step 1.3), every standardized line scribing position ordinate subtracts 1 unit;
2.5) to (x0, y-(hi-1)), when (x0+a, y-(hi-1)), (hi is the lines that will draw the height of character altogether, and since 0 calculating, the last item line is hi-1) finished line.
3) confirm the anti-white region of parallelogram of vector italicized character according to ruling; Calculate the position of the x0 of each line, calculate through following formula according to the proportional principle in the limit of similar triangles: x0=x+ (b-a) * n/ (hi-1).

Claims (3)

1. the anti-whitening method of a vector italics is characterized in that: said method comprising the steps of:
1) obtains display width, developed width and the character height that needs reverse characters;
2) according to display width, developed width and the character height of step 1), rule;
3) confirm the anti-white region of parallelogram of vector italicized character according to ruling.
2. the anti-whitening method of vector italics according to claim 1 is characterized in that: concrete steps said step 2) are:
2.1) supposition needs horizontal ordinate x, the ordinate y of the reference position of reverse characters;
2.2) from (x, y) position begins to (x+a, y) line;
2.3) from (x0 is y-1) to (x0+a, y-1) line;
2.4) repeating step 1) and step 2), every standardized line scribing position ordinate subtracts 1 unit;
2.5) to (x0, y-(hi-1)), when (x0+a, y-(hi-1)), wherein, hi is the lines that will draw the height of character altogether, since 0 calculating, the last item line is hi-1, finishes line.
3. the anti-whitening method of vector italics according to claim 2; It is characterized in that: the concrete steps of said step 3) are: calculate the position of the x0 of each line, calculate through following formula according to the proportional principle in the limit of similar triangles: x0=x+ (b-a) * n/ (hi-1);
Wherein n representes to draw is which bar line (calculate since 0, the last item line n is hi-1); A is a display width; B is a developed width.
CN2011103399359A 2011-11-01 2011-11-01 Vector italic character reversing method Pending CN102426564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011103399359A CN102426564A (en) 2011-11-01 2011-11-01 Vector italic character reversing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011103399359A CN102426564A (en) 2011-11-01 2011-11-01 Vector italic character reversing method

Publications (1)

Publication Number Publication Date
CN102426564A true CN102426564A (en) 2012-04-25

Family

ID=45960550

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011103399359A Pending CN102426564A (en) 2011-11-01 2011-11-01 Vector italic character reversing method

Country Status (1)

Country Link
CN (1) CN102426564A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1153955A (en) * 1995-09-06 1997-07-09 富士通株式会社 Title extracting apparatus for extracting title from document image and method thereof
US6950986B1 (en) * 1996-12-10 2005-09-27 North River Consulting, Inc. Simultaneous display of a coded message together with its translation
CN102096906A (en) * 2010-12-13 2011-06-15 汉王科技股份有限公司 Panoramic binary image-based reversal processing method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1153955A (en) * 1995-09-06 1997-07-09 富士通株式会社 Title extracting apparatus for extracting title from document image and method thereof
US6950986B1 (en) * 1996-12-10 2005-09-27 North River Consulting, Inc. Simultaneous display of a coded message together with its translation
CN102096906A (en) * 2010-12-13 2011-06-15 汉王科技股份有限公司 Panoramic binary image-based reversal processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蔡天艳等: "点阵式液晶字符反白和图形显示研究", 《单片机与嵌入式系统应用》 *

Similar Documents

Publication Publication Date Title
US9275433B2 (en) Apparatus and method for scaling layout of application in image display device
CN102175228B (en) Distance measurement method based on mobile terminal
MX2018013254A (en) High trip rate drilling rig.
CN101727230B (en) Method and device for controlling cursor of touch screen, and mobile communication terminal
EP2704061A3 (en) Apparatus and method for recognizing a character in terminal equipment
WO2011085381A4 (en) Apparatus, system and method employing arrow flight-data
IN2014MN02595A (en)
EP2897036A3 (en) Mobile terminal and method for controlling the same
EP2560086A3 (en) Method and apparatus for navigating content on screen using pointing device
EP2921939A3 (en) Method and mobile terminal for text editing and correction
CN104035664A (en) Display method and device for user interface of application program
WO2015116105A3 (en) Context-based mobile device
CN103090862A (en) Terminal apparatus and navigation mode switching method of terminal apparatus
EP2998878A3 (en) Mobile terminal and method of controlling therefor
EP2958005A3 (en) Mobile terminal and controlling method thereof
WO2015080836A8 (en) Text input for abugida writing systems with conjuncts
JP2018536928A5 (en)
EP2763016A3 (en) Scrolling method and electronic device thereof
WO2011102865A3 (en) Determination of elevation of mobile station
WO2008083909A3 (en) Method for visualizing a change caused by scrolling in a scrolling direction of a section of a text and/or graphic displayed on an optical display means
CN102426564A (en) Vector italic character reversing method
FR3002206B1 (en) METHOD AND DEVICE FOR DISPLAYING A DYNAMIC IMAGE USING AT LEAST ONE ELECTRONIC FILM ON A MOBILE DEVICE, IN PARTICULAR AN AIRCRAFT.
JP2011210160A5 (en) Image processing method, image processing apparatus, and program
CN204449788U (en) High-precision joining device
CN103943026B (en) A kind of impact point automatic placement method based on pixel distance

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120425