Java Code Examples for java.awt.Font#ROMAN_BASELINE

The following examples show how to use java.awt.Font#ROMAN_BASELINE . These examples are extracted from open source projects. 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
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 Project: petscii-bbs   File: Viewport6.java    License: 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
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 4
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 5
Source Project: jdk8u60   File: Font2D.java    License: GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 6
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 7
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 8
Source Project: Bytecoder   File: Font2D.java    License: Apache License 2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 9
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 10
Source Project: jdk8u-jdk   File: Font2D.java    License: GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 11
Source Project: hottub   File: Font2D.java    License: GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 12
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 13
Source Project: openjdk-8   File: Font2D.java    License: GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 14
Source Project: jdk8u_jdk   File: Font2D.java    License: GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 15
Source Project: jdk8u-jdk   File: Font2D.java    License: GNU General Public License v2.0 4 votes vote down vote up
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}
 
Example 16
public byte getBaselineFor(char c) {
    return Font.ROMAN_BASELINE;
}