Jump to content




BigFont API - Write bigger letters. v1.0


6 replies to this topic

#1 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 15 December 2015 - 12:07 PM

BigFont API - Write bigger letters. v1.1

Have you ever wanted to write something on computer screen in different font size? Now with magical 1.8 features you can!

Presenting: BigFont
Posted Image

BigFont is simple to use API for writing text using new drawing characters. It massively simplifies writing basic words using said characters. How to use explanation below.

Download Here: http://pastebin.com/3LfWxRWh
Or ingame by using command:
pastebin get 3LfWxRWh bigfont
(requires http-api to be active)

As it it api you need to os.loadAPI("bigfont") it. It contains functions explained below that allow you to do the magic!

Features List:
  • 4 Fast use functions: bigWrite bigPrint hugeWrite hugePrint that simpltfy writing to the max
  • 2 Moderate level function: bigBlit hugeBlit for all your blitting needs.
  • 2 Advanced level function writeOn and blitOn for all your unconventional writing needs.
  • 1 Extra function makeBlittleText that converts text into image formated according to Bomb Bloke Blitte API
Sizes Showcase:
Spoiler


How to use:
Spoiler

Change-log:
Spoiler

Plans For Future:
Spoiler

Thanks to Bomb Bloke for his BLittle API and GIF API. They allowed to to easily translate termFont.png file into this api.

Any Comment and Suggestions how to improve Code are appreciated.

Edited by Wojbie, 17 February 2020 - 03:32 PM.


#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 15 December 2015 - 12:34 PM

Word-wrap and proper escape character support for print? ... bigfont.blit()? :D

#3 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 15 December 2015 - 12:37 PM

 Bomb Bloke, on 15 December 2015 - 12:34 PM, said:

Word-wrap and proper escape character support for print? ... bigfont.blit()? :D

Well bigfont.blit() is planned for when i get some free time to make it :)

As for Word-wrap and proper escape character support I kinda forgot.

Edited by Wojbie, 15 December 2015 - 12:38 PM.


#4 Quartz101

  • Members
  • 141 posts
  • Location/dev/nvme0n1

Posted 15 December 2015 - 08:33 PM

No SmallFont api? awww!

#5 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 15 December 2015 - 08:36 PM

UPDATE! v1.1
  • Added 2 new moderate functions: bigBlit(sString,sFront,sBack) and hugeBlit(sString,sFront,sBack)
  • Added 1 new advanced function: blitOn(tTerminal,nSize,sString,sFront,sBack,nX,nY)
  • Fixed character "{" 1 pixel off bug (again).



 Bomb Bloke, on 15 December 2015 - 12:34 PM, said:

Word-wrap and proper escape character support for print? ... bigfont.blit()? :D
Well here's your blit ;D As for word-wrap and proper escape character support? I think i am gonna leave that for future advanced version. Don't want to go to far before the changes get set in stone. Beta will be beta after all.

#6 LDDestroier

  • Members
  • 1,095 posts
  • LocationACDC Town

Posted 15 December 2015 - 08:52 PM

Bwahahaha, this is great! You seem to be a quick learner of the new pixel characters!

#7 Wojbie

  • Members
  • 631 posts
  • LocationKinda lost

Posted 15 December 2015 - 09:00 PM

 LDDestroier, on 15 December 2015 - 08:52 PM, said:

Bwahahaha, this is great! You seem to be a quick learner of the new pixel characters!
I have to admit i had this thing 80% made already.
I was working on making similiar APi using asci art based big characters to get this effect.
When i saw the new chars i just had to change direction.
Also without all of Bomb Bloke APIs i would never made this.

Edited by Wojbie, 15 December 2015 - 09:05 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users