sun.font.FontResolver Java Examples
The following examples show how to use
sun.font.FontResolver.
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: TextLine.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #2
Source File: TextLine.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #3
Source File: TextLine.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #4
Source File: TextLine.java From Bytecoder with Apache License 2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #5
Source File: TextLine.java From Java8CN with Apache License 2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #6
Source File: TextLine.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #7
Source File: TextLine.java From hottub with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #8
Source File: TextLine.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #9
Source File: TextLine.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #10
Source File: TextLine.java From JDKSourceCode1.8 with MIT License | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #11
Source File: TextLine.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #12
Source File: TextLine.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #13
Source File: TextLine.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #14
Source File: TextLine.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #15
Source File: TextLine.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #16
Source File: TextLine.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #17
Source File: TextLine.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #18
Source File: TextLine.java From jdk-1.7-annotated with Apache License 2.0 | 6 votes |
static Font getFontAtCurrentPos(AttributedCharacterIterator aci) { Object value = aci.getAttribute(TextAttribute.FONT); if (value != null) { return (Font) value; } if (aci.getAttribute(TextAttribute.FAMILY) != null) { return Font.getFont(aci.getAttributes()); } int ch = CodePointIterator.create(aci).next(); if (ch != CodePointIterator.DONE) { FontResolver resolver = FontResolver.getInstance(); return resolver.getFont(resolver.getFontIndex(ch), aci.getAttributes()); } return null; }
Example #19
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 #20
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 #21
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 #22
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 #23
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); } }
Example #24
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 #25
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 #26
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 #27
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 #28
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 #29
Source File: StyledParagraph.java From openjdk-jdk9 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 #30
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); } }