Re: [AD] monochrome 8x8 builtin font + upscaling algorithm

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Wed, Jul 4, 2012 at 5:32 AM,  <Dennis-Busch@xxxxxxxxxx> wrote:
> ( [PATCH for 5.1] and screenshot are attached )
>
> Implemented "al_create_builtin_font(unsigned int scale, bool
> use_tar)" into the font addon.
>
I think there should be a built-in font, although we need to consider
how it should fit in with the library.

It seems like scaling a bitmap font could be its own thing, although
I'm not sure how well it fits with the current internals:

font = al_scale_font(ALLEGRO_FONT *font,
   unsigned int scale,
   enum ALLEGRO_FONT_SCALE_ALGORITHM)

And perhaps scale could even be a float. (Of course if you are loading
a TTF font, it doesn't make sense to use this.)

Secondly, we may consider a built-in font in conjunction with a system
loading function:

al_load_system_font("Arial", 8);

Not sure what options would be needed for such a function, but the
Allegro font could serve as a fallback if the call failed or if TTF
wasn't available, etc.

--
Matthew Leverton




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/