Java Code Examples for java.awt.Font#LAYOUT_RIGHT_TO_LEFT
The following examples show how to use
java.awt.Font#LAYOUT_RIGHT_TO_LEFT .
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: TextConstructionTests.java From openjdk-jdk8u-backup with 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 2
Source File: TextMeasureTests.java From openjdk-8 with 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 3
Source File: TextConstructionTests.java From openjdk-8-source with 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 4
Source File: TextMeasureTests.java From openjdk-8-source with 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 5
Source File: TextConstructionTests.java From hottub with 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 File: TextMeasureTests.java From hottub with 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 7
Source File: TextConstructionTests.java From jdk8u-jdk with 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 8
Source File: TextMeasureTests.java From jdk8u-jdk with 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 9
Source File: TextConstructionTests.java From openjdk-8 with 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 10
Source File: TextMeasureTests.java From jdk8u-jdk with 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 11
Source File: TextMeasureTests.java From openjdk-jdk8u-backup with 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 12
Source File: TextConstructionTests.java From openjdk-jdk8u with 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 File: TextMeasureTests.java From openjdk-jdk8u with 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 File: TextConstructionTests.java From jdk8u-jdk with 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 File: TextMeasureTests.java From jdk8u60 with 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 File: TextConstructionTests.java From jdk8u_jdk with 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 File: TextMeasureTests.java From TencentKona-8 with 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 File: TextConstructionTests.java From dragonwell8_jdk with 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 19
Source File: TextMeasureTests.java From dragonwell8_jdk with 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 File: FontDirectionalRun.java From constellation with 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; }