FBA The Creator

The True Multiplatform PC / PocketPC Opensource Development Tool - Read Only Mode - Kept only for historical purposes - Thank you all ;)
It is currently Sun Jul 21, 2019 2:17 am

All times are UTC




Post new topic  Reply to topic  [ 12 posts ]  Go to page 1 2 Next
Author Message
 Post subject: DrawGfxText enhancement
PostPosted: Wed Jul 02, 2008 11:13 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Hi,

my gfxfont is like this...

Image

I would like to draw this *without* specifying the RGB values, can this be added to FBA? Yes I could load as a image and draw part of the image but working out which bit to draw is painful.

Would be nice to use the GFX Font capability...

Is it possible? TA!

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Wed Jul 02, 2008 12:49 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
It's pretty easy to accomplish this through drawimage functions;
btw..i'll consider this for next releases...


Top
   
PostPosted: Wed Jul 02, 2008 12:57 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
well not too easy cos imagine a font gfx of 26+ characters all different widths, you have to have a table of each! Would be much nicer if the gfx fonts routines could do it as it currently works out the width from the masking line just needs to not colorize the image.

Any chance on this feature soon :roll: ;)

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Wed Jul 02, 2008 2:45 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Mh yes, you're right..this would be really useful..
i hope to put it in next release, so ..very soon...
It would be very useful for me to have a gfx font in FBA format (with blank delimiters) ready to use in order to put it with a new fonts tutorial...
Can you provide me one of yours (copyright free of course :twisted: )?
This will help me to save lot of time to find/create a new one!
Of course i'll put your name in the tutorial comments :D
Thanks!


Top
   
PostPosted: Wed Jul 02, 2008 3:20 pm 
Offline
Tutorials Contributor
Tutorials Contributor
User avatar

Joined: Tue Jun 17, 2008 3:39 am
Posts: 59
Location: Midwest, US
You can use this one. It's not as cool as BoiledSweets', but it's complete.


Attachments:
arial12bold.png
arial12bold.png [ 2.71 KiB | Viewed 9081 times ]

_________________
Don't look at me. I'm new here.
Top
   
PostPosted: Wed Jul 02, 2008 3:22 pm 
Offline
Tutorials Contributor
Tutorials Contributor
User avatar

Joined: Tue Jun 17, 2008 3:39 am
Posts: 59
Location: Midwest, US
Here's the code for using it so you don't have to type in again.
Code:
-- fonts
FONTSTRING = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`~!@#$%^&*()-_=+[{]}\\|'\";:/?.>,<"
FONTARIAL12BOLD = loadgfxfont(IMGARIAL12BOLD, FONTSTRING, 2)

_________________
Don't look at me. I'm new here.


Top
   
PostPosted: Wed Jul 02, 2008 3:31 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
Hi,

how about this (it's just the numbers but should a good enough for the example)

Image

Feel free to use as is, is copyright free because I just created it

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Wed Jul 02, 2008 8:59 pm 
Offline
FBA Administrator
FBA Administrator
User avatar

Joined: Fri Mar 21, 2008 11:19 pm
Posts: 238
Location: Rome - Italy
Many thanks guys!

I just uploaded a new version (0.2.0.115). Give it a try and let me know!!

Thanks!


Top
   
PostPosted: Wed Jul 02, 2008 9:10 pm 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
COOL!!!

many thanks...works treat and is a super cool feature

_________________
http://www.boiledsweets.com


Top
   
PostPosted: Fri Jul 04, 2008 10:12 am 
Offline
FBA Startup-Logo Creator
FBA Startup-Logo Creator
User avatar

Joined: Wed Jun 18, 2008 11:40 am
Posts: 100
Location: Brighton, UK
The drawgfxfont routine doesn't seem to haandle the "space" character, i.e. doesn't draw one. If I stick a space character in the font and include in the mask when loading the font it still doesn't work, try this font

    Tahoma 12pt bold
    Image
    Code:
       local tahoma12_font_image = loadimage("font_tahoma12.jpg")
       tahoma12_font = loadgfxfont(tahoma12_font_image, "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!\"£$%^&*()_+=-[]#~'@;:?.>,<1234567890", 1)


    This one doesn't have the space char but even if I add one it doesn't work - try drawing "Hello There!" - there is no space...

    _________________
    http://www.boiledsweets.com


    Top
       
    Display posts from previous:  Sort by  
    Post new topic  Reply to topic  [ 12 posts ]  Go to page 1 2 Next

    All times are UTC


    Who is online

    Users browsing this forum: No registered users and 1 guest


    You cannot post new topics in this forum
    You cannot reply to topics in this forum
    You cannot edit your posts in this forum
    You cannot delete your posts in this forum
    You cannot post attachments in this forum

    Search for:
    Jump to:  
    cron
    Powered by phpBB® Forum Software © phpBB Limited