Tilde glyph not visible on print

Oxygen general issues.
Seb
Posts: 23
Joined: Mon Feb 20, 2017 8:03 pm

Tilde glyph not visible on print

Post by Seb »

Consider this document:

Code: Select all

<?xml-stylesheet href="#s1" type="text/css"?>
<doc>
<s id="s1">
s {
display: none;
}
p {
display: block;
}
tilde {
content: "∼";
font-style: italic;
}
</s>
<p><tilde/></p>
</doc>
When I open it in Author Mode, I can see the tilde glyph in the <p> element. But when I print this from Author Mode, the print contains a font fallback box glyph instead of the tilde glyph.
Can you reproduce this? Is this a bug?

I'm using latest oXygen 19 on Windows 10.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Tilde glyph not visible on print

Post by Radu »

Hi,

So you are using our File->Print action, right?
From what I remember on Windows 10 you can choose as a printer also the "Microsoft print to PDF".
If you print to PDF is the symbol visible in the PDF?
If after this you print the PDF to the printer, is the symbol visible on the printed paper?

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Seb
Posts: 23
Joined: Mon Feb 20, 2017 8:03 pm

Re: Tilde glyph not visible on print

Post by Seb »

Yes, I'm using File->Print.

It doesn't matter if I'm using "Microsoft Print to PDF" or a real printer. There's always the fallback box glyph, even in the PDF.

Please note, that the tilde I'm using is Unicode char U+223C.
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Tilde glyph not visible on print

Post by Radu »

Hi,

A problem with your original document is that the Oxygen Author visual editing mode does not support having a CSS href the content of some element located in the same XML file.
Does the same example you gave me work for you? Did you add extra Java-based customizations in order for it to work?
If not, please send some sample XML + CSS set of resources (via email for example to support@oxygenxml.com).

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: Tilde glyph not visible on print

Post by Radu »

Hi,

Updating this thread with the conversation we had via email.
So if the XML is like this:

Code: Select all

<doc>
<p><tilde/></p>
</doc>
and the CSS like this:

Code: Select all

        p {
display: block;
}
tilde {
content: "∼";
font-style: italic;
}
I can reproduce the problem and it seems related to the "font-style: italic;" which is set in the CSS.
By default, as the CSS does not specify a certain font family Oxygen uses a logical font called "Serif", this works when rendering the content but somehow the printing does not work with the same font for certain characters.
I will add an issue on our side but I'm not sure if we can control this in any way.
As a workaround if you set a specific font family in the CSS:

Code: Select all

tilde {
content: "\00223C";
font-style: italic;
font-family:OpenSymbol;
}
the printing seems to work. Printing also works if you remove the italic font family property.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply