Tabnine Logo
TextSpanLayout.getGlyphIndex
Code IndexAdd Tabnine to your IDE (free)

How to use
getGlyphIndex
method
in
org.apache.batik.bridge.TextSpanLayout

Best Java code snippets using org.apache.batik.bridge.TextSpanLayout.getGlyphIndex (Showing top 7 results out of 315)

origin: apache/fop

/**
 * @param ch a character
 * @param layout a text span layout
 * @param index an index
 * @param visibleChar visible character flag
 */
protected final void logCharacter(char ch, TextSpanLayout layout, int index,
    boolean visibleChar) {
  if (log.isTraceEnabled()) {
    log.trace("glyph " + index
        + " -> " + layout.getGlyphIndex(index) + " => " + ch);
    if (CharUtilities.isAnySpace(ch) && ch != 32) {
      log.trace("Space found: " + Integer.toHexString(ch));
    } else if (ch == CharUtilities.ZERO_WIDTH_JOINER) {
      log.trace("ZWJ found: " + Integer.toHexString(ch));
    } else if (ch == CharUtilities.SOFT_HYPHEN) {
      log.trace("Soft hyphen found: " + Integer.toHexString(ch));
    }
    if (!visibleChar) {
      log.trace("Invisible glyph found: " + Integer.toHexString(ch));
    }
  }
}
origin: apache/batik

TextSpanLayout tsl = tr.getLayout();
if (startGlyphIndex == -1) {
  startGlyphIndex  = tsl.getGlyphIndex(result[0]);
  if (startGlyphIndex != -1)
    startLayout = tsl;
  endGlyphIndex = tsl.getGlyphIndex(result[1]);
  if (endGlyphIndex != -1)
    endLayout = tsl;
origin: fr.avianey.apache-xmlgraphics/batik

TextSpanLayout tsl = tr.getLayout();
if (startGlyphIndex == -1) {
  startGlyphIndex  = tsl.getGlyphIndex(result[0]);
  if (startGlyphIndex != -1)
    startLayout = tsl;
  endGlyphIndex = tsl.getGlyphIndex(result[1]);
  if (endGlyphIndex != -1)
    endLayout = tsl;
origin: fr.avianey.apache-xmlgraphics/batik

  info.glyphIndexEnd = info.layout.getGlyphCount()-1;
} else {
  info.glyphIndexStart = info.layout.getGlyphIndex
    (info.characterIndex);
origin: org.apache.xmlgraphics/batik-bridge

TextSpanLayout tsl = tr.getLayout();
if (startGlyphIndex == -1) {
  startGlyphIndex  = tsl.getGlyphIndex(result[0]);
  if (startGlyphIndex != -1)
    startLayout = tsl;
  endGlyphIndex = tsl.getGlyphIndex(result[1]);
  if (endGlyphIndex != -1)
    endLayout = tsl;
origin: apache/batik

  info.glyphIndexEnd = info.layout.getGlyphCount() - 1;
} else {
  info.glyphIndexStart = info.layout.getGlyphIndex
      (info.characterIndex);
origin: org.apache.xmlgraphics/batik-bridge

  info.glyphIndexEnd = info.layout.getGlyphCount() - 1;
} else {
  info.glyphIndexStart = info.layout.getGlyphIndex
      (info.characterIndex);
org.apache.batik.bridgeTextSpanLayoutgetGlyphIndex

Javadoc

Returns the glyph index of the glyph that has the specified char index.

Popular methods of TextSpanLayout

  • draw
    Paints the specified text layout using the specified Graphics2D and rendering context.
  • getAdvance2D
    Returns the current text position at the completion of glyph layout. (This is the position that shou
  • getGlyphAdvances
    Returns the advance between each glyph in text progression direction.
  • getGlyphCount
    Returns the number of glyphs in this layout.
  • getGlyphVector
    Return the glyph vector asociated to this layout.
  • getBounds2D
    Returns the rectangular bounds of the completed glyph layout. This includes stroking information, th
  • getCharacterCount
    Returns the number of chars represented by the glyphs within the specified range.
  • getComputedOrientationAngle
    Return the rotation angle applied to the character.
  • getDecorationOutline
    Returns the outline of the specified decorations on the glyphs, transformed by an AffineTransform.
  • getGlyphMetrics
    Returns the Metrics for a particular glyph.
  • getHighlightShape
    Returns a Shape which encloses the currently selected glyphs as specified by glyph indices begin and
  • getLineMetrics
    Returns the Line metrics for this text span.
  • getHighlightShape,
  • getLineMetrics,
  • getOutline,
  • getTextPathAdvance,
  • hasCharacterIndex,
  • hitTestChar,
  • isLeftToRight,
  • isOnATextPath,
  • isVertical

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now