fancho29 / garglk

Automatically exported from code.google.com/p/garglk
Other
0 stars 0 forks source link

find and load fonts from program or game directory #143

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. try to play Aotearoa without the LinuxLibertine font installed. 

What is the expected output? What do you see instead?

Polynesian characters should be displayed. Instead, question marks are 
displayed.

What version of the product are you using? On what operating system?

2010.1 windows zip file

Please provide any additional information below.

Gargoyle's new font loading directives (propfont, monofont) require the font to 
be installed in a system location. The installer packages can satisfy this 
requirement automatically, but the zip file cannot. It is distributed without 
the Linux Libertine font and with a modified garglk.ini that uses the older 
fonts. Ideally the library could still find and load fonts by name if they were 
placed in either the program directory or the game directory, but this adds 
another layer of complexity to the process and is not currently implemented. 

Original issue reported on code.google.com by gloom...@gmail.com on 13 Mar 2011 at 3:10

GoogleCodeExporter commented 8 years ago
I can't see changing the way propfont and monofont work at this point; the font 
loading code depends on the various OS functions for selecting fonts from the 
matching family with the appropriate characteristics.

I may be able to modify the standalone ini to refer to Linux Libertine and 
Liberation Mono by file name, and then include those fonts in the zip archive.

Original comment by bcressey@gmail.com on 14 Mar 2011 at 6:59

GoogleCodeExporter commented 8 years ago
I encountered the issue in the same way: trying to play Aotearoa w/o Libertine 
font installed, on Ubuntu 11.04. I'm running gargoyle-free, installed from the 
ubuntu repositories.

I resolved the issue by manually installing the font and editing the garglk.ini 
file to point to the font files by their full path names (as suggested in the 
.ini's comments).

Original comment by Rob.Tes...@gmail.com on 30 Apr 2011 at 10:40

GoogleCodeExporter commented 8 years ago
The Ubuntu package should include Libertine as a dependency; I believe it was a 
default system font on Debian and perhaps not included for that reason.

After installing the font, I'm surprised you would need to edit the .ini - at 
that point it should find the font (via fontconfig) and use it automatically if 
the propfont directive is set to Linux Libertine O.

Original comment by bcressey@gmail.com on 30 Apr 2011 at 3:46

GoogleCodeExporter commented 8 years ago
When you create some games it can be useful to be able to change the default 
font for a custom one (Renpy allows this for any game), so it'd be really nice 
if gargoyle could allow to load a truetype font in the .ini file.

Original comment by eforg...@gmail.com on 13 May 2014 at 4:00

GoogleCodeExporter commented 8 years ago
If I remember well, in the past it was possible to embed any font in the games, 
it was not system based, but directory based.

Original comment by eforg...@gmail.com on 3 Aug 2014 at 11:15