Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 337944

Summary: Characters in Wizard title (bold font) do not render correctly
Product: [Eclipse Project] Platform Reporter: onebug
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: eclipse.felipe, paul-eclipse, remy.suen
Version: 3.6.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows Server 2003   
Whiteboard: stalebug
Attachments:
Description Flags
Screenshot showing the difference between Windows Server 2003 and Windows XP none

Description onebug CLA 2011-02-23 04:35:09 EST
Build Identifier: 3.6.1

On Windows Server 2003, the attached code will not display the Wizard title correctly. The subtitle, using the same text, will display fine.

On Windows XP, there is no issue.

import org.eclipse.jface.wizard.Wizard;
import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;

public class WizardTitle {

  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display);

    Wizard wizard = new Wizard() {

      {
        addPage(new WizardPage("page name") {
          
          public void createControl(Composite parent) {
            setControl(new Label(parent, SWT.NONE));
            setTitle("[\u0153\u00ff\u00c7r\u00e9\u00e0t\u00e9 S\u00e7h\u00e9m\u00e0]");
            setDescription("[\u0153\u00ff\u00c7r\u00e9\u00e0t\u00e9 S\u00e7h\u00e9m\u00e0]");
          }
        });
      }
      @Override
      public boolean performFinish() {
        // TODO Auto-generated method stub
        return false;
      }
    };
    wizard.setWindowTitle("Window title");
    WizardDialog dialog = new WizardDialog(shell, wizard);
    dialog.setTitle("Title");
    dialog.setBlockOnOpen(true);
    dialog.setPageSize(300, 300);
    dialog.open();
  }
} 

Reproducible: Always

Steps to Reproduce:
1. Run the attached sample code
Comment 1 onebug CLA 2011-02-23 04:42:26 EST
Created attachment 189580 [details]
Screenshot showing the difference between Windows Server 2003 and Windows XP
Comment 2 Felipe Heidrich CLA 2011-02-23 09:34:32 EST
(In reply to comment #1)
> Created attachment 189580 [details]
> Screenshot showing the difference between Windows Server 2003 and Windows XP

Does your windows server 2003 have the fonts necessary to render that text ?
Comment 3 Remy Suen CLA 2011-02-23 17:02:01 EST
Is this related to bug 311037?
Comment 4 onebug CLA 2011-05-02 02:59:51 EDT
(In reply to comment #2)
> (In reply to comment #1)
> > Created attachment 189580 [details] [details]
> > Screenshot showing the difference between Windows Server 2003 and Windows XP
> 
> Does your windows server 2003 have the fonts necessary to render that text ?

Yes.
Comment 5 Felipe Heidrich CLA 2011-05-02 10:10:45 EDT
The screenshot in comment 1 is not the screenshot of running the snippet in comment 0, right ?
can you please provide the screenshot of the snippet running on the windows server 2003 machine ?

The screenshot looks like a encoding problem not a font problem.
I noticed also that you are running Eclipse 3.6.1, have you tested with Eclipse 3.7 ?
Thank you
Comment 6 Lars Vogel CLA 2019-11-14 02:19:10 EST
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.

If you have further information on the current state of the bug, please add it. 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.

If the bug is still relevant, please remove the "stalebug" whiteboard tag.
Comment 7 Paul Pazderski CLA 2019-11-14 13:25:14 EST
Works on Windows 7 and 10. Other versions are not supported anymore.