KR101666131B1 - Vector Font Rendering with considering sub-pixel pattern - Google Patents
Vector Font Rendering with considering sub-pixel pattern Download PDFInfo
- Publication number
- KR101666131B1 KR101666131B1 KR1020150075998A KR20150075998A KR101666131B1 KR 101666131 B1 KR101666131 B1 KR 101666131B1 KR 1020150075998 A KR1020150075998 A KR 1020150075998A KR 20150075998 A KR20150075998 A KR 20150075998A KR 101666131 B1 KR101666131 B1 KR 101666131B1
- Authority
- KR
- South Korea
- Prior art keywords
- pixel
- font
- pixel group
- pattern
- rendering
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
A method of rendering a vector font considering a pattern of subpixels according to the present invention includes the steps of receiving a pattern of a subpixel of a display device from a user and a size of a font and a font; Rendering the font entered by the user in a predetermined size; Determining neighboring pixel groups for each pixel group having a predetermined size in the rendered font image to determine whether or not the pixel group is drawn; And calculating a pixel value by considering a subpixel pattern and assigning an output pixel value to a pixel group that is a thinner one among the pixel groups, and for a pixel group that is not a pixel group that is a thinner among the pixel groups, And calculating an average of the pixels to assign an output pixel value.
Description
The present invention relates to a rendering technique, and more particularly, to a method and apparatus for rendering a vector font considering a sub-pixel pattern that improves the rendering quality of a font by calculating pixel values according to a pattern and a sub- .
Rendering refers to the technique of creating a two-dimensional image in consideration of materials such as the shape or color of an object set as input information. That is, it is a computer graphic process of generating a two-dimensional image by inputting numerical information and geometric information. In particular, the process of creating an image by using a font file represented by an outline and attributes such as the size and color of characters and characters presented by the user is referred to as font rendering.
Such a rendering technique is disclosed in the Korean Intellectual Property Office (KIPO) No. 1020090078654, which comprises: (a) acquiring a character image which is a two-dimensional image representing the character in consideration of character data representing the character; And (b) rendering the character image.
And 1020040086740, which is patented in the Korean Intellectual Property Office, which includes sampling actual image data for the contour to be rendered, determining approximate image data for one or more straight segments to approximate the contour to be rendered So that the filter optimally collects the spectral energy of the sampled image data at the center of the region of the spectral domain corresponding to the sample interval in the spatial domain of the sampled image data, Comprising the steps of: filtering linear segments to produce filtered image data; rendering the contour using the filtered image data; and determining whether the width of the approximate image data is greater than the width of the mask of the filter Step When the width of the projected image data is larger than the width of the mask of the filter, it discloses a method of rendering an image comprising the step of filtering the borders (edges) of the approximate image data.
And 1020060107268, which is published in the Korean Intellectual Property Office, discloses a method and system for controlling a graphics system using a font-hinting language in a computing system having access to a set of control points for generating an outline of a graphical object. ) ≪ / RTI > of the solution.
Among the conventional techniques, hinting is applied to a large number of characters such as an English alphabet where the number of characters is small, by programming rules and conditions necessary for rendering a font and storing them in a font file.
However, in the case of a large number of characters such as Hangul or Hanja, there is a problem that it is very difficult to implement because different rules must be programmed for each character.
Also, in the case of character rendering considering the red (RGB) pattern of the display device, the character is rendered at an image size N times without considering the thickness of the stroke of the character and the sub-pixel pattern, Since all cyan and magenta use the anti-aliasing method of assigning the same value, there is a problem that the rendering quality is low and the efficiency of the software or hardware is low.
It is an object of the present invention to provide a method and an apparatus for rendering a vector font considering a subpixel pattern that improves the rendering quality of a font by calculating pixel values according to a subpixel pattern and a thin line of a display device.
Another object of the present invention is to provide a method and apparatus for rendering a vector font considering sub-pixel patterns that can minimize the use of the conventional anti-aliasing method and thereby increase the efficiency of software or hardware.
According to an aspect of the present invention, there is provided a method of rendering a vector font considering a pattern of subpixels according to the present invention includes the steps of receiving a pattern of a subpixel of a display device from a user and a size of a font and a font; Rendering the font entered by the user in a predetermined size; Determining neighboring pixel groups for each pixel group having a predetermined size in the rendered font image to determine whether or not the pixel group is drawn; And calculating a pixel value by considering a subpixel pattern and assigning an output pixel value to a pixel group that is a thinner one among the pixel groups, and for a pixel group that is not a pixel group that is a thinner among the pixel groups, And calculating an average of the pixels to assign an output pixel value.
The present invention has an effect of improving font rendering quality by calculating pixel values according to a pattern and a thin line of subpixels of a display device.
In addition, the present invention minimizes the use of the conventional anti-aliasing method, thereby increasing the efficiency of software and hardware.
BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a block diagram of a vector font rendering apparatus considering a pattern of subpixels according to a preferred embodiment of the present invention; FIG.
FIG. 2 is a flowchart of a method of rendering a vector font considering a sub-pixel pattern according to a preferred embodiment of the present invention.
3 is a diagram illustrating a pattern of subpixels in a display device;
4 is a view illustrating a rendering process of a vector font considering a pattern of subpixels according to a preferred embodiment of the present invention.
The present invention improves the rendering quality of the font by minimizing the use of the anti-aliasing method by increasing the efficiency of the software or hardware by calculating the pixel value according to the pattern and the thin line of the sub-pixel of the display device.
An apparatus and method for rendering a vector font considering sub-pixel patterns according to a preferred embodiment of the present invention will be described in detail with reference to the drawings.
≪ Rendering device of vector font considering subpixel pattern >
A configuration of a vector font rendering apparatus considering a pattern of subpixels according to a preferred embodiment of the present invention will be described with reference to FIG.
The rendering apparatus includes a processing device 100, a memory 102, a display device 104, and a
The processing unit 100 performs operations for a user application program and various font rendering systems, and performs operations for a vector font renderer considering a subpixel pattern according to a preferred embodiment of the present invention. Here, the vector font renderer may be implemented by software or hardware.
The memory 102 stores various information including a processing program of the processing apparatus 100, and particularly stores information for a vector font renderer that considers subpixel patterns according to a preferred embodiment of the present invention.
The display device 104 displays information according to the control of the processing device 100.
The
<Vector font rendering method considering subpixel pattern>
A vector font rendering method considering a subpixel pattern applicable to the rendering apparatus will be described with reference to the flowchart of FIG.
The user inputs the pattern, font, and font size of the subpixel of the display device 104 desired by the user through the user interface 106 (operation 200).
The patterns of the subpixels indicate in what order and direction the red (R) subpixels constituting one pixel are arranged in the display device as illustrated in FIG. The pattern of the subpixel illustrated in FIG. 3A is a horizontal RGB, a horizontal BGR in the case of (B), a vertical RGB in the case of (C), and a vertical BGR in the case of (D).
The processing device 100 renders the character requested by the user in the size of three times by three times the size (step 202), examines the surrounding 9 * 9 pixels for each of the 3 * 3 pixel groups belonging to the rendered image, (Step 206). To be more specific, the processing apparatus 100 is filled with a group of peripheral pixels of 3 * 3 pixel groups to be rendered, that is, 3 * 3 pixel groups on the left, upper, lower and right sides of 3 * 3 pixel groups If there is no case, it is judged as a fine stroke.
If the 3 * 3 pixel group among the 3 * 3 pixel groups is a thin line, the processing apparatus 100 mixes 3 * 3 pixel values considering the subpixel pattern of red, green, and blue Step), which is shown in Equation (1).
P1, P4 and P7 are values of pixels corresponding to green (G), and P2, P5 and P6 are values of pixels corresponding to red (R) in the 3 * 3 pixel group, , P8 is the value of the pixel corresponding to blue (B), and Or, Og, and Ob are the mixed cyan 3 * 3 pixel red cyan values. This is illustrated in FIG. Also, 4, 2, 21, 12, etc. written in the above Equation 1 are variables, and other values may be selected to further improve the quality of the rendering. According to a preferred embodiment of the present invention, different values may be selected depending on the pattern of the subpixel.
Alternatively, if no 3 * 3 pixel group among the 3 * 3 pixel groups is a fine stroke, the processing unit 100 calculates a 3 * 3 pixel value as an average of the pixel values of the 3 * 3 pixel group ( Step 210).
The processing apparatus 100 allocates the 3 * 3 pixel value calculated in step 208 or 210 as an output pixel value (step 212).
If the allocation of the output pixel values is made for all 3 * 3 pixel groups (step 214), rendering according to the present invention is completed.
The program according to the vector font rendering method considering the pattern of subpixels according to the present invention can be stored in a storage medium, which is obvious to a person skilled in the art by the present invention.
In addition, a program according to the method of rendering a vector font in consideration of the pattern of subpixels according to the present invention may be implemented or used as a device implemented with a logic circuit, which is obvious to a person skilled in the art by the present invention.
While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, And variations are possible.
Accordingly, it is to be understood that the scope of the present invention is to be determined solely by the appended claims, and all equivalent or equivalent variations thereof are included in the scope of the present invention.
100: Processing device
102: Memory
104: Display device
106: User interface
Claims (8)
Receiving a pattern of a sub-pixel of a display device, a font, and a font size from a user;
Rendering the font entered by the user in a predetermined size;
Determining neighboring pixel groups for each pixel group having a predetermined size in the rendered font image to determine whether or not the pixel group is drawn;
For a pixel group that is a thin stroke among the pixel groups, a pixel value is calculated in consideration of a sub-pixel pattern, an output pixel value is assigned,
And calculating an average of pixels belonging to a pixel group and assigning an output pixel value to a pixel group that is not a pixel group that is a thin one among the pixel groups. Way.
Wherein the pattern of the subpixels is a sequence and directions of red, green, and blue subpixels constituting pixels of the display device.
Wherein the predetermined size is rendered by a user in a size of three times the size of a character requested by the user.
Wherein the step of determining whether or not the fine stroke is to be performed is to determine whether a stroke is a small stroke by inspecting 9 * 9 pixels around each 3 * 3 pixel group belonging to the rendered image.
And calculating a pixel value for a pixel group that is a thin one among the pixel groups, according to Equation (2).
Equation 2
P1, P4 and P7 are the values of pixels corresponding to green (G), and P2, P5 and P8 are the values of the pixels corresponding to red (R) in the pixel group, (B), and Or, Og, and Ob are the cyan values of the blended pixels, and A to H are the variables.
The pixel group,
And determining whether or not the neighboring pixel groups are all filled in the sub-pixel group.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150075998A KR101666131B1 (en) | 2015-05-29 | 2015-05-29 | Vector Font Rendering with considering sub-pixel pattern |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020150075998A KR101666131B1 (en) | 2015-05-29 | 2015-05-29 | Vector Font Rendering with considering sub-pixel pattern |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101666131B1 true KR101666131B1 (en) | 2016-10-14 |
Family
ID=57157073
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020150075998A KR101666131B1 (en) | 2015-05-29 | 2015-05-29 | Vector Font Rendering with considering sub-pixel pattern |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101666131B1 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040086740A (en) | 2003-04-03 | 2004-10-12 | 마이크로소프트 코포레이션 | High quality anti-aliasing |
KR20060107268A (en) | 2004-01-26 | 2006-10-13 | 마이크로소프트 코포레이션 | Iteratively solving constraints in a font-hinting language |
KR20070120120A (en) * | 2005-04-04 | 2007-12-21 | 클레어보얀테, 인크. | Pre-subpixel rendered image processing in display systems |
KR20090078654A (en) | 2008-01-15 | 2009-07-20 | 삼성전자주식회사 | Method and apparatus for rendering |
KR20110018297A (en) | 2008-04-30 | 2011-02-23 | 마이크로소프트 코포레이션 | High-fidelity rendering of documents in viewer clients |
JP2011059694A (en) * | 2003-04-07 | 2011-03-24 | Samsung Electronics Co Ltd | Image data set with embedded pre-subpixel rendered image |
JP4937359B2 (en) * | 2008-01-15 | 2012-05-23 | 三菱電機株式会社 | Graphic drawing apparatus and graphic drawing method |
-
2015
- 2015-05-29 KR KR1020150075998A patent/KR101666131B1/en active IP Right Grant
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040086740A (en) | 2003-04-03 | 2004-10-12 | 마이크로소프트 코포레이션 | High quality anti-aliasing |
JP2011059694A (en) * | 2003-04-07 | 2011-03-24 | Samsung Electronics Co Ltd | Image data set with embedded pre-subpixel rendered image |
KR20060107268A (en) | 2004-01-26 | 2006-10-13 | 마이크로소프트 코포레이션 | Iteratively solving constraints in a font-hinting language |
KR20070120120A (en) * | 2005-04-04 | 2007-12-21 | 클레어보얀테, 인크. | Pre-subpixel rendered image processing in display systems |
KR20090078654A (en) | 2008-01-15 | 2009-07-20 | 삼성전자주식회사 | Method and apparatus for rendering |
JP4937359B2 (en) * | 2008-01-15 | 2012-05-23 | 三菱電機株式会社 | Graphic drawing apparatus and graphic drawing method |
KR20110018297A (en) | 2008-04-30 | 2011-02-23 | 마이크로소프트 코포레이션 | High-fidelity rendering of documents in viewer clients |
Non-Patent Citations (1)
Title |
---|
"A font and size-independent OCR system for printed Kannada documents using support vector machines." Sadhana 27.1 (2002) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2312404C2 (en) | Hardware acceleration of graphical operations during construction of images based on pixel sub-components | |
US20040075699A1 (en) | Method and apparatus for highlighting graphical objects | |
US20160343155A1 (en) | Dynamic filling of shapes for graphical display of data | |
JP2003036048A (en) | Display device, display method, and recording medium in which display control program is recorded | |
US7006096B2 (en) | Character display apparatus, character display method, and recording medium | |
JP2014167635A (en) | Method for processing stroke-based font for low-resolution display | |
US7468732B2 (en) | Character display apparatus and character display method, control program for controlling the character display method and recording medium recording the control program | |
JP4370438B2 (en) | Vector image drawing apparatus, vector image drawing method and program | |
CN104166958A (en) | Area-of-interest displaying and operating method | |
KR100749873B1 (en) | Character display apparatus, character display method, and readable recording medium | |
JP2006139727A (en) | Three-dimensional figure drawing processor, image display device, three-dimensional figure drawing processing method, control program for executing the method by computer, and computer readable recording medium recorded with the program | |
CN111145126B (en) | Image character fast erasing method | |
KR101666131B1 (en) | Vector Font Rendering with considering sub-pixel pattern | |
CN112567430A (en) | Image generation device, image generation method, and program | |
EP0855682B1 (en) | Scan line rendering of convolutions | |
JP2012108825A (en) | Information processing device, information processing method and program | |
CN102119409A (en) | Drawing device and drawing method | |
US20100020096A1 (en) | Antialiasing apparatus | |
KR100705188B1 (en) | A character font display method | |
US11182932B2 (en) | Color gradient capture from source image content | |
JP3872056B2 (en) | Drawing method | |
JP5654070B2 (en) | Image processing apparatus, image processing method, and program | |
WO2019082232A1 (en) | Image processing device, image processing method and program | |
KR100586602B1 (en) | Method for overlaing raster map | |
US8890885B1 (en) | Efficiently copying and blending a source region into a target region |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20190917 Year of fee payment: 4 |