Questions tagged [text-rendering]

Text rendering means processing text for display to a user. This includes matters of character set, text direction and orientation, font face, capitalization, styling, and effects.

Text rendering means processing text for display to a user. This includes matters of character set, text direction and orientation, font face, capitalization, styling, and effects.

336 questions
12
votes
3 answers

What are the most difficult-to-render Unicode samples?

I'm trying to implement a cross-platform (desktop browsers, iOS, & Android) typography system that allows users to input any Unicode string. What are some strings I should use to stress-test my system and ensure the most nines of users will have a…
Ky -
  • 30,724
  • 51
  • 192
  • 308
11
votes
3 answers

Matplotlib mathtext: Glyph errors in tick labels

I've observed errors when rendering math in matplotlib 2.0.2, when using the default mathtext as opposed to the LaTeX math rendering engine. It seems that some glyphs (in my case the minus and the multiplication sign) is not recognized by mathtext.…
jmd_dk
  • 12,125
  • 9
  • 63
  • 94
10
votes
3 answers

Can Java render translucent text using sub-pixel AA?

I have found that while rendering opaque text in Java (latest version 6u23) uses sub-pixel AA just fine, rendering translucent text does not. Sub-pixel AA: The same text for which only the color has been changed from 0xFFFFFFFF to 0xBFFFFFFF: As…
Lawrence Dol
  • 63,018
  • 25
  • 139
  • 189
10
votes
4 answers

How to work around poor text rendering in text backed by a CALayer

I have some variable text in an NSTextField that renders on a CALayer background view. As a CALayer does not support sub-pixel aliasing for text rendering of any text on top of it, this text looks rubbish. A bit of googling reveals the reasons why…
Nick Locking
  • 2,147
  • 2
  • 26
  • 42
9
votes
1 answer

ExtTextOutW x50 performance drop on QHD/4K screens after Windows Creators edition update

For some strange reason, calling WinAPI's ExtTextOutW function to draw clipped text on a high resolution bitmap (2560x1440/3840x2160) results in an ~x50 performance hit after updating Windows 10 with the Creators edition update. From my user's…
bLight
  • 803
  • 7
  • 23
9
votes
1 answer

Why is my QML CJK text being rendered with corrupt glyphs?

My application allows the user to switch languages on the fly. I'm seeing that about 10% of the time the user switches to Chinese or Japanese, the glyphs for the UI text are being rendered improperly. This application is running under Linux on an…
Matthew Reynolds
  • 151
  • 1
  • 10
9
votes
1 answer

OpenGL font rendering using Freetype2

I'm trying to render a freetype font using OpenGL, following the example posted at http://en.wikibooks.org/wiki/OpenGL_Programming/Modern_OpenGL_Tutorial_Text_Rendering_02. I've been able to generate a texture atlas from the font, creating shaders…
Bentebent
  • 271
  • 4
  • 8
9
votes
1 answer

What is a simple example of using Pango to render text into an image using a FreeType font?

I want to render text using Pango, but I can't find example code that does not use Cairo. Can someone give me a simple example of Pango usage with a FreeType backend? This is how I think it should roughly work, but as you can see in the code, there…
thejh
  • 44,854
  • 16
  • 96
  • 107
9
votes
2 answers

How to increase Graphics2D text quality?

I have a question concerning printing additional information on barcodes. I am using http://barbecue.sourceforge.net/ to create my barcodes. After I created my barcodes I want to add some additional information. At the moment i do this with the…
Sway
  • 151
  • 1
  • 3
  • 7
8
votes
5 answers

Web font in Chrome

I have a webfont that looks amazing on Firefox, not so much on Chrome. I've tried playing with the text-rendering property, with less-than-spectacular results. My CSS is something like this: @font-face { font-family: 'TextFont'; src:…
cambraca
  • 27,014
  • 16
  • 68
  • 99
8
votes
3 answers

font-variant: small-caps; shows different font sizes using Chrome or Firefox

font-variant: small-caps; font-size: 12px; Firefox: Capital letters: 12px Lowercase letters: 10px Chrome: Capital letters: 12px Lowercase letters: 8px How to harmonize that without using JavaScript?
Marin
  • 263
  • 3
  • 9
8
votes
1 answer

How to create upright vertical oriented text in matplotlib?

It is easy to create a Text object in Matplotlib rotated 90 degrees with rotation='vertical', like this But I want to create Text objects like this How?
Siyuan Ren
  • 7,573
  • 6
  • 47
  • 61
8
votes
3 answers

Properly render text with a given font in Python and accurately detect its boundaries

This might strike as something very simple, and I too thought it'd be, but it apparently isn't. I must've spent a week trying to make this work, but I for the love of me can't manage to do so. What I need I need to render any given string (only…
kikones34
  • 371
  • 9
  • 13
8
votes
3 answers

'ASAP' & 'UBUNTU 'google font suddenly disformed

We've been using the ASAP font in our web application for the past years without a problem. Suddenly we started noticing deformities using the 'ASAP' google font. They only occured when the font was used to render < 16px font-size. Same issues…
Olaf
  • 1,038
  • 8
  • 20
8
votes
4 answers

Firefox font-face rendering looks very different to e.g. Chrome

I am having trouble with @font-face in CSS. The font I am using looks very different in each browser. See this example in Firefox: And here in Chrome: I don't know what causes this problem. I already tried to use text-rendering and I also tried…
dude
  • 5,678
  • 11
  • 54
  • 81
1
2
3
22 23