RedNotebook - A Desktop Journal

Add font selection option for preview (was "RN should not be using Ubuntu typeface by default")

Reported by Trung Ngô on 2012-03-22
34
This bug affects 5 people
Affects Status Importance Assigned to Milestone
RedNotebook
Medium
Unassigned

Bug Description

The Ubuntu font family is a relatively new typeface. As such, it doesn't support as many languages/scripts as other established typefaces like Arial Unicode MS.

Below is a screen shot of my session in preview mode. Ubuntu does not have characters for proper Vietnamese and Japanese and the result is quite unpredictable and undesirable.

Trung Ngô (ndtrung4419) wrote :
Jendrik Seipp (jendrikseipp) wrote :

Thanks for the report! Currently RedNotebook does the following for the export:

body {
        font-family: Ubuntu, Helvetica, Arial, sans-serif;
    }

What would you recommend instead?

Trung Ngô (ndtrung4419) wrote :

In my tests, Arial gives the best result while others such as Lucida Grand render Japanese as blank blocks (probably a Webkit or fontconfig problem :-?)

IMHO, a font selection option in preferences should be the best way to solve this.

Arial screen shot
http://ubuntuone.com/68uuB6d0xMCLHX7fisQ2XE

Lucida Grand screen shot
http://ubuntuone.com/2Kcxpb1kCoUZSH7vIc8o30

Jendrik Seipp (jendrikseipp) wrote :

I agree, a font option would be nice.

Changed in rednotebook:
status: New → Confirmed
importance: Undecided → High
Trung Ngô (ndtrung4419) wrote :

More testing reveals that the font rendering problem (blank blocks) is only presented in RN preview mode and not when the exported html is opened with Chromium or Firefox. I think you should take a look at the rendering engine.

Also, as far as the font substitution concerns, DejaVu Sans is an adequate substitution for Ubuntu whenever there is a missing character as the two are almost indistinguishable at a glance. Therefore, this font line should do nicely: "font-family: Ubuntu, DejaVu Sans, Arial, sans-serif;".

summary: - RN should not be using Ubuntu typeface by default
+ Add font selection option (was "RN should not be using Ubuntu typeface
+ by default")

Can you provide a screenshot with this font line : "font-family: Ubuntu, DejaVu Sans, Arial, sans-serif;"?

Unfortunately I cannot change the rendering engine (webkit), probably this error happens in other browsers that use vanilla webkit as well (e.g. midori), if not, this is a RedNotebook bug.

summary: - Add font selection option (was "RN should not be using Ubuntu typeface
- by default")
+ Add font selection option for preview (was "RN should not be using
+ Ubuntu typeface by default")
Trung Ngô (ndtrung4419) wrote :

You guess it right. The font rendering in midori is identical to RN. The Ubuntu/Dejavu combination irons out visual inconsistency for missing characters but the Japanese font is still not substituted properly.

Here is the same page as in the previous comment rendered in RN and midori with that font line.

RN:
http://ubuntuone.com/1Qs8GKJSMINftWERg80ElY
Midori:
http://ubuntuone.com/3z2yrbGGiJM2eBNsPTnBaL

Thanks for investigating.

Am 22.03.2012 17:13, schrieb Ngô Chin:
> the Japanese font is still not substituted properly
so this means Japanese fonts will only be displayed correctly if
"Ubuntu" is removed from the font line?

Trung Ngô (ndtrung4419) on 2012-03-23
description: updated
Jendrik Seipp (jendrikseipp) wrote :

Let me ask again: so this means Japanese fonts will only be displayed correctly if "Ubuntu" is removed from the font line?

Changed in rednotebook:
importance: High → Medium
Jendrik Seipp (jendrikseipp) wrote :

This has been added to the development version and will be released soon.

Changed in rednotebook:
status: Confirmed → Fix Committed
Jendrik Seipp (jendrikseipp) wrote :

It would be great if you could test the new feature. Grab the newest development code (https://answers.launchpad.net/rednotebook/+faq/1925), run RedNotebook and change the preview font in the preferences. Does it work as expected?

Jendrik Seipp (jendrikseipp) wrote :

This has been added in version 1.8

Changed in rednotebook:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers