Jump to content

cannot define font to include


jarekl

Recommended Posts

I'm getting an error in fonts.h

#error "GDISP: No fonts have been included"

even though a font has been defined in gfxconf.h


..
#define GDISP_INCLUDE_FONT_FIXED_10x20 FALSE
#define GDISP_INCLUDE_FONT_FIXED_7x14 TRUE
#define GDISP_INCLUDE_FONT_FIXED_5x8 FALSE
..

I'm totally puzzled. Fonts.h includes gfx.h. There is only one gfx.h and only one gfxconf.h on my system (no confusion about which file is included), yet, I get this error.

Link to comment
Share on other sites

The problem is in the example gfxconf.example.h

In your gfxconf.h replace the lower-case "x" in the font name with an upper-case "X" and it should all work.

I have updated the source repository to fix this.

Amazing. I was staring at that error for hours and didn't see it. Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...