-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GLES2 Glyph SubPixel Rendering - Developing #3
Comments
pic 2: GLES2 glyph texture with subpixel rendering., (top) use color component1. (middle) use color component2, (bottom) use color component3. pic 3: compare software-based (left) rendering (MiniAgg) and (right) the glyph-based GLES2 version seperate by channel, similiar to CMYK pic 4: slash _pic 6: CMYK color, from https://en.wikipedia.org/wiki/CMYK_color_model
|
from the original article (http://www.antigrain.com/research/font_rasterization/) pic 1: original article image, Maxim's Agg, 0.1 px shift to right, pic 2: our implementation, each image is move to right side 0.1 px, with TrueType hint
pic 4: each 's' is move to right side 0.1 px pic 5: each 's' is move to right side 1 px |
Software-based Renderer, PixelFarm After software-based renderer is ready, the GLES2 version is easy. pic 1: Tahoma, 8 pt, autofit + subpixel rendering with Typography pic 2: some bugs on left and right bearing, i-a space pic 3: some i-a-i sequence, some bugs or i-a,and a-i pic 4: some i-a-i sequence, no horizontal fit alignment, exact x pos pic 5: iiii sequence pic 6: compare no horizontal fit(1) and horizontal fit(2), shows inter-glyph bugs in (2) |
Exact Horizontal Position (no Horizontal Fit), Tahoma 8 ptsVertical Fit only, Tahoma 8 pts, gray-scale (upper) vs subpixel rendering. without horizontal fitting alignment,you can see the blurriness. pic 1: i-i-i sequence from pic 1, the i-i-i seq of Tahoma 8 pt shows color fringe and blurriness pic 2: e-e-f-f-t-t sequence |
Preview, Gdi+ vs the TypographyWindows Gdi+ image (SubPixel Rendering, LCD technique) and its zoom pic. pic 1: upper(1) Gdi+ vs (2) Typography subpixel (lcd) rendering vs (3) Typography gray-scale |
The HtmlRenderer example!pic 1: HtmlRenderer on GLES2 surface, text are renderered with the Typography also, please note the text selection on the Html Surface. (HtmlRender => https://github.com/LayoutFarm/HtmlRenderer, Typography => https://github.com/LayoutFarm/Typography) |
Nov 2018, HtmlRenderer ExampleGLES render surface renders font with Lcd-effect , subpixel-rendering glyph texture (#16). The glyph texture is created with Typography lib. (Default font of these Html pages are 'Tahoma') pic 1: GLES vs GDI render surface pic 2: from pic 1, screen comparison pic 3: from 1, GDI render surface pic 4: from 1, GLES render surface pic 5: from 4, zoom in |
GLES2 based-HtmlRenderer, early preview
pic 1: render with OpenGLES2, Text is rendering with PixelFarm's MiniAgg+ the Typography.
pic 2: render with GDI+ (System.Drawing)
see more about lcd technique =>https://www.grc.com/cttech.htm
The text was updated successfully, but these errors were encountered: