Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Angelo Compagnucci <angelo.compagnucci@gmail.com>
To: buildroot@buildroot.org
Cc: Christian Hitz <christian@klarinett.li>,
	James Hilliard <james.hilliard1@gmail.com>,
	Simon Dawson <spdawson@gmail.com>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	Christian Hitz <christian.hitz@bbv.ch>
Subject: Re: [Buildroot] [PATCH 3/3] package/googlefontdirectory: allow generating static fonts
Date: Mon, 23 Nov 2026 18:17:51 +0100	[thread overview]
Message-ID: <20261123171751.2226383-1-angelo.compagnucci@gmail.com> (raw)
In-Reply-To: <20240228145013.411919-3-christian@klarinett.li>

Hi Christian,

On 28/02/24 15:50, Christian Hitz wrote:
> Google's fontdirecty started to include variable fonts. Some components
> (notably Qt) do not (yet) support these variable fonts. In order to still
> use these fonts they can be converted to static fonts at build time.

I think this series can be dropped.

The series is meant for Qt5, which can't use variable fonts. Qt5 has
reached its end of life, and only KDE still maintains it, seldom. It
will probably be removed from Buildroot sooner or later.

Qt6 supports variable fonts. In qtbase 6.12:

- the fontconfig font database registers the named instances of a
  variable font (Regular, Bold...) as normal styles
  (src/gui/text/unix/qfontconfigdatabase.cpp);
- the FreeType font engine selects the named instance, and
  QFont::setVariableAxis() sets any axis value
  (src/gui/text/freetype/qfontengine_ft.cpp).

So with Qt6, a variable font like Roboto[wdth,wght].ttf works as it is.

If another program needs static fonts, a new patch could add the
conversion for that use case. Some notes for it, from a test with
fonttools 4.68.0 and fonts of the current googlefontdirectory version:

1. The output name only depends on the font directory, so the upright
   and italic files of a family (Roboto[wdth,wght].ttf and
   Roboto-Italic[wdth,wght].ttf) overwrite each other.
2. varLib.mutator fails on static fonts, like the default ufl/ubuntu:
   "Missing required table fvar". Only the <name>[<axes>].ttf files are
   variable.
3. varLib.instancer with --static and --update-name-table makes the
   static fonts and writes their names from the STAT table, with no
   need to edit the ttx dump.
4. As Thomas said, host-python-fonttools doesn't need a Config.in.host
   entry. Patch 2/3 never reached patchwork.

host-python-fonttools is also added by a later patch, for
python-fpdf2:
https://patchwork.buildroot.org/project/buildroot/patch/20260504151620.1877-1-frcomdev@gmail.com/

Not Applicable: https://patchwork.buildroot.org/project/buildroot/patch/20240228145013.411919-3-christian@klarinett.li/
Superseded: https://patchwork.buildroot.org/project/buildroot/patch/20240228145013.411919-1-christian@klarinett.li/
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2026-11-23 17:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-28 14:50 [Buildroot] [PATCH 1/3] package/python-fonttools: enable host-package Christian Hitz via buildroot
2024-02-28 14:50 ` [Buildroot] [PATCH 2/3] package/googlefontdirectory: bump to 2125bc9b447971543caaa132530b828e5e682819 Christian Hitz via buildroot
2024-03-26 14:39   ` Thomas Petazzoni via buildroot
2024-02-28 14:50 ` [Buildroot] [PATCH 3/3] package/googlefontdirectory: allow generating static fonts Christian Hitz via buildroot
2026-11-23 17:17   ` Angelo Compagnucci [this message]
2026-11-23 20:59     ` Thomas Petazzoni via buildroot
2024-03-26 14:41 ` [Buildroot] [PATCH 1/3] package/python-fonttools: enable host-package Thomas Petazzoni via buildroot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261123171751.2226383-1-angelo.compagnucci@gmail.com \
    --to=angelo.compagnucci@gmail.com \
    --cc=buildroot@buildroot.org \
    --cc=christian.hitz@bbv.ch \
    --cc=christian@klarinett.li \
    --cc=james.hilliard1@gmail.com \
    --cc=spdawson@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox