Problem displaying special characters in Java operation

Post here questions and problems related to oXygen frameworks/document types.
fhorn
Posts: 18

Problem displaying special characters in Java operation

Wed Sep 23, 2015 5:28 pm

Hello,

in our project we use the Java operation InsertRegisterAttributeOperation
(https://github.com/telota/ediarum/wiki/ ... -operation) for an action in
our framework, the Java operation is part of ediarum.jar.

The operation is used to open a dialogue where the user can select an
entry from an index file. I discovered the problem that some special
characters were not displayed correctly in the select list, they were
replaced with a square.

Here are some examples ł (ł), ğ (ğ) and Ḳ (Ḳ).

The characters are displayed correctly in editor, in author as well as
text mode. I set a font able to render the special characters in the
"Font preferences" (Arial and Tahoma).

This might be a rather specific question and of course, the Java operations
from the archive ediarum.jar weren't developd by the oXygen team. Maybe you
have some hints?

Regards
Franziska
Radu
Posts: 5873

Re: Problem displaying special characters in Java operation

Wed Sep 23, 2015 5:39 pm

Hi Franziska,

You should probably try to set a certain font also on the List used to show the entries in the dialog.
Someting like:

Code: Select all

list.setFont(new Font("Arial", Font.PLAIN, 12))


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
fhorn
Posts: 18

Re: Problem displaying special characters in Java operation

Wed Sep 23, 2015 6:04 pm

Hello Radu,

thank you very much for your quick response,
we will try that out.

Regards
Franziska

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests