This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new d62f2f2be1 Draw the text of the HTML, PDF, number, internet address 
and AS400 icons as paths, fixes #9553 (#9554)
d62f2f2be1 is described below

commit d62f2f2be1a9ffefd3123459932187547c0a0fc8
Author: Nicolas Adment <[email protected]>
AuthorDate: Wed Nov 18 09:40:38 2026 +0100

    Draw the text of the HTML, PDF, number, internet address and AS400 icons as 
paths, fixes #9553 (#9554)
    
    Rendering a <text> element makes Batik scan every installed font. The
    Explorer did this on the UI thread at startup for the HTML and PDF icons.
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 core/src/main/resources/images/inet.svg                     | 11 +----------
 core/src/main/resources/images/number.svg                   |  6 ++----
 plugins/databases/as400/src/main/resources/as400command.svg | 11 +----------
 ui/src/main/resources/ui/images/html.svg                    |  2 +-
 ui/src/main/resources/ui/images/pdf.svg                     |  4 ++--
 5 files changed, 7 insertions(+), 27 deletions(-)

diff --git a/core/src/main/resources/images/inet.svg 
b/core/src/main/resources/images/inet.svg
index 54a465d4fe..e0c608a5cf 100644
--- a/core/src/main/resources/images/inet.svg
+++ b/core/src/main/resources/images/inet.svg
@@ -1,13 +1,4 @@
 <?xml version="1.0" encoding="UTF-8" standalone="no"?>
 <svg xmlns="http://www.w3.org/2000/svg"; width="32" height="32">
-    <text
-            
style="font-style:normal;font-weight:normal;font-size:33.9339px;line-height:0%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#0e3a5a;fill-opacity:1;stroke:none;stroke-width:12.2622;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
-            x="2.3534081"
-            y="27.22002">
-        <tspan
-                x="2.3534081"
-                y="27.22002"
-                
style="font-style:italic;font-variant:normal;font-weight:normal;font-stretch:normal;font-family:'Trebuchet
 
MS';;fill:#0e3a5a;fill-opacity:1;stroke-width:14.7854;stroke-miterlimit:4;stroke-dasharray:none"
-        >@</tspan>
-    </text>
+    <path fill="#0e3a5a" d="M17.744,21.345Q17.307,22.064 
16.166,22.626Q15.041,23.189 14.01,23.189Q12.228,23.189 
11.135,22.204Q10.057,21.22 10.057,19.439Q10.057,16.392 
12.197,14.033Q14.338,11.658 17.307,11.658Q18.338,11.658 
18.947,11.814Q19.572,11.97 21.353,12.72Q19.994,18.72 
19.994,19.564Q19.994,21.251 21.353,21.251Q23.307,21.251 
24.4,19.236Q25.494,17.22 25.494,14.47Q25.494,11.22 23.432,9.267Q21.385,7.298 
18.103,7.298Q13.322,7.298 10.041,11.048Q6.76,14.783 6.76,19.814Q6.76,23.392 
8.853,2 [...]
 </svg>
diff --git a/core/src/main/resources/images/number.svg 
b/core/src/main/resources/images/number.svg
index 5701a4403e..7ad2917b2e 100644
--- a/core/src/main/resources/images/number.svg
+++ b/core/src/main/resources/images/number.svg
@@ -1,6 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <svg xmlns="http://www.w3.org/2000/svg"; height="42" width="42">
-    <text font-family="sans-serif" fill="#0e3a5a">
-        <tspan y="35" x="10" font-size="38">#</tspan>
-    </text>
-</svg>
\ No newline at end of file
+    <path fill="#0e3a5a" 
d="M11.906,35.469L13.531,27.563L10.391,27.563L10.391,24.797L14.078,24.797L15.453,18.063L10.391,18.063L10.391,15.297L16.016,15.297L17.625,7.328L20.406,7.328L18.797,15.297L24.641,15.297L26.25,7.328L29.063,7.328L27.438,15.297L30.656,15.297L30.656,18.063L26.891,18.063L25.5,24.797L30.656,24.797L30.656,27.563L24.938,27.563L23.328,35.469L20.547,35.469L22.141,27.563L16.313,27.563L14.688,35.469L11.906,35.469ZM16.859,24.797L22.688,24.797L24.078,18.063L18.234,18.063L16.859,
 [...]
+</svg>
diff --git a/plugins/databases/as400/src/main/resources/as400command.svg 
b/plugins/databases/as400/src/main/resources/as400command.svg
index 37439c915a..0c3a764bc8 100644
--- a/plugins/databases/as400/src/main/resources/as400command.svg
+++ b/plugins/databases/as400/src/main/resources/as400command.svg
@@ -39,16 +39,7 @@
             style="fill:#3d6480"
             points="15.823,22.902 18.785,25.865 9.198,25.865 9.198,27.064 
18.841,27.064 15.827,30.024 16.668,30.879 21.123,26.505 16.671,22.054 "
     />
