18 May 2020, 07:33 | #1 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 384
|
Blitting existing fonts
Hi all
Is there an easy way or even a library call that I can use to use for example Topaz font to print a string anywhere on the screen or is it not that simple? |
18 May 2020, 08:23 | #2 |
Registered User
Join Date: Nov 2015
Location: Perth, Australia
Posts: 73
|
On an Intuition screen like Workbench? You should probably only do it in a window or bad things might happen.
On the other hand, you could try using the Screen's RastPort or create your own RastPort from the Screen's BitMap. Both of these are likely to result in a mess on the screen though. |
18 May 2020, 10:44 | #3 |
ex. demoscener "Bigmama"
Join Date: Jun 2012
Location: Fyn / Denmark
Posts: 1,624
|
Yes, you can use graphics.library operations to write directly to a RastPort.
|
18 May 2020, 10:59 | #4 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
|
Quote:
AFAIK you can set different default fonts for the Screen and the Window in the WB prefs. So they might get used when calling the graphics.library Text() function with a Screen's or Window's RastPort. To make sure you got the Topaz font you would have to call OpenFont() and then SetFont() for the destination RastPort (all graphics.library). |
|
14 July 2020, 13:09 | #5 |
Registered User
Join Date: Apr 2016
Location: Perth, Australia
Posts: 384
|
Thanks everyone. I used the word screen when I meant window in screen. I'm learning Intuition properly now so now I understand screens and windows
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Blitting part of a shape? | earok | Coders. Blitz Basic | 3 | 01 December 2017 03:45 |
Blitting one bitplane | Shatterhand | Coders. Blitz Basic | 13 | 01 February 2017 16:13 |
Problem with blitting.... | xboxown | Coders. Language | 0 | 09 March 2014 21:51 |
Blitting question | sandruzzo | Coders. General | 30 | 06 April 2011 11:29 |
difference in blitting uae vs. hw | yoki | Coders. General | 5 | 15 July 2009 15:21 |
|
|