Codota Logo
jogamp.graph.font.typecast.ot.table
Code IndexAdd Codota to your IDE (free)

How to use jogamp.graph.font.typecast.ot.table

Best Java code snippets using jogamp.graph.font.typecast.ot.table (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public byte getFlags(final int i) {
  final GlyfCompositeComp c = getCompositeComp(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    return gd.getFlags(i - c.getFirstIndex());
  }
  return 0;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public int getEndPtOfContours(final int i) {
  final GlyfCompositeComp c = getCompositeCompEndPt(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    return gd.getEndPtOfContours(i - c.getFirstContour()) + c.getFirstIndex();
  }
  return 0;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

public Dict getTopDict(final int index) {
  final int offset = getOffset(index) - 1;
  final int len = getOffset(index + 1) - offset - 1;
  return new Dict(getData(), offset, len);
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public short getYCoordinate(final int i) {
  final GlyfCompositeComp c = getCompositeComp(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    final int n = i - c.getFirstIndex();
    final int x = gd.getXCoordinate(n);
    final int y = gd.getYCoordinate(n);
    short y1 = (short) c.scaleY(x, y);
    y1 += c.getYTranslate();
    return y1;
  }
  return 0;
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public short getXCoordinate(final int i) {
  final GlyfCompositeComp c = getCompositeComp(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    final int n = i - c.getFirstIndex();
    final int x = gd.getXCoordinate(n);
    final int y = gd.getYCoordinate(n);
    short x1 = (short) c.scaleX(x, y);
    x1 += c.getXTranslate();
    return x1;
  }
  return 0;
}
origin: org.jogamp.jogl/jogl-all-noawt

protected GlyfCompositeComp getCompositeComp(final int i) {
  GlyfCompositeComp c;
  for (int n = 0; n < _components.size(); n++) {
    c = _components.get(n);
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    if (c.getFirstIndex() <= i && i < (c.getFirstIndex() + gd.getPointCount())) {
      return c;
    }
  }
  return null;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public int getContourCount() {
  final GlyfCompositeComp c = _components.get(_components.size()-1);
  final GlyfDescript d = _parentTable.getDescription(c.getGlyphIndex());
  return c.getFirstContour() + ( null != d ? d.getContourCount() : 0 );
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

  protected GlyfCompositeComp getCompositeCompEndPt(final int i) {
    GlyfCompositeComp c;
    for (int j = 0; j < _components.size(); j++) {
      c = _components.get(j);
      final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
      if (c.getFirstContour() <= i && i < (c.getFirstContour() + gd.getContourCount())) {
        return c;
      }
    }
    return null;
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

public PrepTable(final DirectoryEntry de, final DataInput di) throws IOException {
  this.de = (DirectoryEntry) de.clone();
  readInstructions(di, de.getLength());
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

private Table readTable(
    final DataInputStream dis,
    final int tablesOrigin,
    final int tag) throws IOException {
  dis.reset();
  final DirectoryEntry entry = _tableDirectory.getEntryByTag(tag);
  if (entry == null) {
    return null;
  }
  dis.skip(tablesOrigin + entry.getOffset());
  return TableFactory.create(_fc, this, entry, dis);
}
origin: org.jogamp.jogl/jogl-all-noawt

protected FpgmTable(final DirectoryEntry de, final DataInput di) throws IOException {
  this.de = (DirectoryEntry) de.clone();
  readInstructions(di, de.getLength());
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public short getYCoordinate(final int i) {
  final GlyfCompositeComp c = getCompositeComp(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    final int n = i - c.getFirstIndex();
    final int x = gd.getXCoordinate(n);
    final int y = gd.getYCoordinate(n);
    short y1 = (short) c.scaleY(x, y);
    y1 += c.getYTranslate();
    return y1;
  }
  return 0;
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public int getEndPtOfContours(final int i) {
  final GlyfCompositeComp c = getCompositeCompEndPt(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    return gd.getEndPtOfContours(i - c.getFirstContour()) + c.getFirstIndex();
  }
  return 0;
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public byte getFlags(final int i) {
  final GlyfCompositeComp c = getCompositeComp(i);
  if (c != null) {
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    return gd.getFlags(i - c.getFirstIndex());
  }
  return 0;
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

protected GlyfCompositeComp getCompositeComp(final int i) {
  GlyfCompositeComp c;
  for (int n = 0; n < _components.size(); n++) {
    c = _components.get(n);
    final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
    if (c.getFirstIndex() <= i && i < (c.getFirstIndex() + gd.getPointCount())) {
      return c;
    }
  }
  return null;
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public int getContourCount() {
  final GlyfCompositeComp c = _components.get(_components.size()-1);
  final GlyfDescript d = _parentTable.getDescription(c.getGlyphIndex());
  return c.getFirstContour() + ( null != d ? d.getContourCount() : 0 );
}
origin: org.jogamp.jogl/jogl-all-noawt

public Dict getTopDict(final int index) {
  final int offset = getOffset(index) - 1;
  final int len = getOffset(index + 1) - offset - 1;
  return new Dict(getData(), offset, len);
}
origin: org.jogamp.jogl/jogl-all-noawt

public PrepTable(final DirectoryEntry de, final DataInput di) throws IOException {
  this.de = (DirectoryEntry) de.clone();
  readInstructions(di, de.getLength());
}
origin: org.jogamp.jogl/jogl-all-noawt

private Table readTable(
    final DataInputStream dis,
    final int tablesOrigin,
    final int tag) throws IOException {
  dis.reset();
  final DirectoryEntry entry = _tableDirectory.getEntryByTag(tag);
  if (entry == null) {
    return null;
  }
  dis.skip(tablesOrigin + entry.getOffset());
  return TableFactory.create(_fc, this, entry, dis);
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public int getPointCount() {
  final GlyfCompositeComp c = _components.get(_components.size()-1);
  final GlyphDescription gd = _parentTable.getDescription(c.getGlyphIndex());
  if (gd != null) {
    return c.getFirstIndex() + gd.getPointCount();
  } else {
    return 0;
  }
}
jogamp.graph.font.typecast.ot.table

Most used classes

  • BaseTable$Axis
  • BaseTable$BaseCoordFormat1
  • BaseTable$BaseCoordFormat2
  • BaseTable$BaseCoordFormat3
  • BaseTable$BaseLangSysRecord
  • BaseTable$BaseScriptList,
  • BaseTable$BaseScriptRecord,
  • BaseTable$BaseTagList,
  • BaseTable$BaseValues,
  • BaseTable$FeatMinMaxRecord,
  • BaseTable$MinMax,
  • BaseTable,
  • CffTable$Charset,
  • CffTable$CharsetFormat0,
  • CffTable$CharsetFormat1,
  • CffTable$CharsetFormat2,
  • CffTable$CharsetRange1,
  • CffTable$CharsetRange2,
  • CffTable$CharsetRange
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now