Welcome, Guest. Please login or register.

Author Topic: how do i get a pointer to the default system font?  (Read 1914 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
how do i get a pointer to the default system font?
« on: June 08, 2006, 07:56:18 PM »
at the moment i use
Code: [Select]
move.l intbase(pc),a0
move.l ib_FirstScreen(a0),a0
move.l sc_RastPort+rp_Font(a0),a5


but how do i get a pointer to the default system font?
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #1 on: June 08, 2006, 08:09:01 PM »
yes, thats why i ask. i need to know the font that a new window will get by default but prior to opening that window.
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #2 on: June 08, 2006, 09:00:51 PM »
Quote
Or do you really mean system font (used for console text)?


no. thank you.
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #3 on: June 09, 2006, 08:52:32 PM »
what if i want to know the default font prior to opening the screen for my app?
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #4 on: June 10, 2006, 01:10:48 PM »
ok, i am curious about "the other methods"?
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #5 on: June 10, 2006, 04:56:33 PM »
its really great that there IS response in the amiga scene! that amiga is alive! thank you for your very good answer!

i currently use LockPubScreen(NULL) and am curious if that works on systems with gfxcard, where there is no workbench but some other default screen that i will get by LockPubScreen(NULL) instead?
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #6 on: June 10, 2006, 07:35:47 PM »
btw, why should i forbid while reading gfxbase?
mobilis in mobili
 

Offline AGSzaboTopic starter

  • Jr. Member
  • **
  • Join Date: Jun 2006
  • Posts: 55
    • Show all replies
    • http://www.psi5.com/~silva/afilter/
Re: how do i get a pointer to the default system font?
« Reply #7 on: June 10, 2006, 08:40:11 PM »
i doubt that something wonderfull will happen just in the same time when i access gfxbase or an existing screen. its more likely that you win lotto.
mobilis in mobili