-    <text
-            
style="font-style:normal;font-weight:normal;font-size:8.90772343px;line-height:125%;font-family:sans-serif;letter-spacing:0px;word-spacing:0px;fill:#3d6480;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
-            x="10.030137"
-            y="42.958237"
-            transform="scale(1.122718,0.89069561)">
-        <tspan
-                x="10.030137"
-                y="42.958237">IBM
-        </tspan>
-    </text>
+    <path fill="#3d6480" transform="scale(1.122718,0.89069561)" 
d="M10.862,42.958L10.862,36.582L11.706,36.582L11.706,42.958L10.862,42.958ZM13.157,42.958L13.157,36.582L15.55,36.582Q16.28,36.582
 16.721,36.776Q17.165,36.968 17.414,37.371Q17.663,37.774 
17.663,38.212Q17.663,38.62 17.44,38.983Q17.22,39.342 16.773,39.566Q17.35,39.734 
17.661,40.143Q17.974,40.552 17.974,41.108Q17.974,41.558 
17.782,41.943Q17.594,42.326 17.316,42.535Q17.037,42.744 
16.617,42.851Q16.199,42.958 15.59,42.958L13.157,42. [...]
     <path
             style="fill:#3d6480"
             d="m 12.465576,17.506712 c 0.02,-0.375 -0.003,-0.755 -0.071,-1.138 
l 1.308,-0.956 -0.177,-0.464 c -0.078,-0.205 -0.171,-0.4 -0.268,-0.596 l 
-0.228,-0.455 -1.553,0.355 c -0.104,-0.132 -0.224,-0.264 -0.347,-0.396 
-0.142,-0.152 -0.278,-0.288 -0.433,-0.421 l 0.383,-1.557 -0.432,-0.242 c 
-0.198,-0.11 -0.397,-0.209 -0.604,-0.298 l -0.4690001,-0.203 -0.952,1.265 c 
-0.364,-0.084 -0.7399996,-0.126 -1.1189996,-0.127 l -0.711,-1.435 -0.48,0.086 c 
-0.22,0.039 -0.441,0.085 -0.656,0.148 l  [...]
diff --git a/ui/src/main/resources/ui/images/html.svg 
b/ui/src/main/resources/ui/images/html.svg
index 80db07309f..9cd7cb306c 100644
--- a/ui/src/main/resources/ui/images/html.svg
+++ b/ui/src/main/resources/ui/images/html.svg
@@ -5,5 +5,5 @@
   <!-- Document outline and fold -->
   <path fill="#D35400" 
d="M34.477,6.429h-4.029V2.583L27.745,0H3.921v42h33.257V9.008L34.477,6.429z 
M12.097,2.565h15.665v6.432h6.729v30.436H6.608V2.565h3.591"/>
   <!-- HTML text -->
-  <text x="21" y="26" font-family="Arial, sans-serif" font-size="7" 
font-weight="bold" fill="#FFFFFF" text-anchor="middle">HTML</text>
+  <path fill="#FFFFFF" 
d="M11.797,26L11.797,20.984L12.812,20.984L12.812,22.969L14.781,22.969L14.781,20.984L15.797,20.984L15.797,26L14.781,26L14.781,23.813L12.812,23.813L12.812,26L11.797,26ZM17.977,26L17.977,21.844L16.492,21.844L16.492,20.984L20.461,20.984L20.461,21.844L18.992,21.844L18.992,26L17.977,26ZM21.112,26L21.112,20.984L22.628,20.984L23.534,24.406L24.425,20.984L25.94,20.984L25.94,26L25.003,26L25.003,22.063L24.018,26L23.034,26L22.05,22.063L22.05,26L21.112,26ZM26.974,26L26.974,21.03
 [...]
 </svg>
diff --git a/ui/src/main/resources/ui/images/pdf.svg 
b/ui/src/main/resources/ui/images/pdf.svg
index 688ea3333b..986f28cd42 100644
--- a/ui/src/main/resources/ui/images/pdf.svg
+++ b/ui/src/main/resources/ui/images/pdf.svg
@@ -4,6 +4,6 @@
   <path fill="#E74C3C" d="M6.608,2.564v36.867H34.49V8.996h-6.729V2.564"/>
   <!-- Document outline and fold -->
   <path fill="#C0392B" 
d="M34.477,6.429h-4.029V2.583L27.745,0H3.921v42h33.257V9.008L34.477,6.429z 
M12.097,2.565h15.665v6.432h6.729v30.436H6.608V2.565h3.591"/>
-  <!-- PDF text -->
-  <text x="21" y="28" font-family="Arial, sans-serif" font-size="10" 
font-weight="bold" fill="#FFFFFF" text-anchor="middle">PDF</text>
+  <!-- PDF text (converted to paths so rendering does not need system fonts) 
-->
+  <path fill="#FFFFFF" d="M11.734,28L11.734,20.844L14.047,20.844Q15.359,20.844 
15.766,20.953Q16.375,21.109 16.797,21.656Q17.219,22.188 
17.219,23.047Q17.219,23.703 16.969,24.156Q16.734,24.594 16.359,24.859Q16,25.109 
15.609,25.203Q15.094,25.297 
14.109,25.297L13.172,25.297L13.172,28L11.734,28ZM13.172,22.047L13.172,24.078L13.969,24.078Q14.813,24.078
 15.094,23.969Q15.391,23.859 15.547,23.625Q15.719,23.375 
15.719,23.063Q15.719,22.672 15.484,22.422Q15.266,22.172 
14.906,22.094Q14.656,22.047 13.8 [...]
 </svg>

Reply via email to