Java Code Examples for java.awt.Font#ROMAN_BASELINE

The following examples show how to use java.awt.Font#ROMAN_BASELINE . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TextViewport.java    From petscii-bbs with Mozilla Public License 2.0 6 votes vote down vote up
public TextViewport(Machine machine, LineEditor editor,
                    DisplaySettings settings) {

  this.machine = machine;
  this.editor = editor;
  this.settings = settings;
  
  standardFont = new Font("Dialog", Font.ROMAN_BASELINE,
                          settings.getStdFontSize());
  fixedFont = new Font("Monospaced", Font.ROMAN_BASELINE,
                       settings.getFixedFontSize());
  outputstream = new ScreenOutputStream(machine, this);
  windows = new SubWindow[2];
  activeWindow = WINDOW_BOTTOM;

  // For efficiency, override some of this component's standard properties
  setOpaque(true);
  setDoubleBuffered(false);
}
 
Example 2
Source File: Viewport6.java    From petscii-bbs with Mozilla Public License 2.0 5 votes vote down vote up
/**
 * Determines the standard fonts for display.
 */
private void determineStandardFont() {
        
  standardFont = new Font("Monospaced", Font.ROMAN_BASELINE, 12);
  fixedFont = standardFont;
  fontFactory.initialize(standardFont, fixedFont);    
}
 
Example 3
Source File: Font2D.java    From dragonwell8_jdk with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 4
Source File: Font2D.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 5
Source File: Font2D.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 6
Source File: Font2D.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 7
Source File: Font2D.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 8
Source File: Font2D.java    From Bytecoder with Apache License 2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 9
Source File: Font2D.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 10
Source File: Font2D.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 11
Source File: Font2D.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 12
Source File: Font2D.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 13
Source File: Font2D.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 14
Source File: Font2D.java    From jdk8u_jdk with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 15
Source File: Font2D.java    From jdk8u-jdk with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 16
Source File: Font2D.java    From jdk8u-dev-jdk with GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}