Modify

Ticket #1 (closed patch (an actual patch, not a request for one): fixed)

Opened 4 years ago

Last modified 21 months ago

Add font rendering and UTF-8 support

Reported by: muggenhor Owned by: nobody
Priority: normal Milestone:
Component: Engine: Graphics Version: git/master
Keywords: Cc:
Blocked By: Blocking:
Operating System: All/Non-Specific

Description

This patch adds font rendering and UTF-8 support. It is kind of old though. It applies to r2375.

Attachments

wz-fonttest.patch (34.7 KB) - added by muggenhor 4 years ago.
wz-fonttest-b.patch (35.7 KB) - added by muggenhor 4 years ago.
A newer version of the patch that applies to r2471
wz-fonttest-c.patch (14.4 KB) - added by muggenhor 4 years ago.
This version of the patch doesn't add UTF-8 handling to WZ's codebase. Instead it defers this to (Queso)GLC. This patch applies to r2490.
wz-fonttest-d.patch (54.5 KB) - added by muggenhor 4 years ago.
This version of the patch completely swaps the previous interface of source:trunk/lib/ivis_common/textdraw.h with a new interface. This applies to r2520.
wz-fonttest-buildsystems.patch (4.5 KB) - added by muggenhor 4 years ago.
This patch adds QuesoGLC to all buildsystems except for the XCode project and the "wscript" file.

Change History

Changed 4 years ago by muggenhor

Changed 4 years ago by muggenhor

A newer version of the patch that applies to r2471

comment:1 Changed 4 years ago by muggenhor

This last patch (attachment:wz-fonttest-c.patch) doesn't use UTF-8 in Warzone's codebase. It is also a lot more recent (applies to r2481).

Changed 4 years ago by muggenhor

This version of the patch doesn't add UTF-8 handling to WZ's codebase. Instead it defers this to (Queso)GLC. This patch applies to r2490.

Changed 4 years ago by muggenhor

This version of the patch completely swaps the previous interface of source:trunk/lib/ivis_common/textdraw.h with a new interface. This applies to r2520.

Changed 4 years ago by muggenhor

This patch adds QuesoGLC to all buildsystems except for the XCode project and the "wscript" file.

comment:5 Changed 4 years ago by Giel

(In [2521]) * Add font rendering and UTF-8 support through usage of QuesoGLC (an OpenGLC implementation);

  • This _will_ require you to install http://quesoglc.sourceforge.net/ on your system to be able to compile (windows binaries are provided on the sourceforge download page as well; just dump them in wz's devpackage directory for now)
  • Currently the font render code is hard-coded to select two fonts: DejaVu Sans Mono regular style (aka "Book") or bold style; if you're package manager doesn't provide these fonts (Debian and derivatives have "ttf-dejavu"), you can get them from http://dejavu.sourceforge.net/

This closes #1 (https://trac.mortis.eu/warzone/ticket/1 I dumped/maintained my patch there)

comment:2 Changed 4 years ago by muggenhor

  • Status changed from new to closed
  • Resolution set to fixed

(In [2521]) * Add font rendering and UTF-8 support through usage of QuesoGLC (an OpenGLC implementation);

  • This _will_ require you to install http://quesoglc.sourceforge.net/ on your system to be able to compile (windows binaries are provided on the sourceforge download page as well; just dump them in wz's devpackage directory for now)
  • Currently the font render code is hard-coded to select two fonts: DejaVu Sans Mono regular style (aka "Book") or bold style; if you're package manager doesn't provide these fonts (Debian and derivatives have "ttf-dejavu"), you can get them from http://dejavu.sourceforge.net/

This closes #1 (https://trac.mortis.eu/warzone/ticket/1 I dumped/maintained my patch there)

comment:3 Changed 4 years ago by pabs3@…

The GLC requirement and causes warzone to be unacceptably slow (intel graphics card), even in the startup menus. Is there any chance of allowing it to choose the text renderer (disable GLC) from a command-line option?

comment:4 Changed 4 years ago by Giel

  • Operating System set to None
  • Milestone set to 2.1

comment:5 Changed 21 months ago by Buginator

  • Milestone 2.1 deleted

Milestone 2.1 deleted

View

Add a comment

Provide an email address (will not be publicly visible) in the Author field or register an account (uses your forum account).

Modify Ticket

Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.