replica nfl jerseysreplica nfl jerseyssoccer jerseyreplica nfl jerseys forums.silverfrost.com :: View topic - Force GLUT_STROKE_ROMAN font to work under FTN95 ?
forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Force GLUT_STROKE_ROMAN font to work under FTN95 ?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support
View previous topic :: View next topic  
Author Message
leszpol



Joined: 25 Apr 2008
Posts: 29
Location: Gdynia-TriCity

PostPosted: Sat Jan 31, 2009 11:39 pm    Post subject: Force GLUT_STROKE_ROMAN font to work under FTN95 ? Reply with quote

Dear users

I try to use scalled font different than number 8 called "GLUT_BITMAP_HELVETICA_12 ". For example
GLUT_STROKE_ROMAN number 1 should be available
in FTN95 acording help manual but when I call
CALL glutBitmapCharacter(1, ichar(c)) with "1"
not "8" my program doesn't show anything even doesn't work.

The problem is that some other non scalled fonts works like bitmap fonts
ex. CALL glutBitmapCharacter(7, ichar(c)) but when the resolution or
widow is resizing this fonts doesn't change when scaled font do it. For
examle free fortran g95 works with CALL glutBitmapCharacter(1, ichar(c))
when FTN95 seems to not work. How to forme FTN95 with procedure
below that using scaled font called CALL glutBitmapCharacter(1, ichar(c))
means "GLUT_STROKE_ROMAN number 1" started to work.

Regards

Leszek

Code:

!****************************************************************
        SUBROUTINE OUTPUT(x,y,s,gg)
!****************************************************************
!       GLUT_STROKE_ROMAN               1
!       GLUT_STROKE_MONO_ROMAN          2
!       GLUT_BITMAP_9_BY_15             3
!       GLUT_BITMAP_8_BY_13             4
!       GLUT_BITMAP_TIMES_ROMAN_10      5
!       GLUT_BITMAP_TIMES_ROMAN_24      6
!       GLUT_BITMAP_HELVETICA_10        7
!       GLUT_BITMAP_HELVETICA_12        8
!       GLUT_BITMAP_HELVETICA_18        9
!****************************************************************
      USE MYMOD
      INCLUDE <clearwin.ins>,nolist
      INCLUDE <opengl.ins>, nolist

      REAL*4    x,y
      CHARACTER s*(*)
      CHARACTER c
      INTEGER*4 gg,ww,dd
      lenc = len(s)
      CALL GET_TEXT_SIZE@(s,ww,dd)

      CALL glRasterPos3f(x,y,0.0)
      do 10, i=1,lenc
        c = s(i:i)

!     CALL glutBitmapCharacter(1, ichar(c)) DOESN'T WORK !!!!!!!!!!!
      CALL glutBitmapCharacter(8, ichar(c))

10   CONTINUE
       END SUBROUTINE
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Support All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group