helpFree UCS Outline Fonts - Support: sr #108527, Optionally allow simultaneous font...


sr #108527: Optionally allow simultaneous font installation in different formats

Submitted by:  -Deleted Account- <lrn>
Submitted on:  Mon 10 Mar 2014 03:08:36 AM UTC  
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  In Progress
Privacy:  Public Assigned to:  Steve White <Stevan_White>
Open/Closed:  Open Operating System:  Microsoft Windows

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 11 Mar 2014 12:46:58 PM UTC, comment #4:

> Regarding subpixel aliasing of cubic-spline fonts in Windows,
> that is indeed my observation -- although I have no idea why
> this is the case.

Because MS is lazy? :)

Anyway, i'm attaching a new version of the patch, it puts "<format> r<revision>" after font name, but before font style (such as "Oblique"), if any.

How are you going to close this bug?

By the way may need to be closed as well. proves that this seems to be inherent problem of quadratic splines, because OTF cubic-spline variant doesn't have this bug, even though both OTF and TTF are rendered with freetype2 (so it's not W32-renderer-specific). That, or it's because of hinting and/or autohinting (there are comments and code related to hinting and auto-hinting; if you think these may affect rendering, i'll try to make these adjustable and factor them into font naming, so that i can see the effect first-hand).

(file #30856)

-Deleted Account- <lrn>
Tue 11 Mar 2014 09:26:01 AM UTC, comment #3:

Regarding subpixel aliasing of cubic-spline fonts in Windows, that is indeed my observation -- although I have no idea why this is the case.

Thanks for the diff! While I still don't plan to integrate that into a release, it's good to have it available in case someone wants to do something similar.

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Tue 11 Mar 2014 08:10:39 AM UTC, comment #2:

What i meant in the last paragraph is that W32 renderer can't do subpixel antialiasing for fonts that use cubic splines, and all OTF fonts started to use cubic splines at some point.

Anyway, here's the patch that i came up with (after a few tries i ended up modifying not just font name, but its family name).
Also, using internal svn-derived font version didn't work out that well, because then you get mismatched variants of the same font (normal font is r2906, bold is r2910, this is very confusing), so i've used svn info to get the repo version and stuck that everywhere instead.

As a result, here are some screenshots that i was able to make:

W32 renderer:

Freetype2 renderer:

(both W32 and Freetype2 renderers use the same Pango + GTK+-2.x + GDK-2.x stack; if used with GTK+-3.x, it would have been Pango + GTK+-3.x + cairo; fontconfig configuration is default + lcdfilter=lcddefault)

So right now i'm using OTF fonts in Firefox (it doesn't use W32 renderer, AFAIU, so it can deal with cubic splines just fine), and i can still use quadratic-splined TTF ones in programs that use W32 renderer.

(file #30855)

-Deleted Account- <lrn>
Mon 10 Mar 2014 07:03:38 PM UTC, comment #1:

Hi, LRN,

If you want to do this, and you're a programmer, it shouldn't be hard. You can try editing the Python scripts tools/generate/OpenType and TrueType. Check out the FontForge site for documentation on Python scripting. Just change the font names and family names as you like (I think that should do it).

It seems to me yours is a very special need, so I have my doubts about implementing a switch in the general build files... it should suffice that the scripts can be altered.

I'm not sure I understand your last paragraph completely. Either of the OT or TT packages works on Winodows. However, the Windows font rasterizer works far better with quadratic than with cubic splines, so we recommend installing on Windows the TTF package, which are built with quadratic splines.

Let us know how it goes!

Steve White <Stevan_White>
Project AdministratorIn charge of this item.
Mon 10 Mar 2014 03:08:36 AM UTC, original submission:

Right now freefonts in all three formats have the same name (say, FreeMono). Even though files have different extensions, it's not possible to install, say, TTF and OTF fonts at the same time (at least on W32).

I'd like to be able to set some kind of configure flag (patching the makefile manually would work for me too) at compile time to produce fonts in different formats that have different names (different enough for font manager to not to confuse them), and be able to install them side-by-side.

This, obviously, won't do any good for webpages and documents, which require specific font by name, and which will get the "vanilla" flavor. But for other cases (using different fonts in themes, forcing web browsers to use a particular font, etc) this is useful, at least for testing.

Since freefonts changed the splines used in TTF/OTF, OTF fonts with cubic splines were presumed to be useless on W32, but recently i was able to make GTK+ applications (such as Pidgin) work with FreeType2 font renderer, which DOES support cubic splines, and i'd like to have an opportunity to test and, eventually, use OTF fonts.

-Deleted Account- <lrn>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

Attached Files
file #30856:  separate2.diff added by lrn (4KiB - application/octet-stream - Allows optional generation of format- and version-specific fontnames (v2, insert format/version after the name, before the style))
file #30855:  separate.diff added by lrn (4KiB - application/octet-stream - Allows optional generation of format- and version-specific fontnames)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by Stevan_White (Posted a comment)
  • -email is unavailable- added by lrn (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-03-11 lrn Attached File- => Added separate2.diff, #30856
    2014-03-11 lrn Attached File- => Added separate.diff, #30855
    2014-03-10 Stevan_White StatusNone => In Progress
        Assigned toNone => Stevan_White

    Back to the top

    Powered by Savane 3.3