Author Topic: Draw text?  (Read 13347 times)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Draw text?
« on: February 17, 2011, 08:53:19 PM »
Is there any draw text function yet? I really need it now...

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Draw text?
« Reply #1 on: February 17, 2011, 11:47:51 PM »
Nope.  I had thought to make one, but it would need to be done by hand, using DrawLine...

The ideal functionality would be that you pass parameters to the function such as "DrawText(pos x, pos y, "text")

It would then parse the characters in the "text" string, and draw appropriate lines to represent each character in turn.


This would take quite a while - especially if you do all the capital letters too!

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #2 on: February 18, 2011, 02:05:02 AM »
I think it's quite a much better idea only doing the capitals :) And I am going to make this, cause I need it... I also have an idea of how *writing down on a piece of virtual notebook* :P

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Draw text?
« Reply #3 on: February 18, 2011, 02:11:38 AM »
Ok, I'm probably still going to make one myself though.  I have all sorts of plans like fading the alpha out after the text has been displayed for a certain amount of time.. :P

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #4 on: February 18, 2011, 02:28:44 AM »
I jsut need to know how you can count the amount of letters without telling manually, may tell please :)

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Draw text?
« Reply #5 on: February 18, 2011, 04:15:59 AM »
Hmm, I'm not sure.  :>
But, if I were you, I'd start my search here....
http://www.lua.org/manual/5.1/manual.html#5.4

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #6 on: February 18, 2011, 04:42:35 AM »
s:len()

Found it :)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #7 on: February 18, 2011, 04:49:47 AM »
Yya, it works properly, now only make all the letters, god xD

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #8 on: February 18, 2011, 05:01:23 AM »
Lol, was gonna make the G but it got turned up side down, WTH? xD

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #9 on: February 18, 2011, 05:29:35 AM »
Yay, got some more letters now :D

annikk.exe

  • Achiever
  • Ent
  • ****
  • Thank You
  • -Given: 0
  • -Receive: 4
  • Posts: 1,809
Re: Draw text?
« Reply #10 on: February 18, 2011, 05:41:55 AM »
Hey, that looks pretty good! :>

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 139
  • -Receive: 12
  • Posts: 670
  • Eufloria: Yes
Re: Draw text?
« Reply #11 on: February 18, 2011, 06:30:28 AM »
Yeah, great, and funny too :) And now … kerning ;D

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #12 on: February 18, 2011, 02:45:07 PM »
Hopelyfullly I'll be done tonight :)

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 139
  • -Receive: 12
  • Posts: 670
  • Eufloria: Yes
Re: Draw text?
« Reply #13 on: February 18, 2011, 08:44:22 PM »
As a graphics designer with a passion for typography I’m really eager to see it. Your first characters really look quite good, and I wonder how you get along with the rest.

BTW, Kerning, or rather missing kerning can really be a pain in the … eye. But you can work around this problem if you … create your fonts to be monospaced/fixed pitch/non-proportional, this meaning, e.g., that the character “i” runs just as wide as character “m” like with Courier resp. Courier New.

A few samples, serif and sans-serif: http://en.wikipedia.org/wiki/Samples_of_monospaced_typefaces

No obligation, Aino, mind you, but just in case you’d want to get a glimpse of this ancient discipline, now that you’re a beginning typographer :)

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #14 on: February 18, 2011, 10:13:27 PM »
Kerning? Spaces between all the letters, if that is the case I am hoping to solve this problem, but for now it must be like that.

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #15 on: February 18, 2011, 10:58:29 PM »
Done with the Letters, going to release it, then release the new version with numbers too when I am donw with it :)

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 139
  • -Receive: 12
  • Posts: 670
  • Eufloria: Yes
Re: Draw text?
« Reply #16 on: February 19, 2011, 02:12:32 AM »
Hey Aino, all this stuff I wrote abt typography was never meant as demand or the like, just so that you can find some info & help on making type look fine, in case you’d want to tweak it.

Like, for the kerning to become superfluous, you could, for example, “simply” (?) make the letters “G” , “I” (here the nice serifs you already made) and “J” somewhat broader, so that they’d run as broad as the other letters.

Peace, Tom

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #17 on: February 19, 2011, 03:30:47 AM »
Yea, considered it... But I think it will just look lame IMO, I don't have that much against it being like so... It is easy to fix though :P

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #18 on: February 19, 2011, 03:54:34 AM »
I need an unused letter, which isn't commonly used AT ALL!, going to use it for CC :)

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 139
  • -Receive: 12
  • Posts: 670
  • Eufloria: Yes
Re: Draw text?
« Reply #19 on: February 19, 2011, 04:42:51 AM »
How d’you mean? And what do you mean by “CC”? And … wbt perhaps inventing your own new character since you draw them and needn’t take from ASCII or Unicode?

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #20 on: February 19, 2011, 04:52:52 AM »
CC or Commando Center(An enhanced HUD for Rally & stuff, I know there already is a rally, yes!) and I need a character to activate my custom letter, but found a letter thatn never gets used(atleast by me!). And the letter is: » :D

Aino

  • Ent
  • ******
  • Thank You
  • -Given: 4
  • -Receive: 30
  • Posts: 1,527
  • Eufloria: Yes
Re: Draw text?
« Reply #21 on: February 19, 2011, 04:54:19 AM »
BTW, you can sign in for beta testing to see how it is before the public release :)

Bonobo

  • Achiever
  • Old Oak
  • ****
  • Thank You
  • -Given: 139
  • -Receive: 12
  • Posts: 670
  • Eufloria: Yes
Re: Draw text?
« Reply #22 on: February 19, 2011, 06:31:09 AM »
Thanks, Aino, in case you meant me: I currently don’t have the brains and time to start up my virtual Windows machine and play <shrug> hopefully some time later this year.

Pilchard123

  • Tester
  • Old Oak
  • ****
  • Thank You
  • -Given: 4
  • -Receive: 24
  • Posts: 932
  • Eufloria: Yes
Re: Draw text?
« Reply #23 on: February 19, 2011, 10:20:32 PM »
I think >> is used as the Mainland European equivalent to ", but I am not certain. I'm fairly sure the French use it.