Code: Select all
gfx["flamespitter"] = dsb_get_bitmap("./GFX/flamespitter")
gfx["DMJAVASCROLLFONT"] = dsb_get_font("scrollfont")
Code: Select all
gfx["DMJAVASCROLLFONT"] = dsb_get_font("./fonts/scrollfont")
Moderator: Sophia
Code: Select all
gfx["flamespitter"] = dsb_get_bitmap("./GFX/flamespitter")
gfx["DMJAVASCROLLFONT"] = dsb_get_font("scrollfont")
Code: Select all
gfx["DMJAVASCROLLFONT"] = dsb_get_font("./fonts/scrollfont")
Does this in any way shape or form help with the issue of creating anti-aliased fonts that can be recoloured in DSB? I soooooooo want to move away from pixel fonts, that's way too old school now....the program can output antialiased fonts, which are generated by rendering the TrueType characters at eight times the requested size and then scaling down (an 8x8 supersampling grid provides 64 intensity levels). Fonts in this format can be drawn in Allegro by passing -1 as the color to textout(), but this will obviously only work if you have a suitable gradient in your palette.
Not directly, because the bit about "pass -1 as the color" means that it's presumably just using the font as a colored font, and not tinting it at all-- meaning no recoloring by Allegro proper. However, I think that I can use some of the blender functions offered by Allegro to do a decent job of recoloring the font myself. It'll take a fair bit of hacking around in the DSB core, but I think it's doable.Gambit37 wrote:Does this in any way shape or form help with the issue of creating anti-aliased fonts that can be recoloured in DSB?
Code: Select all
dsb_bitmap_textout(bmp, font_test, champions[champions_roster[s]].shortname, 582, 90+(100*(s-1)), CENTER, {97,179,179})
Code: Select all
FATAL LUA ERROR: Lua Function fullscreen_draw: /select-champions.lua:125: dsb_bitmap_textout requires Font in param 2
@@@ LUA STACK @@@
[S:storming_nira_prime/select-champions.lua:125: dsb_bitmap_textout requires Font in param 2]
@@@@@@
No, it doesn't have to only be one pixel. The default font grid as well as the wall font both use wider dividers. I will agree that Allegro can be a finicky when it comes to what it'll accept as a font, though.Gambit37 wrote:Also, fonts must be setup EXACTLY right. You can only have ONE pixel dividers between each row, if not, DSB doesn't recognise it as a font.
It just doesn't detect it. I'm gonna try changing the color depth.Sophia wrote:Otherwise, I'm not sure. What do you mean by "doesn't seem to like"?