Bug 537388 - font style ignored whit label decorations
Summary: font style ignored whit label decorations
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2018-07-25 11:52 EDT by Norbert Lange CLA
Modified: 2021-03-26 13:53 EDT (History)
1 user (show)

See Also:


Attachments
screenshot illustrating the issue (70.12 KB, image/png)
2018-07-25 11:52 EDT, Norbert Lange CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Norbert Lange CLA 2018-07-25 11:52:15 EDT
Created attachment 275130 [details]
screenshot illustrating the issue

Hello,

in an effort to tidy up unused space I edited some css file, so that widgets can receive the font settings from the "Part title font".
It kinda worked, but funny things will happen together with label decorations.

Some decorations will ignore the font, and use a system default.
My changes are following


diff -burN a/e4_basestyle.css b/e4_basestyle.css
--- a/e4_basestyle.css	2018-04-30 12:47:16.000000000 +0200
+++ b/e4_basestyle.css	2018-07-25 15:05:42.767292448 +0200
@@ -129,7 +129,7 @@
 	font-weight: bold;
 }

-.MPartStack, .MPart {
+.MPartStack, .MPart, .MToolBar, Composite, Label, Button, Table, Tree, Text, Control, TaskScalingHyperlink {
 	font-family: '#org-eclipse-ui-workbench-TAB_TEXT_FONT';
 }

@@ -144,7 +144,9 @@
 	swt-outer-keyline-color: '#org-eclipse-ui-workbench-INACTIVE_TAB_OUTER_KEYLINE_COLOR';
 	swt-inner-keyline-color: '#org-eclipse-ui-workbench-INACTIVE_TAB_INNER_KEYLINE_COLOR';
 	swt-tab-outline: '#org-eclipse-ui-workbench-INACTIVE_TAB_OUTLINE_COLOR';
-	padding: 0px 2px 2px;
+	swt-corner-radius: 6;
+	swt-tab-height: 22px;
+	padding: 0px;
 	swt-shadow-visible: false;
 	swt-mru-visible: false;
 	color: '#org-eclipse-ui-workbench-INACTIVE_TAB_TEXT_COLOR';

------------------------------

My system is Debian buster x64:

*** Date: Wednesday, July 25, 2018 at 5:49:07 PM Central European Summer Time

*** Platform Details:

*** System properties:
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi
awt.toolkit=sun.awt.X11.XToolkit
ds.delayed.keepInstances=true
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.buildId=4.8.0.I20180611-0500
eclipse.commands=-os
linux
-ws
gtk
-arch
x86_64
-showsplash
/tmp/eclipse//plugins/org.eclipse.epp.package.common_4.8.0.20180619-1200/splash.bmp
-launcher
/tmp/eclipse/eclipse
-name
Eclipse
--launcher.library
/tmp/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200/eclipse_1705.so
-startup
/tmp/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
--launcher.appendVmargs
-exitdata
4f8004
-product
org.eclipse.epp.package.cpp.product
-vm
/usr/bin/java
eclipse.home.location=file:/tmp/eclipse/
eclipse.launcher=/tmp/eclipse/eclipse
eclipse.launcher.name=Eclipse
eclipse.p2.data.area=@config.dir/../p2/
eclipse.p2.profile=epp.package.cpp
eclipse.product=org.eclipse.epp.package.cpp.product
eclipse.startTime=1532533191685
eclipse.stateSaveDelayInterval=30000
eclipse.vm=/usr/bin/java
eclipse.vmargs=-Dosgi.requiredJavaVersion=1.8
-Dosgi.instance.area.default=@user.home/eclipse-workspace
-XX:+UseG1GC
-XX:+UseStringDeduplication
--add-modules=ALL-SYSTEM
-Dosgi.requiredJavaVersion=1.8
-Dosgi.dataAreaRequiresExplicitInit=true
-Xms256m
-Xmx860m
--add-modules=ALL-SYSTEM
-jar
/tmp/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
equinox.init.uuid=true
equinox.use.ds=true
file.encoding=UTF-8
file.encoding.pkg=sun.io
file.separator=/
gosh.args=--nointeractive
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.awt.printerjob=sun.print.PSPrinterJob
java.class.path=/tmp/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
java.class.version=54.0
java.home=/usr/lib/jvm/java-10-openjdk-amd64
java.io.tmpdir=/tmp
java.library.path=/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
java.runtime.name=OpenJDK Runtime Environment
java.runtime.version=10.0.2+13-Debian-1
java.specification.name=Java Platform API Specification
java.specification.vendor=Oracle Corporation
java.specification.version=10
java.vendor=Oracle Corporation
java.vendor.url=http://java.oracle.com/
java.vendor.url.bug=http://bugreport.java.com/bugreport/
java.version=10.0.2
java.version.date=2018-07-17
java.vm.compressedOopsMode=32-bit
java.vm.info=mixed mode
java.vm.name=OpenJDK 64-Bit Server VM
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Oracle Corporation
java.vm.specification.version=10
java.vm.vendor=Oracle Corporation
java.vm.version=10.0.2+13-Debian-1
jdk.debug=release
line.separator=

org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
org.eclipse.debug.ui.breakpoints.toggleFactoriesUsed=true
org.eclipse.equinox.launcher.splash.location=/tmp/eclipse//plugins/org.eclipse.epp.package.common_4.8.0.20180619-1200/splash.bmp
org.eclipse.equinox.simpleconfigurator.configUrl=file:org.eclipse.equinox.simpleconfigurator/bundles.info
org.eclipse.swt.internal.deviceZoom=100
org.eclipse.swt.internal.gdk.backend=x11
org.eclipse.swt.internal.gtk.theme=Adwaita-dark
org.eclipse.swt.internal.gtk.version=3.22.30
org.osgi.framework.executionenvironment=OSGi/Minimum-1.0, OSGi/Minimum-1.1, OSGi/Minimum-1.2, JavaSE/compact1-1.8, JavaSE/compact2-1.8, JavaSE/compact3-1.8, JRE-1.1, J2SE-1.2, J2SE-1.3, J2SE-1.4, J2SE-1.5, JavaSE-1.6, JavaSE-1.7, JavaSE-1.8, JavaSE-9, JavaSE-10
org.osgi.framework.language=en
org.osgi.framework.os.name=Linux
org.osgi.framework.os.version=4.17.0
org.osgi.framework.processor=x86-64
org.osgi.framework.storage=/tmp/eclipse/configuration
org.osgi.framework.system.capabilities=osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0, 1.1, 1.2", osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0, 1.1", osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 9.0, 10.0",osgi.ee; osgi.ee="JavaSE/compact1"; version:List<Version>="1.8, 9.0, 10.0",osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8, 9.0, 10.0",osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8, 9.0, 10.0"
org.osgi.framework.system.packages=com.sun.jarsigner, com.sun.java.accessibility.util, com.sun.javadoc, com.sun.jdi, com.sun.jdi.connect, com.sun.jdi.connect.spi, com.sun.jdi.event, com.sun.jdi.request, com.sun.management, com.sun.net.httpserver, com.sun.net.httpserver.spi, com.sun.nio.file, com.sun.nio.sctp, com.sun.security.auth, com.sun.security.auth.callback, com.sun.security.auth.login, com.sun.security.auth.module, com.sun.security.jgss, com.sun.source.doctree, com.sun.source.tree, com.sun.source.util, com.sun.tools.attach, com.sun.tools.attach.spi, com.sun.tools.javac, com.sun.tools.javadoc, com.sun.tools.jconsole, java.applet, java.awt, java.awt.color, java.awt.datatransfer, java.awt.desktop, java.awt.dnd, java.awt.event, java.awt.font, java.awt.geom, java.awt.im, java.awt.im.spi, java.awt.image, java.awt.image.renderable, java.awt.print, java.beans, java.beans.beancontext, java.io, java.lang, java.lang.annotation, java.lang.instrument, java.lang.invoke, java.lang.management, java.lang.module, java.lang.ref, java.lang.reflect, java.math, java.net, java.net.spi, java.nio, java.nio.channels, java.nio.channels.spi, java.nio.charset, java.nio.charset.spi, java.nio.file, java.nio.file.attribute, java.nio.file.spi, java.rmi, java.rmi.activation, java.rmi.dgc, java.rmi.registry, java.rmi.server, java.security, java.security.acl, java.security.cert, java.security.interfaces, java.security.spec, java.sql, java.text, java.text.spi, java.time, java.time.chrono, java.time.format, java.time.temporal, java.time.zone, java.util, java.util.concurrent, java.util.concurrent.atomic, java.util.concurrent.locks, java.util.function, java.util.jar, java.util.logging, java.util.prefs, java.util.regex, java.util.spi, java.util.stream, java.util.zip, javax.accessibility, javax.activation, javax.activity, javax.annotation, javax.annotation.processing, javax.crypto, javax.crypto.interfaces, javax.crypto.spec, javax.imageio, javax.imageio.event, javax.imageio.metadata, javax.imageio.plugins.bmp, javax.imageio.plugins.jpeg, javax.imageio.plugins.tiff, javax.imageio.spi, javax.imageio.stream, javax.jws, javax.jws.soap, javax.lang.model, javax.lang.model.element, javax.lang.model.type, javax.lang.model.util, javax.management, javax.management.loading, javax.management.modelmbean, javax.management.monitor, javax.management.openmbean, javax.management.relation, javax.management.remote, javax.management.remote.rmi, javax.management.timer, javax.naming, javax.naming.directory, javax.naming.event, javax.naming.ldap, javax.naming.spi, javax.net, javax.net.ssl, javax.print, javax.print.attribute, javax.print.attribute.standard, javax.print.event, javax.rmi, javax.rmi.CORBA, javax.rmi.ssl, javax.script, javax.security.auth, javax.security.auth.callback, javax.security.auth.kerberos, javax.security.auth.login, javax.security.auth.spi, javax.security.auth.x500, javax.security.cert, javax.security.sasl, javax.smartcardio, javax.sound.midi, javax.sound.midi.spi, javax.sound.sampled, javax.sound.sampled.spi, javax.sql, javax.sql.rowset, javax.sql.rowset.serial, javax.sql.rowset.spi, javax.swing, javax.swing.border, javax.swing.colorchooser, javax.swing.event, javax.swing.filechooser, javax.swing.plaf, javax.swing.plaf.basic, javax.swing.plaf.metal, javax.swing.plaf.multi, javax.swing.plaf.nimbus, javax.swing.plaf.synth, javax.swing.table, javax.swing.text, javax.swing.text.html, javax.swing.text.html.parser, javax.swing.text.rtf, javax.swing.tree, javax.swing.undo, javax.tools, javax.transaction, javax.transaction.xa, javax.xml, javax.xml.bind, javax.xml.bind.annotation, javax.xml.bind.annotation.adapters, javax.xml.bind.attachment, javax.xml.bind.helpers, javax.xml.bind.util, javax.xml.catalog, javax.xml.crypto, javax.xml.crypto.dom, javax.xml.crypto.dsig, javax.xml.crypto.dsig.dom, javax.xml.crypto.dsig.keyinfo, javax.xml.crypto.dsig.spec, javax.xml.datatype, javax.xml.namespace, javax.xml.parsers, javax.xml.soap, javax.xml.stream, javax.xml.stream.events, javax.xml.stream.util, javax.xml.transform, javax.xml.transform.dom, javax.xml.transform.sax, javax.xml.transform.stax, javax.xml.transform.stream, javax.xml.validation, javax.xml.ws, javax.xml.ws.handler, javax.xml.ws.handler.soap, javax.xml.ws.http, javax.xml.ws.soap, javax.xml.ws.spi, javax.xml.ws.spi.http, javax.xml.ws.wsaddressing, javax.xml.xpath, jdk.dynalink, jdk.dynalink.beans, jdk.dynalink.linker, jdk.dynalink.linker.support, jdk.dynalink.support, jdk.incubator.http, jdk.javadoc.doclet, jdk.jshell, jdk.jshell.execution, jdk.jshell.spi, jdk.jshell.tool, jdk.nashorn.api.scripting, jdk.nashorn.api.tree, jdk.net, jdk.security.jarsigner, netscape.javascript, org.ietf.jgss, org.omg.CORBA, org.omg.CORBA.DynAnyPackage, org.omg.CORBA.ORBPackage, org.omg.CORBA.TypeCodePackage, org.omg.CORBA.portable, org.omg.CORBA_2_3, org.omg.CORBA_2_3.portable, org.omg.CosNaming, org.omg.CosNaming.NamingContextExtPackage, org.omg.CosNaming.NamingContextPackage, org.omg.Dynamic, org.omg.DynamicAny, org.omg.DynamicAny.DynAnyFactoryPackage, org.omg.DynamicAny.DynAnyPackage, org.omg.IOP, org.omg.IOP.CodecFactoryPackage, org.omg.IOP.CodecPackage, org.omg.Messaging, org.omg.PortableInterceptor, org.omg.PortableInterceptor.ORBInitInfoPackage, org.omg.PortableServer, org.omg.PortableServer.CurrentPackage, org.omg.PortableServer.POAManagerPackage, org.omg.PortableServer.POAPackage, org.omg.PortableServer.ServantLocatorPackage, org.omg.PortableServer.portable, org.omg.SendingContext, org.omg.stub.java.rmi, org.w3c.dom, org.w3c.dom.bootstrap, org.w3c.dom.css, org.w3c.dom.events, org.w3c.dom.html, org.w3c.dom.ls, org.w3c.dom.ranges, org.w3c.dom.stylesheets, org.w3c.dom.traversal, org.w3c.dom.views, org.w3c.dom.xpath, org.xml.sax, org.xml.sax.ext, org.xml.sax.helpers, sun.misc, sun.reflect
org.osgi.framework.uuid=5c4d4e7e-c7a4-47ee-a4fc-f527656c6a3e
org.osgi.framework.vendor=Eclipse
org.osgi.framework.version=1.9.0
org.osgi.supports.framework.extension=true
org.osgi.supports.framework.fragment=true
org.osgi.supports.framework.requirebundle=true
os.arch=amd64
os.name=Linux
os.version=4.17.0-1-amd64
osgi.arch=x86_64
osgi.bundles=reference:file:org.eclipse.osgi.compatibility.state_1.1.100.v20180331-1743.jar,reference:file:org.eclipse.equinox.simpleconfigurator_1.3.0.v20180502-1828.jar@1:start
osgi.bundles.defaultStartLevel=4
osgi.compatibility.bootdelegation=true
osgi.compatibility.bootdelegation.default=true
osgi.configuration.area=file:/tmp/eclipse/configuration/
osgi.dataAreaRequiresExplicitInit=true
osgi.framework=file:/tmp/eclipse/plugins/org.eclipse.osgi_3.13.0.v20180409-1500.jar
osgi.framework.extensions=reference:file:org.eclipse.osgi.compatibility.state_1.1.100.v20180331-1743.jar
osgi.framework.shape=jar
osgi.framework.useSystemProperties=true
osgi.frameworkClassPath=., file:/tmp/eclipse/plugins/org.eclipse.osgi.compatibility.state_1.1.100.v20180331-1743.jar
osgi.install.area=file:/tmp/eclipse/
osgi.instance.area=file:/tmp/ws/
osgi.instance.area.default=file:/home/lano/eclipse-workspace/
osgi.logfile=/tmp/ws/.metadata/.log
osgi.nl=en_US
osgi.os=linux
osgi.requiredJavaVersion=1.8
osgi.splashLocation=/tmp/eclipse//plugins/org.eclipse.epp.package.common_4.8.0.20180619-1200/splash.bmp
osgi.splashPath=platform:/base/plugins/org.eclipse.platform
osgi.syspath=/tmp/eclipse/plugins
osgi.tracefile=/tmp/ws/.metadata/trace.log
osgi.ws=gtk
path.separator=:
sun.arch.data.model=64
sun.boot.library.path=/usr/lib/jvm/java-10-openjdk-amd64/lib
sun.cpu.endian=little
sun.cpu.isalist=
sun.desktop=gnome
sun.io.unicode.encoding=UnicodeLittle
sun.java.command=/tmp/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar -os linux -ws gtk -arch x86_64 -showsplash /tmp/eclipse//plugins/org.eclipse.epp.package.common_4.8.0.20180619-1200/splash.bmp -launcher /tmp/eclipse/eclipse -name Eclipse --launcher.library /tmp/eclipse//plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.700.v20180518-1200/eclipse_1705.so -startup /tmp/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar --launcher.appendVmargs -exitdata 4f8004 -product org.eclipse.epp.package.cpp.product -vm /usr/bin/java -vmargs -Dosgi.requiredJavaVersion=1.8 -Dosgi.instance.area.default=@user.home/eclipse-workspace -XX:+UseG1GC -XX:+UseStringDeduplication --add-modules=ALL-SYSTEM -Dosgi.requiredJavaVersion=1.8 -Dosgi.dataAreaRequiresExplicitInit=true -Xms256m -Xmx860m --add-modules=ALL-SYSTEM -jar /tmp/eclipse//plugins/org.eclipse.equinox.launcher_1.5.0.v20180512-1130.jar
sun.java.launcher=SUN_STANDARD
sun.jnu.encoding=UTF-8
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
sun.os.patch.level=unknown
user.country=US
user.dir=/tmp/eclipse
user.home=/home/lano
user.language=en
user.name=lano
user.timezone=Europe/Vienna

*** System environment variables:
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus,guid=984cb23c8727dcdd621495125b58887a
DBUS_STARTER_ADDRESS=unix:path=/run/user/1000/bus,guid=984cb23c8727dcdd621495125b58887a
DBUS_STARTER_BUS_TYPE=session
DESKTOP_SESSION=default
DISPLAY=:0
GDK_CORE_DEVICE_EVENTS=1
GDMSESSION=default
GDM_LANG=en_US.UTF-8
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
GTK_MODULES=gail:atk-bridge
HOME=/home/lano
INVOCATION_ID=653ac2e1f45f44acb79c36f3a6441fc3
JOURNAL_STREAM=9:30993
LANG=en_US.UTF-8
LANGUAGE=en_US:en
LIBOVERLAY_SCROLLBAR=0
LOGNAME=lano
MANAGERPID=1920
OXYGEN_DISABLE_INNER_SHADOWS_HACK=1
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
PWD=/home/lano
QT_ACCESSIBILITY=1
SESSION_MANAGER=local/lano-work:@/tmp/.ICE-unix/1948,unix/lano-work:/tmp/.ICE-unix/1948
SHELL=/bin/bash
SSH_AGENT_PID=1993
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
USER=lano
USERNAME=lano
WINDOWPATH=2
XAUTHORITY=/run/user/1000/gdm/Xauthority
XDG_CURRENT_DESKTOP=GNOME
XDG_DATA_DIRS=/usr/share/gnome:/home/lano/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/
XDG_MENU_PREFIX=gnome-
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT=seat0
XDG_SESSION_DESKTOP=default
XDG_SESSION_ID=3
XDG_SESSION_TYPE=x11
XDG_VTNR=2
Comment 1 Lars Vogel CLA 2019-04-05 04:14:22 EDT
Thanks Norbert. Could you turn this into a unit test? org.eclipse.e4.ui.tests.css.swt from the eclipse.platform.ui repo would be IMHO the place to add it.
Comment 2 Norbert Lange CLA 2019-04-05 05:58:33 EDT
(In reply to Lars Vogel from comment #1)
> Thanks Norbert. Could you turn this into a unit test?
> org.eclipse.e4.ui.tests.css.swt from the eclipse.platform.ui repo would be
> IMHO the place to add it.

Sorry, I am universally incompetent with:

-   Eclipse internals.
-   Java unit tests.
-   Unit tests involving styling of the UI.
Comment 3 Eclipse Genie CLA 2021-03-26 13:53:47 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. As such, we're closing this bug.

If you have further information on the current state of the bug, please add it and reopen this bug. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.