English Amiga Board


Go Back   English Amiga Board > Coders > Coders. System

 
 
Thread Tools
Old 18 May 2020, 07:33   #1
Nightfox
Registered User
 
Nightfox's Avatar
 
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?
Nightfox is offline  
Old 18 May 2020, 08:23   #2
bwldrbst
Registered User
 
bwldrbst's Avatar
 
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.
bwldrbst is offline  
Old 18 May 2020, 10:44   #3
hooverphonique
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.
hooverphonique is offline  
Old 18 May 2020, 10:59   #4
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,496
Quote:
Originally Posted by Nightfox View Post
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?
As bwldrbst already mentioned, the first question is if you just want the text on "the screen" (which could also be a Window on the screenm, or even a bitmap without using the OS) or do you need the text directly on a "Screen", without a window?

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).
phx is offline  
Old 14 July 2020, 13:09   #5
Nightfox
Registered User
 
Nightfox's Avatar
 
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
Nightfox is offline  
 


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:13.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.20190 seconds with 13 queries