Need a registry for cairo fonts on win32 (instead of the horrible hack that's in there now)

Bug #333610 reported by blackdaemon
2
Affects Status Importance Assigned to Milestone
Enso Project
In Progress
Low
blackdaemon

Bug Description

 Reported by ebjono, Mar 21, 2008

Currently on win32, enso/graphics/font.py uses a hard-coded path to the
Arial font file as an argument to cairo.

This is bad. Not only is Arial a horribly ugly font, but this is win32
specific code in the core and it's a hard-coded path which may be incorrect
on some systems.

What we really want is a mini font registry in the win32 implementation of
cairo. Then the Enso core can simply always pass a font name into cairo
and the win32 implementation of cairo can use the font registry to look up
the path to the font file.

Also, the font that Enso uses should be specified in the config file.

Revision history for this message
blackdaemon (blackdaemon) wrote :

Comment 2 by varmaa, Mar 24, 2008

Guillaume said on IRC that it's in Cairo's plans for their next release to allow
custom font registration, so we may want to look into whether any of this is
implemented yet, or if we can help implement it.

It may also be useful to use the same mechanism on OSX, as it could potentially cut
its dependency on fontconfig, making cairo easier to compile and package statically
with Enso.

Revision history for this message
blackdaemon (blackdaemon) wrote :

Comment 3 by varmaa, Mar 24, 2008

Because of its potential relevance to OSX, I've added the OSX label to this issue.

Revision history for this message
blackdaemon (blackdaemon) wrote :

Comment 4 by ixcemix, Mar 24, 2008

The Cairo roadmap (http://cairographics.org/roadmap/) states that this is planned for
1.8, planned for at best November 2008, and there doesn't seem to be much available
yet for User Fonts, sadly.

Changed in enso:
assignee: nobody → blackdaemon
importance: Undecided → Low
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.