Questions tagged [font-rendering]

30 questions
6
votes
2 answers

Bad character spacing (kerning) in JavaFX's font rendering (in Linux)

I've started developing an application in JavaFX and I've run in an issue, I could find very little helpful information about: The spacing of between characters in Linux is very uneven. I'm not talking about the width of different characters but of…
Customizer
  • 665
  • 2
  • 7
  • 20
4
votes
1 answer

How can I make the font rendering in VSCode for MacOS looks exactly the same like VSCode for Windows?

Somewhat the opposite of this question. I don't like how fonts are rendered in VSCode for Mac. To me, the lack of contrast gets in the way, since I don't have good vision, the letters get a little scrambled because of the lack of contrast. I can…
4
votes
1 answer

QPainter.drawText ugly font rendering

qfont = QtGui.QFont('Ubuntu',…
FIL
  • 41
  • 2
3
votes
1 answer

How to fix blurry/pixelated font-rendering on red/blue backgrounds (Windows, Firefox, Chrome, others)?

On Windows, and to a certain degree also on Mac OS, with different browsers (Firefox, Chrome, Safari), our menu bar has rather pixelated/blurry font-rendering. This is on an ASP.NET Core 2.1 site that uses Bootstrap 4.1.3 but it's easy enough to…
Jashan
  • 220
  • 2
  • 9
3
votes
1 answer

Use RGB texture as alpha values/Subpixel font rendering in OpenGL

Currently I'm using FreeType in subpixel mode and take the largest color of each pixel as alpha value, with the following fragment shader: uniform sampler2D Image; uniform vec4 Color; smooth in vec2 vVaryingTexCoord; out vec4…
weltensturm
  • 2,164
  • 16
  • 17
2
votes
1 answer

Rusttype how to position glyphs vertically

I'm trying to use the rusttype crate to render text. So far it's been fantastic, but I am running into a wall when trying to correctly position individual glyphs. I am rendering text by rendering each glyph to an RgbaImage (from the image crate,…
haz
  • 2,034
  • 4
  • 28
  • 52
2
votes
1 answer

OpenJDK 11 Swing monospaced font rendering problem on macOS Retina despite turned off fractional width

I am trying to fix a problem with a code editor I am developing that only appears when using OpenJDK 11 on a Mac with Retina display. The following screenshots illustrate the probem. Top is OpenJDK 11 (AdoptOpenJDK 11.0.5 HotSpot), bottom is JDK 8…
0__
  • 66,707
  • 21
  • 171
  • 266
2
votes
1 answer

Telugu (Unicode) font not rendering correctly in pyfpdf

I am trying to render Telugu text into pdf using pyfpdf. The problem is with font rendition in fpdf. What might be the problem? The code I used is : #!/usr/bin/python # -*- coding: utf8 -*- from fpdf import FPDF pdf =…
tuxnani
  • 3,634
  • 6
  • 21
  • 33
2
votes
0 answers

Different font margin when specifying "monospace" generic font

When specifying "monospace" with Chinese text in Chrome on OSX, it will correctly render PingFang SC, however the rendered font will be exactly 2 pixels higher than rendering the exact same font by directly using "PingFang SC".…
Andrew
  • 606
  • 4
  • 13
2
votes
1 answer

Letter spacing issue, two letters stick together despite adding letter spacing

I am running into weird issue. I have attached screenshot of letter spacing issue. Initially I noticed that letters Fi aren't rendering properly. So I tried adding letter spacing but these two letters don't want to separate from each other. I have…
Zorro Here
  • 195
  • 1
  • 12
1
vote
1 answer

How to use FT_RENDER_MODE_SDF in freetype?

I'm quite new to font rendering and I'm trying to generate signed distance field with freetype so that it can be used in fragment shader in OpenGL. Here is the code that I tried: error = FT_Load_Glyph(face, glyph_index, FT_LOAD_DEFAULT); …
Farvater
  • 13
  • 4
1
vote
0 answers

Java 15 - Adding Customisable Text to my canvas produces scaling/position issue

I am jumping back into an old bunch of code and my Java is very rough. Please be kind. Problem: I have an application that draws on the canvas. The placement of the screen objects works well. Even Text attached to other objects. However when I…
BChin B
  • 11
  • 2
1
vote
1 answer

Alacritty font rendering

[Initial] I installed alacritty on Ubuntu 20.04 without a problem, by simply installing cargo and then running this script. [Root Cause] Wanting easier theme juggling, I looked up utilities for this purpose and found this one. After installing a…
1
vote
1 answer

Netbeans source code font not being well rendered

I'm having an issue using Netbeans under Linux, I'm using Arch Linux with KDE and JRE 8 and, as you can see from the screenshot, the GUI fonts are ok, but the source code font rendering is very ugly. I'm using java options for AA, but it only solved…
Leandro Jacques
  • 413
  • 5
  • 19
1
vote
1 answer

Font rendering onto off-screen FBO not working. (Note: fonts are loaded by creating textures using Freetype lib with glTexImage2D)

I have the following code to render a rectangle and few texts onto an offscreen FBO. And then I try to bind the texture (attached to FBO) in default/ display framebuffer. I am able to render the rectangle but the fonts are not getting rendered. I…
1
2