Secretary Blinken Announces Warhawk Nuland’s Resignation thealtworld.com/paul_craig_rob…

Pro-Saudi Aggression Militias Leader Visits Britain, What for? english.almasirah.net.ye/post/…

Yemeni Navy Submarines: A Game-Changer in the Red Sea Battle? english.almasirah.net.ye/post/…

Tales of Resilience: Gaza's Children's Stories in Times of War" - This video explores stories #Palestine

Crisis in Haiti will be the focus of closed Security Council meeting plenglish.com/news/2024/03/06/…

From the Korean National Peace Committee -For defending peace and stability of the world #DPRK kfauk.com/from-the-korean-nati…

Respected Comrade Kim Jong Un Inspects Major Operation Training Base in Western Area #DPRK kfauk.com/respected-comrade-ki…

Between Pain and Hope: The Mark That Hugo Chávez Left on the People of Venezuela orinocotribune.com/between-pai…

British Special Forces Face Murder Charges Over Syria War Crimes libya360.wordpress.com/2024/03…

US House Passes $460Bln Government Funding Bill, Sending Legislation to Senate sputnikglobe.com/20240306/us-h…

USA intends to fight to the last Ukrainian and at someone else’s expense. Opinion eu.eot.su/2024/03/06/usa-inten…

A Bug in Early Creative Commons Licenses Has Enabled Copyleft Trolls

Link: doctorow.medium.com/a-bug-in-e…
Discussion: news.ycombinator.com/item?id=3…

Algerian FM calls for revoking 'Israel' UN membership english.almayadeen.net/news/po…

Finland’s New President — A CIA Asset — Invites U.S. Nuclear Missiles Into Finland 500 Miles From Moscow orientalreview.su/2024/03/06/f…

Fractional scales, fonts and hinting

Link: blog.gtk.org/2024/03/07/on-fra…
Discussion: news.ycombinator.com/item?id=3…


GTK 4.14 will be released very soon, with new renderers that were introduced earlier this year.

The new renderers have much improved support for fractional scaling—on my system, I now use 125% scaling instead of the ‘Large Text’ setting, and I find that works fine for my needs.

Magical numbers


Ever since 4.0, GTK has been advocating for linear layout.

The idea is that we just place glyphs where the coordinates tell us, and if that is a fractional position somewhere between pixels, so be it, we can render the outline at that offset just fine. This approach works—if your output device has a high-enough resolution (anything above 240 dpi should be ok). Sadly, we don’t live in a world where most laptop screens have that kind of resolution, so we can’t just ignore pixels.

Consequently, we added the gtk-hint-font-metrics setting that forces text layout to round things to integer positions. This is not a great fit for fractional scaling, since the rounding happens in application pixels, and we really need integral device pixel positions to produce crisp results.
Application vs. device pixels
The common fractional scales are 125%, 150%, 175%, 200% and 225%. At these scales (with the exception of 200%), most application pixel boundaries do not align with device pixel boundaries.

What now?


The new renderers gave us an opportunity to revisit the topic of font rendering and do some research on the mechanics of hinting options, and how they get passed down the stack from GTK through Pango and cairo, and then end up in freetype as a combination of render target + load flags.
Hint style and antialiasing options translate to render mode and load flags
The new renders recognize that there’s two basic modes of operation when it comes to glyphs:

  • optimize for uniform spacing
  • optimize for crisp rendering

The former leads to subpixel positioning and unhinted rendering, the latter to hinted rendering and glyphs that are placed at integral pixel positions (since that is what the autohinter expects).

We determine which case we’re in by looking at the font options. If they tell us to do hinting, we round the glyph position to an integral device pixel in the y direction. Why only y? The autohinter only applies hinting in the vertical direction and the horizontal direction is where the increased resolution of subpixel positions helps most. If we are not hinting, then we use subpixel positions for both x and y, just like the old renderer.

A comparison


Text rendering differences are always subtle and, to some degree, a matter a taste and preference. So these screenshots should be taken with a grain of salt—it is much better to try the new renderers for yourself.
Text rendered at 125%, old rendererText rendered at 125%, new renderer
Both of these renderings were done at a scale of 125%, with hinting enabled.

Here is a look at some details: the horizontal bars of T and e are consistent across lines, even though we still allow the glyphs to shift by subpixel positions horizontally.
Consistent vertical placementInstances of T and e, old rendererInstances of T and e, new renderer

Summary


The new renderers in GTK 4.14 should produce more crisp font rendering, in particular with fractional scaling.

Please try it out and tell us what you think.

blog.gtk.org/2024/03/07/on-fra…


Signs you're about to be acquired (2020)

Link: yolken.net/blog/youre-about-to…
Discussion: news.ycombinator.com/item?id=3…

‘Operation Al-Aqsa Flood’ Day 152: Prospect of breakthrough in ceasefire talks remains thin #Palestine mondoweiss.net/2024/03/operati…

China says war in Gaza disgrace to civilization, supports Palestine's full membership in UN saba.ye/en/news3311045.htm

The Project Censored Newsletter—February 2024 projectcensored.org/project-ce…

Iran arrests US oil tanker for EB patients' lawsuit iranpress.com/content/274187

Saharawi President Brahim Gali meets with a delegation of the European Parliament in the Refugee Camps #WesternSahara porunsaharalibre.org/2024/03/0…

The President of the Republic warns of the consequences of the Spanish government’s intention to transfer the management of Sahrawi airspace to the Moroccan occupying state #WesternSahara spsrasd.info/en/2024/03/06/259…

Israeli protesters gathered outside US embassy to call for hostage deal rumble.com/v4hltnx-israeli-pro…

“Who are the animals? The IDF behaving as animals” rumble.com/v4hls0o-who-are-the…
in reply to Acta Populi

It was the moment when a lot of people suddenly discovered how few rights they really have... and most of them just buckled under and accepted the abuse.. Some of us did not.. and the sheep attacked us.. pathetic world full of brainwashed stupid thick people.. They will get what's coming and I'm not going to help..

UN Warns of Fast Deterioration of Safety Conditions in Haiti cubanews.acn.cu/world/23827-un…

STOP Prosecution against the President of the COSCO workers’ union #WFTU pamehellas.gr/stop-prosecution…