Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:17 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : CMM2: Bold fonts

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 03:31pm 07 Jul 2021
Copy link to clipboard 
Print this post

Hi folks,

I'm feeling lazy ...

I don't suppose anyone has code I could "steal" for obtaining "bold" text on the VGA output using one of the standard fonts, e.g. FONT 1, without having to generate an external font file.

I guess the routes are:

1. Overprinting slightly offset with a transparent background ?

2. Generating the new font in-memory with PEEK and POKE.

Best wishes,

Tom
Edited 2021-07-08 01:32 by thwill
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 05:12pm 07 Jul 2021
Copy link to clipboard 
Print this post

Overprinting with single pixel offsets works nicely, especially with the larger fonts. Your choice of how many overstrikes, and whether you do x only or x and y.
Visit Vegipete's *Mite Library for cool programs.
 
NPHighview

Senior Member

Joined: 02/09/2020
Location: United States
Posts: 203
Posted: 05:41pm 07 Jul 2021
Copy link to clipboard 
Print this post

You can also overprint with single pixel offsets, varying the font colors from back to front, to give a shadowed effect.
Live in the Future. It's Just Starting Now!
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 09:54am 08 Jul 2021
Copy link to clipboard 
Print this post

Thanks, now I just have to find out how lookup how to write text with a transparent background ... is that possible in all Modes ?

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 05:47pm 08 Jul 2021
Copy link to clipboard 
Print this post

Set the background colour to -1.
Visit Vegipete's *Mite Library for cool programs.
 
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 05:51pm 08 Jul 2021
Copy link to clipboard 
Print this post

  vegipete said  Set the background colour to -1.


LOL, I was just literally going to say I had found that ;-)

Thanks @vegipete,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025