Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load fonts #4

Closed
Matthew-Bastian opened this issue Feb 9, 2018 · 1 comment
Closed

Can't load fonts #4

Matthew-Bastian opened this issue Feb 9, 2018 · 1 comment

Comments

@Matthew-Bastian
Copy link

Font names are dated in the file fbr.h edit as follows:

/*

  • Resource file for ncplot.
  • capture the output of xlsfonts and look for a font
  • that has all zero for the sizing. eg.

-bitstream-bitstream charter-bold-r-normal--0-0-0-0-p-0-adobe-standard

Pick a font name and fill out the HEADER and TRAILER font defines below.
Put "*" (ie. stars) where there are zeros except for the x-pitch.
x-pitch is the third zero in the example above.

Can't seem to find a scalable font that is consistent across Linux platforms!
*/

#if 0
// centos
#define BASE_FONT_HEADER "-adobe-utopia-bold-r-normal--",
#define BASE_FONT_TRAILER "
--p--iso10646-1",
#else
// Ubuntu
#define BASE_FONT_HEADER "-bitstream-bitstream charter-bold-r-normal--",
#define BASE_FONT_TRAILER "
--p--adobe-standard",
#endif

static String fallback_resources[] =
{
"*defaultFontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER

"*font24: " BASE_FONT_HEADER "-240-" BASE_FONT_TRAILER
"*font18: " BASE_FONT_HEADER "-180-" BASE_FONT_TRAILER
"*font14: " BASE_FONT_HEADER "-140-" BASE_FONT_TRAILER
"*font12: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*font10: " BASE_FONT_HEADER "-100-" BASE_FONT_TRAILER

"plRCfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"controlFormfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"printParmsRCfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"specOptFormfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"editSpecShellfontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER

"*asciiText.fontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*headerText.fontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER
"*statsText.fontList: " BASE_FONT_HEADER "-120-" BASE_FONT_TRAILER

@topher800
Copy link
Member

I have ncplot working under Ubuntu now. Edit Makefile and uncomment the Ubuntu section, then build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants