public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/root] epel9: Rebuild for pythia8 8.3.18
@ 2026-10-16 9:06 Mattias Ellert
0 siblings, 0 replies; only message in thread
From: Mattias Ellert @ 2026-10-16 9:06 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/root
Branch : epel9
Commit : b2927257abc564e657676e114e468c8a5ff606ad
Author : Mattias Ellert <mattias.ellert@physics.uu.se>
Date : 2026-10-15T14:05:40+02:00
Stats : +535/-245 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/root/c/b2927257abc564e657676e114e468c8a5ff606ad?branch=epel9
Log:
Rebuild for pythia8 8.3.18
Use the URW fonts (Nimbus Roman/Sans/Mono) for text for consistency
Use the normal text fonts for cyrillic in TMathText
---
diff --git a/root-Adjust-stressGraphics-reference.patch b/root-Adjust-stressGraphics-reference.patch
index b4950ed..d431e7e 100644
--- a/root-Adjust-stressGraphics-reference.patch
+++ b/root-Adjust-stressGraphics-reference.patch
@@ -1,46 +1,51 @@
-From 9d2d6c1a104302e2f84659324b4e8b317cb9ab95 Mon Sep 17 00:00:00 2001
+From ef2193d4a50b6f884794327d42988a7fa007a3f8 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
-Date: Fri, 26 Jun 2026 06:51:28 +0200
+Date: Thu, 15 Oct 2026 07:21:23 +0200
Subject: [PATCH] Adjust stressGraphics reference
---
- test/stressGraphics_zlibng.ref | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
+ test/stressGraphics.ref | 2 +-
+ test/stressGraphics_zlibng.ref | 10 +++++-----
+ 2 files changed, 6 insertions(+), 6 deletions(-)
+diff --git a/test/stressGraphics.ref b/test/stressGraphics.ref
+index 1416b0ac19e..e5bec49db1e 100644
+--- a/test/stressGraphics.ref
++++ b/test/stressGraphics.ref
+@@ -16,7 +16,7 @@
+ tlatex5 12971 100 14810 50 34063 2000 32033 1200 13070 150
+ kerning 7444 100 13593 100 83557 3000 38505 4000 7494 150
+ itbf 5600 400 13302 400 16881 400 15063 800 5638 400
+- tmathtext 14190539 4000000 12986 100 23076 9500 25987 3000 14190704 4000000
++ tmathtext 14190539 4600000 12986 100 23076 9500 25987 3000 14190704 4600000
+ transparency 2396 50 14700 100 16514 7000 24701 12000 2554 100
+ transpad 15690 5000 17239 200 23076 9500 14232 1500 10437 5000
+ statfitparam 28072 400 23580 250 44462 11000 30062 5000 37580 400
diff --git a/test/stressGraphics_zlibng.ref b/test/stressGraphics_zlibng.ref
-index b7ca1568c66..2fda1276315 100644
+index f8d586158d9..fa2bcc257da 100644
--- a/test/stressGraphics_zlibng.ref
+++ b/test/stressGraphics_zlibng.ref
-@@ -7,7 +7,7 @@
- patterns 23688 1500 19305 200 143676 123000 47075 11000 23076 1500
- crown 2785 50 14546 100 19178 9000 7605 4000 2829 50
- piechart 67345 200 74560 3000 32180 15000 29168 15000 66962 200
-- ttext1 1025 150 12866 150 32266 9900 29901 5000 1072 200
-+ ttext1 1025 150 12866 200 32266 9900 29901 5000 1072 200
- ttext2 432 50 12743 50 9517 150 5306 700 473 50
- tlatex1 5140 50 14050 50 16377 1300 12462 500 5170 70
+@@ -13,15 +13,15 @@
tlatex2 5488 80 13507 100 18439 700 12061 500 5502 80
-@@ -18,9 +18,9 @@
+ tlatex3 9154 100 14323 150 20441 2400 12143 900 9283 100
+ tlatex4 8831 70 13705 100 24251 1100 23337 1700 8862 70
+- tlatex5 12967 100 14770 50 33842 2000 30348 1200 12970 150
++ tlatex5 12967 100 14770 50 33842 2000 30348 1400 12970 150
+ kerning 7454 100 13557 50 83044 3000 37165 4100 7504 150
itbf 5600 400 13302 300 16868 400 15083 800 5638 400
- tmathtext 14193187 4000000 12984 100 27112 9500 25080 3000 14193352 4000000
+- tmathtext 14193187 4000000 12984 100 27112 9500 25080 3000 14193352 4000000
++ tmathtext 14193187 4600000 12984 100 27112 9500 25080 3000 14193352 4600000
transparency 2386 50 14700 100 16514 7000 24701 12000 2554 100
- transpad 16185 5000 17131 350 22801 9500 14232 1000 11271 5000
-+ transpad 16185 5000 17131 350 22801 9500 14232 1500 11271 5000
++ transpad 16185 5000 17131 350 22801 9500 14232 1200 11271 5000
statfitparam 27683 400 23370 300 44898 11000 30209 5000 37580 400
- tgaxis1 20424 400 21388 300 27719 11000 16044 600 20704 400
-+ tgaxis1 20424 400 21388 300 27719 11000 16044 700 20704 400
- tgaxis2 15874 100 19140 300 27682 10300 15197 550 15905 100
+- tgaxis2 15874 100 19140 300 27682 10300 15197 550 15905 100
++ tgaxis1 20424 400 21388 300 27719 11000 16044 1000 20704 400
++ tgaxis2 15874 100 19140 300 27682 10300 15197 650 15905 100
tgaxis3 22678 300 42796 200 44177 17000 20788 11000 22866 300
tgaxis4 3817 600 14405 250 19907 6300 10674 900 4523 600
-@@ -71,7 +71,7 @@
- annotation3d 547845 3000 193427 3000 32383 12000 58073 20000 547493 3000
- tgraph2d3 16675 3000 29541 500 40536 11300 33519 3900 16452 4000
- ntuple1 256544 5000 382044 7000 54446 30400 45002 6500 261593 7000
-- quarks 4759 180 14134 100 32913 600 25421 1000 4790 180
-+ quarks 4759 180 14134 200 32913 600 25421 1000 4790 180
- timage 1442666 150000 12900 100 26100 100 374206 15000 1102279 250000
- zoomtf1 6130 500 16528 300 49750 14000 29288 4000 5429 500
- zoomfit 6200 700 15706 200 31219 11000 18280 3200 6113 800
+ tgaxis5 15804 600 13960 150 49201 6300 37054 9000 8125 600
--
-2.54.0
+2.56.0
diff --git a/root-Use-the-normal-text-font-for-cyrillic.patch b/root-Use-the-normal-text-font-for-cyrillic.patch
new file mode 100644
index 0000000..51c35e1
--- /dev/null
+++ b/root-Use-the-normal-text-font-for-cyrillic.patch
@@ -0,0 +1,61 @@
+From ac6455240b7b596f121575d825728e5c05c23e12 Mon Sep 17 00:00:00 2001
+From: Mattias Ellert <mattias.ellert@physics.uu.se>
+Date: Wed, 14 Oct 2026 18:44:14 +0200
+Subject: [PATCH] Use the normal text font for cyrillic
+
+The system Droid Sans Fallback font has no cyrillic letters.
+---
+ graf2d/graf/src/TMathText.cxx | 14 ++++----------
+ 1 file changed, 4 insertions(+), 10 deletions(-)
+
+diff --git a/graf2d/graf/src/TMathText.cxx b/graf2d/graf/src/TMathText.cxx
+index db37252c02c..025df3c6e51 100644
+--- a/graf2d/graf/src/TMathText.cxx
++++ b/graf2d/graf/src/TMathText.cxx
+@@ -90,11 +90,6 @@ private:
+
+ return precision;
+ }
+- inline bool is_cyrillic_or_cjk(const wchar_t c) const
+- {
+- return mathtext::math_text_renderer_t::is_cyrillic(c) ||
+- mathtext::math_text_renderer_t::is_cjk(c);
+- }
+ inline size_t root_cjk_face_number(
+ const bool serif = false) const
+ {
+@@ -228,9 +223,8 @@ public:
+ const unsigned int family)
+ {
+ const size_t old_font_index = TTF::fgCurFontIdx;
+- const bool cyrillic_or_cjk = is_cyrillic_or_cjk(character);
+
+- if (cyrillic_or_cjk) {
++ if (mathtext::math_text_renderer_t::is_cjk(character)) {
+ TTF::SetTextFont((Font_t) root_cjk_face_number());
+ } else {
+ TTF::SetTextFont((Font_t) root_face_number(family));
+@@ -308,9 +302,9 @@ public:
+ buf[1] = L'\0';
+ for (std::wstring::const_iterator iterator = string.begin(); iterator != string.end(); ++iterator) {
+ buf[0] = *iterator;
+- const bool cyrillic_or_cjk = is_cyrillic_or_cjk(buf[0]);
++ const bool is_cjk = mathtext::math_text_renderer_t::is_cjk(buf[0]);
+
+- if (cyrillic_or_cjk) {
++ if (is_cjk) {
+ SetTextFont((Font_t) root_cjk_face_number());
+ TAttText::Modify();
+ }
+@@ -323,7 +317,7 @@ public:
+ transform_pad(xt, yt, x + advance, y);
+ gPad->PaintText(xt, yt, buf);
+ advance += b.advance();
+- if (cyrillic_or_cjk) {
++ if (is_cjk) {
+ SetTextFont((Font_t) root_face_number(family));
+ TAttText::Modify();
+ }
+--
+2.56.0
+
diff --git a/root-fontconfig.patch b/root-fontconfig.patch
index d732893..b575b8a 100644
--- a/root-fontconfig.patch
+++ b/root-fontconfig.patch
@@ -1,21 +1,28 @@
-From 58bd7d6e0f905efcf436558fdc11796b7145c66d Mon Sep 17 00:00:00 2001
+From 465081ca432ce4df5054b3351f5a68a72a056172 Mon Sep 17 00:00:00 2001
From: Mattias Ellert <mattias.ellert@physics.uu.se>
-Date: Sat, 11 May 2024 20:09:47 +0200
+Date: Thu, 15 Oct 2026 13:58:28 +0200
Subject: [PATCH] Use system fonts via fontconfig
---
- core/base/src/TApplication.cxx | 11 +-
- graf2d/asimage/CMakeLists.txt | 1 +
- graf2d/asimage/src/TASImage.cxx | 91 +++++++-
- graf2d/graf/CMakeLists.txt | 1 +
- graf2d/graf/inc/TTF.h | 3 +-
- graf2d/graf/src/TTF.cxx | 295 +++++++++++++++++---------
- graf2d/postscript/CMakeLists.txt | 1 +
- graf2d/postscript/src/TPostScript.cxx | 106 ++++-----
- graf3d/gl/CMakeLists.txt | 1 +
- graf3d/gl/src/TGLFontManager.cxx | 124 ++++++++++-
- graf3d/gl/src/TGLText.cxx | 56 +++--
- 11 files changed, 496 insertions(+), 194 deletions(-)
+ core/base/src/TApplication.cxx | 11 +-
+ graf2d/asimage/CMakeLists.txt | 1 +
+ graf2d/asimage/src/TASImage.cxx | 91 +++++++-
+ graf2d/graf/CMakeLists.txt | 1 +
+ graf2d/graf/inc/TTF.h | 3 +-
+ graf2d/graf/src/TTF.cxx | 295 +++++++++++++++++--------
+ graf2d/postscript/CMakeLists.txt | 1 +
+ graf2d/postscript/src/TPostScript.cxx | 130 +++++------
+ graf3d/eve/src/TEveCaloLegoGL.cxx | 2 +-
+ graf3d/eve/src/TEveCaloLegoOverlay.cxx | 8 +-
+ graf3d/gl/CMakeLists.txt | 1 +
+ graf3d/gl/inc/TGLFontManager.h | 3 -
+ graf3d/gl/src/TGLAnnotation.cxx | 2 +-
+ graf3d/gl/src/TGLCameraOverlay.cxx | 4 +-
+ graf3d/gl/src/TGLFontManager.cxx | 142 +++++-------
+ graf3d/gl/src/TGLOverlayButton.cxx | 2 +-
+ graf3d/gl/src/TGLPadPainter.cxx | 12 +-
+ graf3d/gl/src/TGLText.cxx | 56 +++--
+ 18 files changed, 461 insertions(+), 304 deletions(-)
diff --git a/core/base/src/TApplication.cxx b/core/base/src/TApplication.cxx
index 0c0c9515930..2b9bbb2b2af 100644
@@ -51,7 +58,7 @@ index 0c0c9515930..2b9bbb2b2af 100644
if (!only_web || !fAppImp) {
diff --git a/graf2d/asimage/CMakeLists.txt b/graf2d/asimage/CMakeLists.txt
-index 3b5188c126e..a82efc829fc 100644
+index 870cceea03d..b2560b495ce 100644
--- a/graf2d/asimage/CMakeLists.txt
+++ b/graf2d/asimage/CMakeLists.txt
@@ -30,6 +30,7 @@ ROOT_STANDARD_LIBRARY_PACKAGE(ASImage
@@ -63,7 +70,7 @@ index 3b5188c126e..a82efc829fc 100644
Core
Graf
diff --git a/graf2d/asimage/src/TASImage.cxx b/graf2d/asimage/src/TASImage.cxx
-index 3784e05a235..0ad74e1ee6f 100644
+index 3784e05a235..213c287aae2 100644
--- a/graf2d/asimage/src/TASImage.cxx
+++ b/graf2d/asimage/src/TASImage.cxx
@@ -116,6 +116,8 @@ extern "C" {
@@ -93,63 +100,63 @@ index 3784e05a235..0ad74e1ee6f 100644
+
+ if (strcmp(basename, "timesi.ttf") == 0 ||
+ strcmp(basename, "FreeSerifItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman:italic");
+ }
+ else if (strcmp(basename, "timesbd.ttf") == 0 ||
+ strcmp(basename, "FreeSerifBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:bold");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman:bold");
+ }
+ else if (strcmp(basename, "timesbi.ttf") == 0 ||
+ strcmp(basename, "FreeSerifBoldItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:bold:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman:bold:italic");
+ }
+ else if (strcmp(basename, "arial.ttf") == 0 ||
+ strcmp(basename, "FreeSans.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans");
++ pat = FcNameParse ((const FcChar8*) "nimbussans");
+ }
+ else if (strcmp(basename, "ariali.ttf") == 0 ||
+ strcmp(basename, "FreeSansOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbussans:italic");
+ }
+ else if (strcmp(basename, "arialbd.ttf") == 0 ||
+ strcmp(basename, "FreeSansBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:bold");
++ pat = FcNameParse ((const FcChar8*) "nimbussans:bold");
+ }
+ else if (strcmp(basename, "arialbi.ttf") == 0 ||
+ strcmp(basename, "FreeSansBoldOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:bold:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbussans:bold:italic");
+ }
+ else if (strcmp(basename, "cour.ttf") == 0 ||
+ strcmp(basename, "FreeMono.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops");
+ }
+ else if (strcmp(basename, "couri.ttf") == 0 ||
+ strcmp(basename, "FreeMonoOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops:italic");
+ }
+ else if (strcmp(basename, "courbd.ttf") == 0 ||
+ strcmp(basename, "FreeMonoBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:bold");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops:bold");
+ }
+ else if (strcmp(basename, "courbi.ttf") == 0 ||
+ strcmp(basename, "FreeMonoBoldOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:bold:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops:bold:italic");
+ }
+ else if (strcmp(basename, "symbol.ttf") == 0) {
+ pat = FcNameParse ((const FcChar8*) "standardsymbolsps");
+ }
+ else if (strcmp(basename, "times.ttf") == 0 ||
+ strcmp(basename, "FreeSerif.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman");
+ }
+ else if (strcmp(basename, "wingding.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "dingbats");
++ pat = FcNameParse ((const FcChar8*) "d050000l");
+ }
+ else if (strcmp(basename, "BlackChancery.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "urwchanceryl");
++ pat = FcNameParse ((const FcChar8*) "z003");
+ }
+ else if (gSystem->AccessPathName(fn, kReadPermission) != 0) {
-+ // Font name is not a file - usae as pattern
++ // Font name is not a file - use as pattern
+ pat = FcNameParse ((const FcChar8*) fn.Data());
+ }
+
@@ -207,7 +214,7 @@ index 864ce06b4f0..050796d1ded 100644
static TTF::TTGlyph fgGlyphs[kMaxGlyphs]; ///< glyphs
static Bool_t fgHinting; ///< use hinting (true by default)
diff --git a/graf2d/graf/src/TTF.cxx b/graf2d/graf/src/TTF.cxx
-index 758bb98c192..c90d0ac70a9 100644
+index 758bb98c192..8248c6fcca3 100644
--- a/graf2d/graf/src/TTF.cxx
+++ b/graf2d/graf/src/TTF.cxx
@@ -25,6 +25,8 @@ Interface to the freetype 2 library.
@@ -276,47 +283,47 @@ index 758bb98c192..c90d0ac70a9 100644
+
+ if (strcmp(basename, "timesi.ttf") == 0 ||
+ strcmp(basename, "FreeSerifItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman:italic");
+ }
+ else if (strcmp(basename, "timesbd.ttf") == 0 ||
+ strcmp(basename, "FreeSerifBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:bold");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman:bold");
+ }
+ else if (strcmp(basename, "timesbi.ttf") == 0 ||
+ strcmp(basename, "FreeSerifBoldItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:bold:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman:bold:italic");
+ }
+ else if (strcmp(basename, "arial.ttf") == 0 ||
+ strcmp(basename, "FreeSans.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans");
++ pat = FcNameParse ((const FcChar8*) "nimbussans");
+ }
+ else if (strcmp(basename, "ariali.ttf") == 0 ||
+ strcmp(basename, "FreeSansOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbussans:italic");
+ }
+ else if (strcmp(basename, "arialbd.ttf") == 0 ||
+ strcmp(basename, "FreeSansBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:bold");
++ pat = FcNameParse ((const FcChar8*) "nimbussans:bold");
+ }
+ else if (strcmp(basename, "arialbi.ttf") == 0 ||
+ strcmp(basename, "FreeSansBoldOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:bold:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbussans:bold:italic");
+ }
+ else if (strcmp(basename, "cour.ttf") == 0 ||
+ strcmp(basename, "FreeMono.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops");
+ }
+ else if (strcmp(basename, "couri.ttf") == 0 ||
+ strcmp(basename, "FreeMonoOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops:italic");
+ }
+ else if (strcmp(basename, "courbd.ttf") == 0 ||
+ strcmp(basename, "FreeMonoBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:bold");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops:bold");
+ }
+ else if (strcmp(basename, "courbi.ttf") == 0 ||
+ strcmp(basename, "FreeMonoBoldOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:bold:italic");
++ pat = FcNameParse ((const FcChar8*) "nimbusmonops:bold:italic");
+ }
+ else if (strcmp(basename, "symbol.ttf") == 0) {
+ pat = FcNameParse ((const FcChar8*) "standardsymbolsps");
@@ -324,10 +331,10 @@ index 758bb98c192..c90d0ac70a9 100644
+ }
+ else if (strcmp(basename, "times.ttf") == 0 ||
+ strcmp(basename, "FreeSerif.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif");
++ pat = FcNameParse ((const FcChar8*) "nimbusroman");
+ }
+ else if (strcmp(basename, "wingding.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "dingbats");
++ pat = FcNameParse ((const FcChar8*) "d050000l");
+ italic &= 2;
+ }
+ else if (strcmp(basename, "STIXGeneral.otf") == 0) {
@@ -370,13 +377,13 @@ index 758bb98c192..c90d0ac70a9 100644
+ pat = FcNameParse ((const FcChar8*) "stixsize5");
+ }
+ else if (strcmp(basename, "DroidSansFallback.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "droidsansfallback:charset=4e00 0410");
++ pat = FcNameParse ((const FcChar8*) "droidsansfallback");
+ }
+ else if (strcmp(basename, "BlackChancery.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "urwchanceryl");
++ pat = FcNameParse ((const FcChar8*) "z003");
+ }
+ else if (gSystem->AccessPathName(fontname, kReadPermission) != 0) {
-+ // Font name is not a file - usae as pattern
++ // Font name is not a file - use as pattern
+ pat = FcNameParse ((const FcChar8*) fontname);
+ }
+
@@ -525,21 +532,21 @@ index 758bb98c192..c90d0ac70a9 100644
- { "Root.TTFont.CJKMing", "DroidSansFallback.ttf" },
- { "Root.TTFont.CJKGothic", "DroidSansFallback.ttf" }
+ static const char *fonttable[] = {
-+ "freesans:bold",
-+ "freeserif:italic",
-+ "freeserif:bold",
-+ "freeserif:bold:italic",
-+ "freesans",
-+ "freesans:italic",
-+ "freesans:bold",
-+ "freesans:bold:italic",
-+ "freemono",
-+ "freemono:italic",
-+ "freemono:bold",
-+ "freemono:bold:italic",
++ "nimbussans:bold",
++ "nimbusroman:italic",
++ "nimbusroman:bold",
++ "nimbusroman:bold:italic",
++ "nimbussans",
++ "nimbussans:italic",
++ "nimbussans:bold",
++ "nimbussans:bold:italic",
++ "nimbusmonops",
++ "nimbusmonops:italic",
++ "nimbusmonops:bold",
++ "nimbusmonops:bold:italic",
+ "standardsymbolsps",
-+ "freeserif",
-+ "dingbats",
++ "nimbusroman",
++ "d050000l",
+ "standardsymbolsps",
+ "stixgeneral",
+ "stixgeneral:italic",
@@ -554,9 +561,9 @@ index 758bb98c192..c90d0ac70a9 100644
+ "stixsize4",
+ "stixsize4:bold",
+ "stixsize5",
-+ "droidsansfallback:charset=4e00 0410",
-+ "droidsansfallback:charset=4e00 0410",
-+ "droidsansfallback:charset=4e00 0410"
++ "droidsansfallback",
++ "droidsansfallback",
++ "droidsansfallback"
};
- static int fontset = -1;
@@ -606,7 +613,7 @@ index eb091bbb396..a05023a3f41 100644
Graf
)
diff --git a/graf2d/postscript/src/TPostScript.cxx b/graf2d/postscript/src/TPostScript.cxx
-index 8d4343736d1..c2efa7914da 100644
+index 8d4343736d1..692aafce44a 100644
--- a/graf2d/postscript/src/TPostScript.cxx
+++ b/graf2d/postscript/src/TPostScript.cxx
@@ -234,6 +234,7 @@ To change the color model use `gStyle->SetColorModelPS(c)`.
@@ -655,21 +662,21 @@ index 8d4343736d1..c2efa7914da 100644
- { "Root.TTFont.CJKMing", "DroidSansFallback.ttf" },
- { "Root.TTFont.CJKCothic", "DroidSansFallback.ttf" }
+ static const char *fonttable[] = {
-+ "freesans:bold",
-+ "freeserif:italic",
-+ "freeserif:bold",
-+ "freeserif:bold:italic",
-+ "freesans",
-+ "freesans:italic",
-+ "freesans:bold",
-+ "freesans:bold:italic",
-+ "freemono",
-+ "freemono:italic",
-+ "freemono:bold",
-+ "freemono:bold:italic",
++ "nimbussans:bold",
++ "nimbusroman:italic",
++ "nimbusroman:bold",
++ "nimbusroman:bold:italic",
++ "nimbussans",
++ "nimbussans:italic",
++ "nimbussans:bold",
++ "nimbussans:bold:italic",
++ "nimbusmonops",
++ "nimbusmonops:italic",
++ "nimbusmonops:bold",
++ "nimbusmonops:bold:italic",
+ "standardsymbolsps",
-+ "freeserif",
-+ "dingbats",
++ "nimbusroman",
++ "d050000l",
+ "standardsymbolsps",
+ "stixgeneral",
+ "stixgeneral:italic",
@@ -684,9 +691,9 @@ index 8d4343736d1..c2efa7914da 100644
+ "stixsize4",
+ "stixsize4:bold",
+ "stixsize5",
-+ "droidsansfallback:charset=4e00 0410",
-+ "droidsansfallback:charset=4e00 0410",
-+ "droidsansfallback:charset=4e00 0410"
++ "droidsansfallback",
++ "droidsansfallback",
++ "droidsansfallback"
};
PrintStr("%%IncludeResource: ProcSet (FontSetInit)@");
@@ -739,20 +746,91 @@ index 8d4343736d1..c2efa7914da 100644
}
}
PrintStr("%%IncludeResource: font Times-Roman@");
-@@ -2852,10 +2858,10 @@ void TPostScript::Text(Double_t xx, Double_t yy, const wchar_t *chars)
- { "Root.PSFont.9", "/FreeMonoOblique" },
- { "Root.PSFont.10", "/FreeMonoBold" },
- { "Root.PSFont.11", "/FreeMonoBoldOblique" },
+@@ -2841,21 +2847,21 @@ void TPostScript::Text(Double_t xx, Double_t yy, const char *chars)
+ void TPostScript::Text(Double_t xx, Double_t yy, const wchar_t *chars)
+ {
+ static const char *psfont[31][2] = {
+- { "Root.PSFont.1", "/FreeSerifItalic" },
+- { "Root.PSFont.2", "/FreeSerifBold" },
+- { "Root.PSFont.3", "/FreeSerifBoldItalic" },
+- { "Root.PSFont.4", "/FreeSans" },
+- { "Root.PSFont.5", "/FreeSansOblique" },
+- { "Root.PSFont.6", "/FreeSansBold" },
+- { "Root.PSFont.7", "/FreeSansBoldOblique" },
+- { "Root.PSFont.8", "/FreeMono" },
+- { "Root.PSFont.9", "/FreeMonoOblique" },
+- { "Root.PSFont.10", "/FreeMonoBold" },
+- { "Root.PSFont.11", "/FreeMonoBoldOblique" },
- { "Root.PSFont.12", "/SymbolMT" },
-+ { "Root.PSFont.12", "/StandardSymbolsL" },
- { "Root.PSFont.13", "/FreeSerif" },
+- { "Root.PSFont.13", "/FreeSerif" },
- { "Root.PSFont.14", "/Wingdings-Regular" },
- { "Root.PSFont.15", "/SymbolMT" },
-+ { "Root.PSFont.14", "/Dingbats" },
-+ { "Root.PSFont.15", "/StandardSymbolsL" },
++ { "Root.PSFont.1", "/NimbusRoman-Italic" },
++ { "Root.PSFont.2", "/NimbusRoman-Bold" },
++ { "Root.PSFont.3", "/NimbusRoman-BoldItalic" },
++ { "Root.PSFont.4", "/NimbusSans-Regular" },
++ { "Root.PSFont.5", "/NimbusSans-Italic" },
++ { "Root.PSFont.6", "/NimbusSans-Bold" },
++ { "Root.PSFont.7", "/NimbusSans-BoldItalic" },
++ { "Root.PSFont.8", "/NimbusMonoPS-Regular" },
++ { "Root.PSFont.9", "/NimbusMonoPS-Italic" },
++ { "Root.PSFont.10", "/NimbusMonoPS-Bold" },
++ { "Root.PSFont.11", "/NimbusMonoPS-BoldItalic" },
++ { "Root.PSFont.12", "/StandardSymbolsPS" },
++ { "Root.PSFont.13", "/NimbusRoman-Regular" },
++ { "Root.PSFont.14", "/D050000L" },
++ { "Root.PSFont.15", "/StandardSymbolsPS" },
{ "Root.PSFont.STIXGen", "/STIXGeneral" },
{ "Root.PSFont.STIXGenIt", "/STIXGeneral-Italic" },
{ "Root.PSFont.STIXGenBd", "/STIXGeneral-Bold" },
+diff --git a/graf3d/eve/src/TEveCaloLegoGL.cxx b/graf3d/eve/src/TEveCaloLegoGL.cxx
+index a8de43dffd6..3f8b9086769 100644
+--- a/graf3d/eve/src/TEveCaloLegoGL.cxx
++++ b/graf3d/eve/src/TEveCaloLegoGL.cxx
+@@ -1064,7 +1064,7 @@ void TEveCaloLegoGL::DrawCells2D(TGLRnrCtx &rnrCtx, vCell2D_t& cells2D) const
+ {
+ TGLUtil::Color(rnrCtx.ColorSet().Markup().GetColorIndex());
+ TGLFont font;
+- rnrCtx.RegisterFontNoScale(fM->fCellPixelFontSize, "arial", TGLFont::kPixmap, font);
++ rnrCtx.RegisterFontNoScale(fM->fCellPixelFontSize, TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, font);
+ const char* txt;
+ for (vCell2D_i i = cells2D.begin(); i != cells2D.end(); ++i) {
+
+diff --git a/graf3d/eve/src/TEveCaloLegoOverlay.cxx b/graf3d/eve/src/TEveCaloLegoOverlay.cxx
+index 41e4c970c20..95b3d09f19b 100644
+--- a/graf3d/eve/src/TEveCaloLegoOverlay.cxx
++++ b/graf3d/eve/src/TEveCaloLegoOverlay.cxx
+@@ -244,7 +244,7 @@ void TEveCaloLegoOverlay::RenderHeader(TGLRnrCtx& rnrCtx)
+
+ TGLFont font;
+ Int_t fs = TMath::Max(TMath::Nint(vp.Height()*0.035), 12);
+- rnrCtx.RegisterFontNoScale(fs, "arial", TGLFont::kPixmap, font);
++ rnrCtx.RegisterFontNoScale(fs, TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, font);
+ font.PreRender();
+ Float_t off = fs*0.2;
+ Float_t bb[6];
+@@ -444,10 +444,10 @@ void TEveCaloLegoOverlay::RenderLogaritmicScales(TGLRnrCtx& rnrCtx)
+ // draw numbers
+ TGLFont fontB;
+ Int_t fsb = TMath::Max(TMath::Nint(vp.Height()*0.03), 12);
+- rnrCtx.RegisterFontNoScale(fsb, "arial", TGLFont::kPixmap, fontB);
++ rnrCtx.RegisterFontNoScale(fsb, TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, fontB);
+ TGLFont fontE;
+ Int_t fsE = TMath::Max(TMath::Nint(vp.Height()*0.01), 8);
+- rnrCtx.RegisterFontNoScale(fsE, "arial", TGLFont::kPixmap, fontE);
++ rnrCtx.RegisterFontNoScale(fsE, TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, fontE);
+
+ Float_t llx, lly, llz, urx, ury, urz;
+ fontB.BBox("10", llx, lly, llz, urx, ury, urz);
+@@ -553,7 +553,7 @@ void TEveCaloLegoOverlay::RenderPaletteScales(TGLRnrCtx& rnrCtx)
+ TGLUtil::Color(rnrCtx.ColorSet().Markup().GetColorIndex());
+ fAxisPainter->RefDir().Set(0, 1, 0);
+ Int_t fs = TMath::CeilNint(rnrCtx.GetCamera()->RefViewport().Height()*0.02);
+- fAxisPainter->SetLabelFont(rnrCtx, "arial", fs);
++ fAxisPainter->SetLabelFont(rnrCtx, TGLFontManager::GetFontNameFromId(40), fs);
+ fAxisPainter->SetTextFormat(0, maxVal, bw);
+ fAxisPainter->SetLabelAlign(TGLFont::kCenterH, TGLFont::kCenterV);
+ TAttAxis att;
diff --git a/graf3d/gl/CMakeLists.txt b/graf3d/gl/CMakeLists.txt
index 7850fd46b9f..14782767b4c 100644
--- a/graf3d/gl/CMakeLists.txt
@@ -765,8 +843,64 @@ index 7850fd46b9f..14782767b4c 100644
DEPENDENCIES
Hist
Gui
+diff --git a/graf3d/gl/inc/TGLFontManager.h b/graf3d/gl/inc/TGLFontManager.h
+index 844230a305d..ae231906a13 100644
+--- a/graf3d/gl/inc/TGLFontManager.h
++++ b/graf3d/gl/inc/TGLFontManager.h
+@@ -140,8 +140,6 @@ protected:
+ FontList_t fFontTrash; // fonts to purge
+
+ static TObjArray fgFontFileArray; // map font-id to ttf-font-file
+- // Default fonts - for gl/eve, "extended" - for gl-pad
+- static Int_t fgExtendedFontStart;
+
+ static FontSizeVec_t fgFontSizeArray; // map of valid font-size
+ static Bool_t fgStaticInitDone; // global initialization flag
+@@ -158,7 +156,6 @@ public:
+ static TObjArray* GetFontFileArray();
+ static FontSizeVec_t* GetFontSizeArray();
+
+- static Int_t GetExtendedFontStartIndex();
+ static Int_t GetFontSize(Int_t ds);
+ static Int_t GetFontSize(Int_t ds, Int_t min, Int_t max);
+ static const char* GetFontNameFromId(Int_t);
+diff --git a/graf3d/gl/src/TGLAnnotation.cxx b/graf3d/gl/src/TGLAnnotation.cxx
+index 17dca37e47a..e02f76e1862 100644
+--- a/graf3d/gl/src/TGLAnnotation.cxx
++++ b/graf3d/gl/src/TGLAnnotation.cxx
+@@ -270,7 +270,7 @@ void TGLAnnotation::Render(TGLRnrCtx& rnrCtx)
+ {
+ // get unscaled text size
+ Int_t fs = TGLFontManager::GetFontSize(TMath::Nint(vp.Height()*fTextSize), 12, 64);
+- rnrCtx.RegisterFontNoScale(fs, "arial", TGLFont::kTexture, fFont);
++ rnrCtx.RegisterFontNoScale(fs, TGLFontManager::GetFontNameFromId(40), TGLFont::kTexture, fFont);
+ descent = fFont.GetDescent();
+ line_height = fFont.GetLineHeight();
+
+diff --git a/graf3d/gl/src/TGLCameraOverlay.cxx b/graf3d/gl/src/TGLCameraOverlay.cxx
+index 34bf409e536..4542110259b 100644
+--- a/graf3d/gl/src/TGLCameraOverlay.cxx
++++ b/graf3d/gl/src/TGLCameraOverlay.cxx
+@@ -130,7 +130,7 @@ void TGLCameraOverlay::RenderPlaneIntersect(TGLRnrCtx& rnrCtx)
+ TGLRect &vp = rnrCtx.GetCamera()->RefViewport();
+ TGLFont font;
+ Int_t fs = TMath::Nint(TMath::Sqrt(vp.Width()*vp.Width() + vp.Height()*vp.Height())*0.02);
+- rnrCtx.RegisterFontNoScale(fs, "arial", TGLFont::kPixmap, font);
++ rnrCtx.RegisterFontNoScale(fs, TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, font);
+ const char* txt = Form("(%f, %f, %f)", v[0], v[1], v[2]);
+ TGLUtil::Color(rnrCtx.ColorSet().Markup());
+ font.Render(txt, 0.98, 0.98, 0, TGLFont::kRight, TGLFont::kBottom);
+@@ -404,7 +404,7 @@ void TGLCameraOverlay::RenderBar(TGLRnrCtx& rnrCtx)
+ const char* txt = Form("%.*f", (exp < 0) ? -exp : 0, red);
+ Float_t bb[6];
+ TGLFont font;
+- rnrCtx.RegisterFont(12, "arial", TGLFont::kPixmap, font);
++ rnrCtx.RegisterFont(12, TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, font);
+ font.BBox(txt, bb[0], bb[1], bb[2], bb[3], bb[4], bb[5]);
+ TGLRect &vp = rnrCtx.GetCamera()->RefViewport();
+ Double_t mH = (fFrustum[3]-fFrustum[1])*bb[4]/vp.Height();
diff --git a/graf3d/gl/src/TGLFontManager.cxx b/graf3d/gl/src/TGLFontManager.cxx
-index e6f67b4f828..3671c132fd9 100644
+index e6f67b4f828..4f8b84aad0a 100644
--- a/graf3d/gl/src/TGLFontManager.cxx
+++ b/graf3d/gl/src/TGLFontManager.cxx
@@ -36,6 +36,8 @@
@@ -778,7 +912,15 @@ index e6f67b4f828..3671c132fd9 100644
namespace {
#ifdef HAVE_UTF8
// https://github.com/root-project/root/issues/22076#issuecomment-4342764706
-@@ -481,16 +483,120 @@ void TGLFontManager::RegisterFont(Int_t sizeIn, Int_t fileID, TGLFont::EMode mod
+@@ -450,7 +452,6 @@ This enables FTGL fonts to be shared same way as textures and display lists.
+
+
+ TObjArray TGLFontManager::fgFontFileArray;
+-Int_t TGLFontManager::fgExtendedFontStart;
+ TGLFontManager::FontSizeVec_t TGLFontManager::fgFontSizeArray;
+ Bool_t TGLFontManager::fgStaticInitDone = kFALSE;
+
+@@ -481,16 +482,22 @@ void TGLFontManager::RegisterFont(Int_t sizeIn, Int_t fileID, TGLFont::EMode mod
FontMap_i it = fFontMap.find(TGLFont(size, fileID, mode));
if (it == fFontMap.end())
{
@@ -791,112 +933,15 @@ index e6f67b4f828..3671c132fd9 100644
- ((TObjString*)fgFontFileArray[fileID])->String());
- file = fp;
- delete [] fp;
+- }
+ TString file;
+
-+ TString fontname = fileID < fgExtendedFontStart ?
-+ ((TObjString*)fgFontFileArray[fileID])->String() + ".ttf" :
-+ ((TObjString*)fgFontFileArray[fileID])->String();
++ TString fontname = ((TObjString*)fgFontFileArray[fileID])->String();
+
-+ FcPattern *pat = nullptr, *match;
++ FcPattern *pat, *match;
+ FcResult result;
+
-+ if (strcmp(fontname, "timesi.ttf") == 0 ||
-+ strcmp(fontname, "FreeSerifItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:italic");
-+ }
-+ else if (strcmp(fontname, "timesbd.ttf") == 0 ||
-+ strcmp(fontname, "FreeSerifBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:bold");
-+ }
-+ else if (strcmp(fontname, "timesbi.ttf") == 0 ||
-+ strcmp(fontname, "FreeSerifBoldItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif:bold:italic");
-+ }
-+ else if (strcmp(fontname, "arial.ttf") == 0 ||
-+ strcmp(fontname, "FreeSans.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans");
-+ }
-+ else if (strcmp(fontname, "ariali.ttf") == 0 ||
-+ strcmp(fontname, "FreeSansOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:italic");
-+ }
-+ else if (strcmp(fontname, "arialbd.ttf") == 0 ||
-+ strcmp(fontname, "FreeSansBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:bold");
-+ }
-+ else if (strcmp(fontname, "arialbi.ttf") == 0 ||
-+ strcmp(fontname, "FreeSansBoldOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freesans:bold:italic");
-+ }
-+ else if (strcmp(fontname, "cour.ttf") == 0 ||
-+ strcmp(fontname, "FreeMono.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono");
-+ }
-+ else if (strcmp(fontname, "couri.ttf") == 0 ||
-+ strcmp(fontname, "FreeMonoOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:italic");
-+ }
-+ else if (strcmp(fontname, "courbd.ttf") == 0 ||
-+ strcmp(fontname, "FreeMonoBold.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:bold");
-+ }
-+ else if (strcmp(fontname, "courbi.ttf") == 0 ||
-+ strcmp(fontname, "FreeMonoBoldOblique.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freemono:bold:italic");
-+ }
-+ else if (strcmp(fontname, "symbol.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "standardsymbolsps");
-+ }
-+ else if (strcmp(fontname, "times.ttf") == 0 ||
-+ strcmp(fontname, "FreeSerif.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "freeserif");
- }
-+ else if (strcmp(fontname, "wingding.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "dingbats");
-+ }
-+ else if (strcmp(fontname, "STIXGeneral.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixgeneral");
-+ }
-+ else if (strcmp(fontname, "STIXGeneralItalic.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixgeneral:italic");
-+ }
-+ else if (strcmp(fontname, "STIXGeneralBol.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixgeneral:bold");
-+ }
-+ else if (strcmp(fontname, "STIXGeneralBolIta.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixgeneral:bold:italic");
-+ }
-+ else if (strcmp(fontname, "STIXSiz1Sym.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize1");
-+ }
-+ else if (strcmp(fontname, "STIXSiz1SymBol.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize1:bold");
-+ }
-+ else if (strcmp(fontname, "STIXSiz2Sym.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize2");
-+ }
-+ else if (strcmp(fontname, "STIXSiz2SymBol.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize2:bold");
-+ }
-+ else if (strcmp(fontname, "STIXSiz3Sym.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize3");
-+ }
-+ else if (strcmp(fontname, "STIXSiz3SymBol.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize3:bold");
-+ }
-+ else if (strcmp(fontname, "STIXSiz4Sym.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize4");
-+ }
-+ else if (strcmp(fontname, "STIXSiz4SymBol.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize4:bold");
-+ }
-+ else if (strcmp(fontname, "STIXSiz5Sym.otf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "stixsize5");
-+ }
-+ else if (strcmp(fontname, "DroidSansFallback.ttf") == 0) {
-+ pat = FcNameParse ((const FcChar8*) "droidsansfallback:charset=4e00 0410");
-+ }
-+
++ pat = FcNameParse ((const FcChar8*) fontname.Data());
+ FcConfigSubstitute (nullptr, pat, FcMatchPattern);
+ FcDefaultSubstitute (pat);
+ match = FcFontMatch (nullptr, pat, &result);
@@ -908,8 +953,178 @@ index e6f67b4f828..3671c132fd9 100644
FTFont* ftfont = 0;
switch (mode)
+@@ -595,17 +602,6 @@ TGLFontManager::FontSizeVec_t* TGLFontManager::GetFontSizeArray()
+ return &fgFontSizeArray;
+ }
+
+-////////////////////////////////////////////////////////////////////////////////
+-
+-Int_t TGLFontManager::GetExtendedFontStartIndex()
+-{
+- if (fgStaticInitDone == kFALSE) InitStatics();
+-
+- assert(fgExtendedFontStart > 0 && "GetExtendedFontStartIndex, invalid index");
+-
+- return fgExtendedFontStart;
+-}
+-
+ ////////////////////////////////////////////////////////////////////////////////
+ /// Get availabe font size.
+
+@@ -639,8 +635,8 @@ const char* TGLFontManager::GetFontNameFromId(Int_t id)
+
+ Int_t fontIndex = id / 10;
+
+- if (fontIndex > fgFontFileArray.GetEntries() || !fontIndex)
+- fontIndex = 5;//arialbd
++ if (fontIndex > fgFontFileArray.GetEntries() || fontIndex < 1)
++ fontIndex = 5; // nimbussans:bold
+ else
+ fontIndex -= 1;
+
+@@ -653,66 +649,44 @@ const char* TGLFontManager::GetFontNameFromId(Int_t id)
+
+ void TGLFontManager::InitStatics()
+ {
+- fgFontFileArray.Add(new TObjString("timesi")); // 10
+- fgFontFileArray.Add(new TObjString("timesbd")); // 20
+- fgFontFileArray.Add(new TObjString("timesbi")); // 30
+-
+- fgFontFileArray.Add(new TObjString("arial")); // 40
+- fgFontFileArray.Add(new TObjString("ariali")); // 50
+- fgFontFileArray.Add(new TObjString("arialbd")); // 60
+- fgFontFileArray.Add(new TObjString("arialbi")); // 70
+-
+- fgFontFileArray.Add(new TObjString("cour")); // 80
+- fgFontFileArray.Add(new TObjString("couri")); // 90
+- fgFontFileArray.Add(new TObjString("courbd")); // 100
+- fgFontFileArray.Add(new TObjString("courbi")); // 110
+-
+- fgFontFileArray.Add(new TObjString("symbol")); // 120
+- fgFontFileArray.Add(new TObjString("times")); // 130
+- fgFontFileArray.Add(new TObjString("wingding")); // 140
+- fgFontFileArray.Add(new TObjString("symbol")); // 150
+-
+- fgExtendedFontStart = fgFontFileArray.GetEntries();
+- //"Extended" fonts for gl-pad.
+- //fgPadFontStart + ...
+- fgFontFileArray.Add(new TObjString("FreeSerifItalic.otf")); // 10 (160)
+- fgFontFileArray.Add(new TObjString("FreeSerifBold.otf")); // 20 (170)
+- fgFontFileArray.Add(new TObjString("FreeSerifBoldItalic.otf")); // 30
+-
+- fgFontFileArray.Add(new TObjString("FreeSans.otf")); // 40
+- fgFontFileArray.Add(new TObjString("FreeSansOblique.otf")); // 50
+- fgFontFileArray.Add(new TObjString("FreeSansBold.otf")); // 60
+- fgFontFileArray.Add(new TObjString("FreeSansBoldOblique.otf")); // 70
+-
+- fgFontFileArray.Add(new TObjString("FreeMono.otf")); // 80
+- fgFontFileArray.Add(new TObjString("FreeMonoOblique.otf")); // 90
+- fgFontFileArray.Add(new TObjString("FreeMonoBold.otf")); // 100
+- fgFontFileArray.Add(new TObjString("FreeMonoBoldOblique.otf")); // 110
+-
+- fgFontFileArray.Add(new TObjString("symbol.ttf")); // 120
+- fgFontFileArray.Add(new TObjString("FreeSerif.otf")); // 130
+- fgFontFileArray.Add(new TObjString("wingding.ttf")); // 140
+- fgFontFileArray.Add(new TObjString("symbol.ttf")); // 150
+-
+- fgFontFileArray.Add(new TObjString("STIXGeneral.otf")); // 200
+- fgFontFileArray.Add(new TObjString("STIXGeneralItalic.otf")); // 210
+- fgFontFileArray.Add(new TObjString("STIXGeneralBol.otf")); // 220
+- fgFontFileArray.Add(new TObjString("STIXGeneralBolIta.otf")); // 230
+-
+- fgFontFileArray.Add(new TObjString("STIXSiz1Sym.otf")); // 240
+- fgFontFileArray.Add(new TObjString("STIXSiz1SymBol.otf")); // 250
+- fgFontFileArray.Add(new TObjString("STIXSiz2Sym.otf")); // 260
+- fgFontFileArray.Add(new TObjString("STIXSiz2SymBol.otf")); // 270
+-
+- fgFontFileArray.Add(new TObjString("STIXSiz3Sym.otf")); // 280
+- fgFontFileArray.Add(new TObjString("STIXSiz3SymBol.otf")); // 290
+- fgFontFileArray.Add(new TObjString("STIXSiz4Sym.otf")); // 300
+- fgFontFileArray.Add(new TObjString("STIXSiz4SymBol.otf")); // 310
+-
+- fgFontFileArray.Add(new TObjString("STIXSiz5Sym.otf")); // 320
+- fgFontFileArray.Add(new TObjString("DroidSansFallback.ttf")); // 330
+- fgFontFileArray.Add(new TObjString("DroidSansFallback.ttf")); // 340
+- fgFontFileArray.Add(new TObjString("DroidSansFallback.ttf")); // 350
++ fgFontFileArray.Add(new TObjString("nimbusroman:italic")); // 10
++ fgFontFileArray.Add(new TObjString("nimbusroman:bold")); // 20
++ fgFontFileArray.Add(new TObjString("nimbusroman:bold:italic")); // 30
++
++ fgFontFileArray.Add(new TObjString("nimbussans")); // 40
++ fgFontFileArray.Add(new TObjString("nimbussans:italic")); // 50
++ fgFontFileArray.Add(new TObjString("nimbussans:bold")); // 60
++ fgFontFileArray.Add(new TObjString("nimbussans:bold:italic")); // 70
++
++ fgFontFileArray.Add(new TObjString("nimbusmonops")); // 80
++ fgFontFileArray.Add(new TObjString("nimbusmonops:italic")); // 90
++ fgFontFileArray.Add(new TObjString("nimbusmonops:bold")); // 100
++ fgFontFileArray.Add(new TObjString("nimbusmonops:bold:italic")); // 110
++
++ fgFontFileArray.Add(new TObjString("standardsymbolsps")); // 120
++ fgFontFileArray.Add(new TObjString("nimbusroman")); // 130
++ fgFontFileArray.Add(new TObjString("d050000l")); // 140
++ fgFontFileArray.Add(new TObjString("standardsymbolsps")); // 150
++
++ fgFontFileArray.Add(new TObjString("stixgeneral")); // 160
++ fgFontFileArray.Add(new TObjString("tixgeneral:italic")); // 170
++ fgFontFileArray.Add(new TObjString("stixgeneral:bold")); // 180
++ fgFontFileArray.Add(new TObjString("stixgeneral:bold:italic")); // 190
++
++ fgFontFileArray.Add(new TObjString("stixsize1")); // 200
++ fgFontFileArray.Add(new TObjString("stixsize1:bold")); // 210
++ fgFontFileArray.Add(new TObjString("stixsize2")); // 220
++ fgFontFileArray.Add(new TObjString("stixsize2:bold")); // 230
++
++ fgFontFileArray.Add(new TObjString("stixsize3")); // 240
++ fgFontFileArray.Add(new TObjString("stixsize3:bold")); // 250
++ fgFontFileArray.Add(new TObjString("stixsize4")); // 260
++ fgFontFileArray.Add(new TObjString("stixsize4:bold")); // 270
++
++ fgFontFileArray.Add(new TObjString("stixsize5")); // 280
++ fgFontFileArray.Add(new TObjString("droidsansfallback")); // 290
++ fgFontFileArray.Add(new TObjString("droidsansfallback")); // 300
++ fgFontFileArray.Add(new TObjString("droidsansfallback")); // 310
+
+ for (Int_t i = 10; i <= 20; i+=2)
+ fgFontSizeArray.push_back(i);
+diff --git a/graf3d/gl/src/TGLOverlayButton.cxx b/graf3d/gl/src/TGLOverlayButton.cxx
+index 92fffd76fe3..6bcc0b7a701 100644
+--- a/graf3d/gl/src/TGLOverlayButton.cxx
++++ b/graf3d/gl/src/TGLOverlayButton.cxx
+@@ -111,7 +111,7 @@ void TGLOverlayButton::Render(TGLRnrCtx& rnrCtx)
+
+ // Text rendering
+ {
+- rnrCtx.RegisterFontNoScale(TMath::Nint(fHeight*0.8), "arial", TGLFont::kPixmap, fFont);
++ rnrCtx.RegisterFontNoScale(TMath::Nint(fHeight*0.8), TGLFontManager::GetFontNameFromId(40), TGLFont::kPixmap, fFont);
+ fFont.PreRender(kFALSE);
+
+ TColor::Pixel2RGB(fTextColor, r, g, b);
+diff --git a/graf3d/gl/src/TGLPadPainter.cxx b/graf3d/gl/src/TGLPadPainter.cxx
+index bb88b8b0861..745a8ada9e5 100644
+--- a/graf3d/gl/src/TGLPadPainter.cxx
++++ b/graf3d/gl/src/TGLPadPainter.cxx
+@@ -807,17 +807,7 @@ void TGLPadPainter::DrawTextHelper(Double_t x, Double_t y, const Char *text, ETe
+ Rgl::Pad::ExtractRGBA(GetAttText().GetTextColor(), rgba);
+ glColor4fv(rgba);
+
+- //10 is the first valid font index.
+- //20 is FreeSerifBold, as in TTF.cxx and in TGLFontManager.cxx.
+- //shift - is the shift to access "extended" fonts.
+- const Int_t shift = TGLFontManager::GetExtendedFontStartIndex();
+-
+- Int_t fontIndex = TMath::Max(Short_t(10), GetAttText().GetTextFont());
+- if (fontIndex / 10 + shift > TGLFontManager::GetFontFileArray()->GetEntries())
+- fontIndex = 20 + shift * 10;
+- else
+- fontIndex += shift * 10;
+-
++ Int_t fontIndex = GetAttText().GetTextFont();
+ fF.SetTextAlign(GetAttText().GetTextAlign());
+
+ fFM.RegisterFont(TMath::Max(Int_t(GetAttText().GetTextSize()) - 1, 10),//kTexture does not work if size < 10.
diff --git a/graf3d/gl/src/TGLText.cxx b/graf3d/gl/src/TGLText.cxx
-index 2ed3ee0917a..03feb0ee0a4 100644
+index 2ed3ee0917a..9866db06e7b 100644
--- a/graf3d/gl/src/TGLText.cxx
+++ b/graf3d/gl/src/TGLText.cxx
@@ -32,6 +32,8 @@
@@ -947,21 +1162,21 @@ index 2ed3ee0917a..03feb0ee0a4 100644
- TROOT::GetTTFFontDir());
- char *ttfont = gSystem->Which(ttpath, fontname, kReadPermission);
+ static const char *fonttable[] = {
-+ "freesans:bold",
-+ "freeserif:italic",
-+ "freeserif:bold",
-+ "freeserif:bold:italic",
-+ "freesans",
-+ "freesans:italic",
-+ "freesans:bold",
-+ "freesans:bold:italic",
-+ "freemono",
-+ "freemono:italic",
-+ "freemono:bold",
-+ "freemono:bold:italic",
++ "nimbussans:bold",
++ "nimbusroman:italic",
++ "nimbusroman:bold",
++ "nimbusroman:bold:italic",
++ "nimbussans",
++ "nimbussans:italic",
++ "nimbussans:bold",
++ "nimbussans:bold:italic",
++ "nimbusmonops",
++ "nimbusmonops:italic",
++ "nimbusmonops:bold",
++ "nimbusmonops:bold:italic",
+ "standardsymbolsps",
-+ "freeserif",
-+ "dingbats",
++ "nimbusroman",
++ "d050000l",
+ };
+
+ char *ttfont;
@@ -990,5 +1205,5 @@ index 2ed3ee0917a..03feb0ee0a4 100644
- delete [] ttfont;
}
--
-2.54.0
+2.56.0
diff --git a/root.spec b/root.spec
index d2e49a6..2e6f9ed 100644
--- a/root.spec
+++ b/root.spec
@@ -40,7 +40,7 @@
Name: root
Version: 6.40.04
%global libversion %(cut -d. -f 1-2 <<< %{version})
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Numerical data analysis framework
License: LGPL-2.1-or-later
@@ -96,6 +96,8 @@ Patch12: %{name}-tree-df-Do-not-fail-test-on-32-bit-due-to-mis-aligne.patch
Patch13: %{name}-tree-nt-Compare-size-to-the-size-of-the-struct.patch
# https://github.com/root-project/root/pull/23188
Patch14: %{name}-pdf-Fix-calculation-of-kerning-distances-in-generate.patch
+# Use the normal text fonts for cyrillic in TMathText
+Patch15: %{name}-Use-the-normal-text-font-for-cyrillic.patch
BuildRequires: gcc-c++
BuildRequires: gcc-gfortran
@@ -185,9 +187,9 @@ BuildRequires: perl-generators
BuildRequires: gtest-devel
BuildRequires: gmock-devel
# Fonts
-BuildRequires: font(freesans)
-BuildRequires: font(freeserif)
-BuildRequires: font(freemono)
+BuildRequires: font(nimbussans)
+BuildRequires: font(nimbusroman)
+BuildRequires: font(nimbusmonops)
BuildRequires: font(standardsymbolsps)
BuildRequires: font(d050000l)
BuildRequires: font(z003)
@@ -303,9 +305,9 @@ Requires: json-devel >= 3.9
%endif
# Fonts
Requires: xorg-x11-fonts-ISO8859-1-75dpi
-Requires: font(freesans)
-Requires: font(freeserif)
-Requires: font(freemono)
+Requires: font(nimbussans)
+Requires: font(nimbusroman)
+Requires: font(nimbusmonops)
Requires: font(standardsymbolsps)
Requires: font(d050000l)
Requires: font(z003)
@@ -498,6 +500,7 @@ This package contains a genetic minimizer module for ROOT.
%package geom
Summary: Geometry library for ROOT
Requires: %{name}-core%{?_isa} = %{version}-%{release}
+Requires: %{name}-genvector%{?_isa} = %{version}-%{release}
Requires: %{name}-io%{?_isa} = %{version}-%{release}
Requires: %{name}-mathcore%{?_isa} = %{version}-%{release}
# Package split (geom-builder and geom-painter from geom)
@@ -1946,6 +1949,7 @@ This package contains a library for histogramming in ROOT 7.
%patch -P12 -p1
%patch -P13 -p1
%patch -P14 -p1
+%patch -P15 -p1
# Remove bundled sources in order to be sure they are not used
# * ftgl
@@ -3541,6 +3545,11 @@ fi
%endif
%changelog
+* Wed Oct 14 2026 Mattias Ellert <mattias.ellert@physics.uu.se> - 6.40.04-4
+- Rebuild for pythia8 8.3.18
+- Use the URW fonts (Nimbus Roman/Sans/Mono) for text for consistency
+- Use the normal text fonts for cyrillic in TMathText
+
* Tue Sep 22 2026 Orion Poplawski <orion@nwra.com> - 6.40.04-3
- Rebuild for libarrow 25
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-16 9:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-16 9:06 [rpms/root] epel9: Rebuild for pythia8 8.3.18 Mattias Ellert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox