Allegro.cc - Online Community

Allegro.cc Forums » Allegro Development » al_grab_font_from_bitmap() Documentation Error

This thread is locked; no one can reply to it. rss feed Print
al_grab_font_from_bitmap() Documentation Error
Todd Cope
Member #998
November 2000
avatar

I just noticed this in the documentation for al_grab_font_from_bitmap():

int ranges[] = {32, 126};
al_font_grab_font_from_bitmap(bitmap, 1, ranges)

int ranges[] = {
    0x0020, 0x007F,  /* ASCII */
    0x00A1, 0x00FF,  /* Latin 1 */
    0x0100, 0x017F,  /* Extended-A */
    0x20AC, 0x20AC}; /* Euro */
al_font_grab_font_from_bitmap(bitmap, 4, ranges)

It should be this:

int ranges[] = {32, 126};
al_grab_font_from_bitmap(bitmap, 1, ranges)

int ranges[] = {
    0x0020, 0x007F,  /* ASCII */
    0x00A1, 0x00FF,  /* Latin 1 */
    0x0100, 0x017F,  /* Extended-A */
    0x20AC, 0x20AC}; /* Euro */
al_grab_font_from_bitmap(bitmap, 4, ranges)

Evert
Member #794
November 2000
avatar

Is there anything different in the two code samples you posted?

Thomas Fjellstrom
Member #476
June 2000
avatar

Evert said:

Is there anything different in the two code samples you posted?

Only the names of the functions. And it took me several tries to see it :o

--
Thomas Fjellstrom - [website] - [email] - [Allegro Wiki] - [Allegro TODO]
"If you can't think of a better solution, don't try to make a better solution." -- weapon_S
"The less evidence we have for what we believe is certain, the more violently we defend beliefs against those who don't agree" -- https://twitter.com/neiltyson/status/592870205409353730

Evert
Member #794
November 2000
avatar

Only the names of the functions. And it took me several tries to see it :o

Indeed. I checked all the font ranges three times, as well as the comments and the function arguments.
It would have been useful to point that out. ;)

SiegeLord
Member #7,827
October 2006
avatar

I used diff >.>

"For in much wisdom is much grief: and he that increases knowledge increases sorrow."-Ecclesiastes 1:18
[SiegeLord's Abode][Codes]:[DAllegro5]:[RustAllegro]

Go to: