Java Code Examples for java.awt.Font#LAYOUT_LEFT_TO_RIGHT
The following examples show how to use
java.awt.Font#LAYOUT_LEFT_TO_RIGHT .
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
Source Project: dragonwell8_jdk File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 2
Source Project: dragonwell8_jdk File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 3
Source Project: TencentKona-8 File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 4
Source Project: TencentKona-8 File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 5
Source Project: jdk8u-jdk File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 6
Source Project: jdk8u60 File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 7
Source Project: openjdk-jdk8u File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 8
Source Project: openjdk-jdk8u File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 9
Source Project: jdk8u-jdk File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 10
Source Project: openjdk-jdk8u-backup File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 11
Source Project: jdk8u-dev-jdk File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 12
Source Project: openjdk-jdk9 File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 13
Source Project: jdk8u-jdk File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 14
Source Project: jdk8u-jdk File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 15
Source Project: hottub File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 16
Source Project: hottub File: TextConstructionTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); chars1 = new char[chars.length + 2]; System.arraycopy(chars, 0, chars1, 1, chars.length); ci = new ArrayCI(chars1, 1, chars.length); gv = font.createGlyphVector(frc, text); glyphs = gv.getGlyphCodes(0, gv.getNumGlyphs(), null); flags = Bidi.requiresBidi(chars, 0, chars.length) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }
Example 17
Source Project: openjdk-8-source File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 18
Source Project: jdk8u-dev-jdk File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 19
Source Project: openjdk-8 File: TextMeasureTests.java License: GNU General Public License v2.0 | 5 votes |
public void init(TestEnvironment env, Result results) { super.init(env, results); int flags = Font.LAYOUT_LEFT_TO_RIGHT; if (Bidi.requiresBidi(chars, 0, chars.length)) { // assume rtl flags = Font.LAYOUT_RIGHT_TO_LEFT; } gv = font.layoutGlyphVector(frc, chars, 0, chars.length, flags); // gv options }
Example 20
Source Project: constellation File: FontDirectionalRun.java License: Apache License 2.0 | 4 votes |
/** * The corresponding Font layout direction to this run direction. * * @return One of Font.LAYOUT_LEFT_TO_RIGHT or Font.LAYOUT_RIGHT_TO_LEFT. */ int getFontLayoutDirection() { return direction.equals(TextAttribute.RUN_DIRECTION_LTR) ? Font.LAYOUT_LEFT_TO_RIGHT : Font.LAYOUT_RIGHT_TO_LEFT; }