org.stellarium.ui.render 
 Class SFont
java.lang.Object
   org.stellarium.ui.render.AWTFont
org.stellarium.ui.render.AWTFont
  - All Implemented Interfaces:
  
- SFontIfc
  
  - 
    public class SFont 
- extends java.lang.Object- implements SFontIfc
  Stellarium Font.
See C++ version of this file.
http://cvs.sourceforge.net/viewcvs.py/stellarium/stellarium/src/s_font.h?rev=1.15&view=markup
  - Version:
- 0.8.2
- Author:
- Jérôme Beau
- See Also:
  
- s_font.h,
    typeface.cpp,
    typeface.h
  
  
  
    | Field Summary | 
  
    | private static java.util.Map<java.lang.String,java.awt.Font> | baseFonts
 | 
  
    | private  java.awt.Color | color
 | 
  
    | private  java.awt.Font | typeFace
 | 
 
  
    | Constructor Summary | 
  
    | SFont(float size,
      java.lang.String ttfFileName)Stellarium 0.8.1 use ttf font names loaded
 | 
  
    | SFont(float size,
      java.lang.String ttfFileName, SColor fontColor)Stellarium 0.8.1 use ttf font names loaded
 | 
 
 
  
    | Methods inherited from class java.lang.Object | 
  
    | clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
  
  
  baseFonts
private static final java.util.Map<java.lang.String,java.awt.Font> baseFonts
  
  
  color
private final java.awt.Color color
  
  
  typeFace
private final java.awt.Font typeFace
  
  
  SFont
public SFont(float size,
             java.lang.String ttfFileName)
      throws StellariumException
  - Stellarium 0.8.1 use ttf font names loaded
    
     
      - Parameters:
      
- size-
- ttfFileName-
- Throws:
      
- StellariumException
 
  SFont
public SFont(float size,
             java.lang.String ttfFileName,
             SColor fontColor)
      throws StellariumException
  - Stellarium 0.8.1 use ttf font names loaded
    
     
      - Parameters:
      
- size-
- ttfFileName-
- fontColor-
- Throws:
      
- StellariumException
 
  close
public void close()
  - 
    
      - Specified by:
      
- closein interface- SFontIfc
 
- 
    
     
  print
public void print(double x,
                  double y,
                  java.lang.String str)
  - Method with upsideDown by default
    
   
- 
    
      - Specified by:
      
- printin interface- SFontIfc
 
- 
    
     
  print
public void print(float x,
                  float y,
                  java.lang.String str,
                  boolean upsidedown)
  - 
    
      - Specified by:
      
- printin interface- SFontIfc
 
- 
    
     
  printChar
public void printChar(char c)
  - 
    
      - Specified by:
      
- printCharin
        interface- SFontIfc
 
- 
    
     
  printCharOutlined
public void printCharOutlined(char c)
  - 
    
      - Specified by:
      
- printCharOutlinedin interface- SFontIfc
 
- 
    
     
  getStrLen
public float getStrLen(java.lang.String str)
  - 
    
      - Specified by:
      
- getStrLenin
        interface- SFontIfc
 
- 
    
     
  getLineHeight
public int getLineHeight()
  - 
    
      - Specified by:
      
- getLineHeightin
        interface- SFontIfc
 
- 
    
     
  getAscent
public int getAscent()
  - 
    
      - Specified by:
      
- getAscentin
        interface- SFontIfc
 
- 
    
     
  getDescent
public int getDescent()
  - 
    
      - Specified by:
      
- getDescentin
        interface- SFontIfc
 
-