Java Code Examples for sun.text.CodePointIterator#create()
The following examples show how to use
sun.text.CodePointIterator#create() .
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: StyledParagraph.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 2
Source File: StyledParagraph.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 3
Source File: StyledParagraph.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 4
Source File: StyledParagraph.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 5
Source File: StyledParagraph.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 6
Source File: StyledParagraph.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 7
Source File: StyledParagraph.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 8
Source File: StyledParagraph.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 9
Source File: StyledParagraph.java From Java8CN with Apache License 2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 10
Source File: StyledParagraph.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 11
Source File: StyledParagraph.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 12
Source File: StyledParagraph.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 13
Source File: StyledParagraph.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 14
Source File: StyledParagraph.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 15
Source File: StyledParagraph.java From jdk-1.7-annotated with Apache License 2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }
Example 16
Source File: StyledParagraph.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
/** * Resolve the given chars into Fonts using FontResolver, then add * font runs for each. */ private void addFonts(char[] chars, Map<? extends Attribute, ?> attributes, int start, int limit) { FontResolver resolver = FontResolver.getInstance(); CodePointIterator iter = CodePointIterator.create(chars, start, limit); for (int runStart = iter.charIndex(); runStart < limit; runStart = iter.charIndex()) { int fontIndex = resolver.nextFontRunIndex(iter); addFont(resolver.getFont(fontIndex, attributes), runStart); } }