Forum
Feature: Italics! - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14)
+---- Thread: Feature: Italics! (/showthread.php?tid=97)



Feature: Italics! - britlion - 04-29-2009

I was rummaging through the .asm code, and I note it's pretty well optimized - though I can see places that could be neater. But that's for another time.

I noticed one of the runtime code blocks was labelled Italics..

So, curious, I tried compiling:

PRINT ITALIC 1; "Italics?"

And it worked perfectly! This isn't documented anywhere! What an awesome little addition to the language.
(It prints the text with the top a pixel to the right and the bottom a pixel to the left, and the middle left alone)

This should probably be added to the reserved words list.


Re: Feature: Italics! - boriel - 04-29-2009

Yes, and BOLD is also implemented:

PRINT BOLD 1; "HELLO"
should also work.


Re: Feature: Italics! - LCD - 04-29-2009

Yes, I remember, it was in a change log. Very nice feature. But setting it globally does not work:
Code:
BOLD 1:PRINT "Anything"



Re: Feature: Italics! - boriel - 04-29-2009

LCD Wrote:Yes, I remember, it was in a change log. Very nice feature. But setting it globally does not work:
Code:
BOLD 1:PRINT "Anything"
It should. If not, it is a *bug*.
Let me check it...

Update: Ooops :oops: Yep, it's a bug. Let me fix it... It will be fixed in the 1.1.7 release.


Re: Feature: Italics! - LCD - 04-29-2009

Oh, I believed, it was supposed to work only with PRINT Big Grin.
Btw: I think, you should add BOLD, ITALICS, SHL and SHR to the list of reserved keywords on your homepage (Have I missed something).


Re: Feature: Italics! - britlion - 04-29-2009

*heh* How cool is that?

And I'm glad I brought it up then. BOLD as well as italics. Awesome.


Re: Feature: Italics! - britlion - 04-29-2009

LCD Wrote:Oh, I believed, it was supposed to work only with PRINT Big Grin.
Btw: I think, you should add BOLD, ITALICS, SHL and SHR to the list of reserved keywords on your homepage (Have I missed something).

Hey LCD. I edited the page to sneak in BOLD and ITALICS, so poor overworked Boriel doesn't have to. We can actually help document this thing for poor users ahead of us!

So... what are SHL and SHR? Sound like some sort of left and right bitshift...

--> Goes off to experiment <--


Re: Feature: Italics! - LCD - 04-29-2009

britlion Wrote:
LCD Wrote:Oh, I believed, it was supposed to work only with PRINT Big Grin.
Btw: I think, you should add BOLD, ITALICS, SHL and SHR to the list of reserved keywords on your homepage (Have I missed something).

Hey LCD. I edited the page to sneak in BOLD and ITALICS, so poor overworked Boriel doesn't have to. We can actually help document this thing for poor users ahead of us!

So... what are SHL and SHR? Sound like some sort of left and right bitshift...

--> Goes off to experiment <--
You can edit the Wiki? OK. I'm impressed Maybe because I never tried it.

SHL and SHR are, as you believe, binary Shift Left and Right.

I hope, next version will support BAND, BOR and BXOR (Binary AND, OR and XOR).


Re: Feature: Italics! - nitrofurano - 09-29-2011

just a correction from someone studied typography history and design: in this topic you all are talking about obliques, not italics - http://en.wikipedia.org/wiki/Italic_type


Re: Feature: Italics! - boriel - 09-30-2011

Ouch! :oops: