Changes between Initial Version and Version 1 of Ticket #36, comment 3


Ignore:
Timestamp:
Sep 29, 2017, 6:21:54 AM (7 years ago)
Author:
Paul Wratt

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36, comment 3

    initial v1  
    11NOTE: on X fonts and 'fontconfig'
    22
    3 some time ago the internals where renamed, so there is a 'default' used internally in fontconfig, which it maps to what ever path is default for the OS (Debian/Raspbian its /usr/share/fonts). But there is no way to query what that is. I also believe some font type that SDL_TTF can read which are no longer supported by X Font system. ATM the code scraps the folders for known font formats, but there is no way to scrap 'defaults', and unlike SDL2, SDL 1.2 handles a lot of older screen based fonts..
     3some time ago the internals where renamed, so there is a 'built-ins' used internally in fontconfig, which it maps to what ever path is default for the OS (Debian/Raspbian its /usr/share/fonts). But there is no way to query what that is. I also believe some font type that SDL_TTF can read which are no longer supported by X Font system. ATM the code scraps the folders for known font formats, but there is no way to scrap 'built-ins', and unlike SDL2, SDL 1.2 handles a lot of older screen based fonts..
    44
    55Also, as far as I know, fontconfig is bound to X. That is to say, if you install 'fontconfig' it will install X. My fix, although not pretty does unbind Grafx2 from X. There is notes about 'default' font paths in the attached files.
    66
    7 The lack of fontconfig support does not stop any fonts from being used on X, as 'default' is different on may (not all) systems, and some builds (Atari ST) already don't use it.
     7The lack of fontconfig support does not stop any fonts from being used on X, as 'built-ins' is different on may (not all) systems, and some builds (Atari ST) already don't use it.
    88
    9 You really need to add either a global variable check or a command line option (or both) that Grafix2 then add that path to the font directory list
     9You really need to add either a global variable check or a command line option (or both) so that Grafix2 can then add that path to the font directory list
    1010
    11 Currently for an Atari ST build the path is hard coded, and that path is also not a common one. Especially on an Atari ST, the default fontpath can be (literally) anywhere, even if you are lucky enought to have a working X Windows setup (and hence fontconfig).
     11Currently for an Atari ST build the path is hard coded, and that path is also not a common one. Especially on an Atari ST, the default fontpath can be (literally) anywhere, even if you are lucky enough to have a working X Windows setup (and hence fontconfig).
    1212
    1313