Ticket #510 (new enhancement)

Opened 4 years ago

Last modified 22 months ago

Font system requires a rework

Reported by: prock Owned by: FIFE
Priority: high Milestone: 0.3.5
Component: engine/core Version: trunk
Severity: normal Keywords:
Cc: Blocked By: #504
Blocking: Time planned:
Time remaining: Time spent:

Description (last modified by prock) (diff)

The way Font's are handled in FIFE requires a bit of a rework. We need to standardize the font definition and allow users to use fonts throughout FIFE the same way. An interface needs to be designed to allow for an easy conversion from FIFE::Font to gcn::Font. This will also allow us to add support for other GUI systems without being dependent on guichan specifically. This might be an opportunity to begin the decoupling process of FIFE and guichan/pychan.


  • Fonts MUST use the VFS to be loaded. Currently they are loaded from the filesystem.
  • The font definition file should be loaded from C++ and NOT from python.
  • Fonts should be handled like a resource and stored in a pool

TODO regarding fonts from the pychan documentation:

  • Handle Image Fonts
  • Move Font config files to XML

Change History

comment:1 Changed 4 years ago by prock

  • Description modified (diff)

comment:2 Changed 4 years ago by prock

  • Priority changed from normal to high
  • Description modified (diff)

comment:3 Changed 4 years ago by prock

  • Description modified (diff)

comment:4 Changed 4 years ago by prock

Also see ticket #302

comment:5 Changed 4 years ago by prock

  • Blocked By 504 added

comment:6 Changed 3 years ago by prock

  • Milestone changed from 0.3.3 to 0.3.4

This is related to the guichan stuff so I'm moving this to 0.3.4

comment:7 Changed 3 years ago by helios2000

Over at UH, we have performance problems with certain languages. Check  UH#1341 including comments for more details.

A fellow project also saw similar issues and seems to have resolved them. Linked in above comments.

<o01eg> What about using wide characters instead multibyte? Does FIFE support it?

comment:8 Changed 3 years ago by prock

My last commit made me think of this ticket (see r3838). In pychan's internal.py file you have functions that all refer to fonts but they are not all using the same font datatype. This ticket should address this problem.

comment:9 Changed 2 years ago by prock

Also see #572.

comment:10 Changed 22 months ago by prock

  • Milestone changed from 0.3.4 to 0.3.5

Moving to 0.3.5 as we are preparing to release 0.3.4

Note: See TracTickets for help on using tickets.