Tabnine Logo
Fixed.floatValue
Code IndexAdd Tabnine to your IDE (free)

How to use
floatValue
method
in
jogamp.graph.font.typecast.ot.Fixed

Best Java code snippets using jogamp.graph.font.typecast.ot.Fixed.floatValue (Showing top 14 results out of 315)

origin: org.jogamp.jogl/jogl-all-noawt

  public static float roundedFloatValue(final long fixed, final int decimalPlaces) {
    final int factor = 10 * decimalPlaces;
    return (float)((int)(floatValue(fixed) * factor)) / factor;
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

  public static float roundedFloatValue(final long fixed, final int decimalPlaces) {
    final int factor = 10 * decimalPlaces;
    return (float)((int)(floatValue(fixed) * factor)) / factor;
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder()
      .append("Offset Table\n------ -----")
      .append("\n  sfnt version:     ").append(Fixed.floatValue(_version))
      .append("\n  numTables =       ").append(_numTables)
      .append("\n  searchRange =     ").append(_searchRange)
      .append("\n  entrySelector =   ").append(_entrySelector)
      .append("\n  rangeShift =      ").append(_rangeShift)
      .append("\n\n");
    for (int i = 0; i < _numTables; i++) {
      sb.append(i).append(". ").append(_entries[i].toString()).append("\n");
    }
    return sb.toString();
  }
}
origin: org.jogamp.jogl/jogl-all-noawt

  @Override
  public String toString() {
    final StringBuilder sb = new StringBuilder()
      .append("Offset Table\n------ -----")
      .append("\n  sfnt version:     ").append(Fixed.floatValue(_version))
      .append("\n  numTables =       ").append(_numTables)
      .append("\n  searchRange =     ").append(_searchRange)
      .append("\n  entrySelector =   ").append(_entrySelector)
      .append("\n  rangeShift =      ").append(_rangeShift)
      .append("\n\n");
    for (int i = 0; i < _numTables; i++) {
      sb.append(i).append(". ").append(_entries[i].toString()).append("\n");
    }
    return sb.toString();
  }
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public String toString() {
  return new StringBuilder()
    .append("'hhea' Table - Horizontal Header\n--------------------------------")
    .append("\n        'hhea' version:       ").append(Fixed.floatValue(version))
    .append("\n        yAscender:            ").append(ascender)
    .append("\n        yDescender:           ").append(descender)
    .append("\n        yLineGap:             ").append(lineGap)
    .append("\n        advanceWidthMax:      ").append(advanceWidthMax)
    .append("\n        minLeftSideBearing:   ").append(minLeftSideBearing)
    .append("\n        minRightSideBearing:  ").append(minRightSideBearing)
    .append("\n        xMaxExtent:           ").append(xMaxExtent)
    .append("\n        horizCaretSlopeNum:   ").append(caretSlopeRise)
    .append("\n        horizCaretSlopeDenom: ").append(caretSlopeRun)
    .append("\n        reserved0:            0")
    .append("\n        reserved1:            0")
    .append("\n        reserved2:            0")
    .append("\n        reserved3:            0")
    .append("\n        reserved4:            0")
    .append("\n        metricDataFormat:     ").append(metricDataFormat)
    .append("\n        numOf_LongHorMetrics: ").append(numberOfHMetrics)
    .toString();
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public String toString() {
  return new StringBuilder()
    .append("'vhea' Table - Vertical Header\n------------------------------")
    .append("\n        'vhea' version:       ").append(Fixed.floatValue(_version))
    .append("\n        xAscender:            ").append(_ascent)
    .append("\n        xDescender:           ").append(_descent)
    .append("\n        xLineGap:             ").append(_lineGap)
    .append("\n        advanceHeightMax:     ").append(_advanceHeightMax)
    .append("\n        minTopSideBearing:    ").append(_minTopSideBearing)
    .append("\n        minBottomSideBearing: ").append(_minBottomSideBearing)
    .append("\n        yMaxExtent:           ").append(_yMaxExtent)
    .append("\n        horizCaretSlopeNum:   ").append(_caretSlopeRise)
    .append("\n        horizCaretSlopeDenom: ").append(_caretSlopeRun)
    .append("\n        reserved0:            0")
    .append("\n        reserved1:            0")
    .append("\n        reserved2:            0")
    .append("\n        reserved3:            0")
    .append("\n        reserved4:            0")
    .append("\n        metricDataFormat:     ").append(_metricDataFormat)
    .append("\n        numOf_LongVerMetrics: ").append(_numberOfLongVerMetrics)
    .toString();
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public String toString() {
  return new StringBuilder()
    .append("'vhea' Table - Vertical Header\n------------------------------")
    .append("\n        'vhea' version:       ").append(Fixed.floatValue(_version))
    .append("\n        xAscender:            ").append(_ascent)
    .append("\n        xDescender:           ").append(_descent)
    .append("\n        xLineGap:             ").append(_lineGap)
    .append("\n        advanceHeightMax:     ").append(_advanceHeightMax)
    .append("\n        minTopSideBearing:    ").append(_minTopSideBearing)
    .append("\n        minBottomSideBearing: ").append(_minBottomSideBearing)
    .append("\n        yMaxExtent:           ").append(_yMaxExtent)
    .append("\n        horizCaretSlopeNum:   ").append(_caretSlopeRise)
    .append("\n        horizCaretSlopeDenom: ").append(_caretSlopeRun)
    .append("\n        reserved0:            0")
    .append("\n        reserved1:            0")
    .append("\n        reserved2:            0")
    .append("\n        reserved3:            0")
    .append("\n        reserved4:            0")
    .append("\n        metricDataFormat:     ").append(_metricDataFormat)
    .append("\n        numOf_LongVerMetrics: ").append(_numberOfLongVerMetrics)
    .toString();
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public String toString() {
  return new StringBuilder()
    .append("'hhea' Table - Horizontal Header\n--------------------------------")
    .append("\n        'hhea' version:       ").append(Fixed.floatValue(version))
    .append("\n        yAscender:            ").append(ascender)
    .append("\n        yDescender:           ").append(descender)
    .append("\n        yLineGap:             ").append(lineGap)
    .append("\n        advanceWidthMax:      ").append(advanceWidthMax)
    .append("\n        minLeftSideBearing:   ").append(minLeftSideBearing)
    .append("\n        minRightSideBearing:  ").append(minRightSideBearing)
    .append("\n        xMaxExtent:           ").append(xMaxExtent)
    .append("\n        horizCaretSlopeNum:   ").append(caretSlopeRise)
    .append("\n        horizCaretSlopeDenom: ").append(caretSlopeRun)
    .append("\n        reserved0:            0")
    .append("\n        reserved1:            0")
    .append("\n        reserved2:            0")
    .append("\n        reserved3:            0")
    .append("\n        reserved4:            0")
    .append("\n        metricDataFormat:     ").append(metricDataFormat)
    .append("\n        numOf_LongHorMetrics: ").append(numberOfHMetrics)
    .toString();
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public String toString() {
  final StringBuilder sb = new StringBuilder();
  sb.append("'maxp' Table - Maximum Profile\n------------------------------")
    .append("\n        'maxp' version:         ").append(Fixed.floatValue(versionNumber))
    .append("\n        numGlyphs:              ").append(numGlyphs);
  if (versionNumber == 0x00010000) {
    sb.append("\n        maxPoints:              ").append(maxPoints)
      .append("\n        maxContours:            ").append(maxContours)
      .append("\n        maxCompositePoints:     ").append(maxCompositePoints)
      .append("\n        maxCompositeContours:   ").append(maxCompositeContours)
      .append("\n        maxZones:               ").append(maxZones)
      .append("\n        maxTwilightPoints:      ").append(maxTwilightPoints)
      .append("\n        maxStorage:             ").append(maxStorage)
      .append("\n        maxFunctionDefs:        ").append(maxFunctionDefs)
      .append("\n        maxInstructionDefs:     ").append(maxInstructionDefs)
      .append("\n        maxStackElements:       ").append(maxStackElements)
      .append("\n        maxSizeOfInstructions:  ").append(maxSizeOfInstructions)
      .append("\n        maxComponentElements:   ").append(maxComponentElements)
      .append("\n        maxComponentDepth:      ").append(maxComponentDepth);
  } else {
    sb.append("\n");
  }
  return sb.toString();
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

@Override
public String toString() {
  return new StringBuilder()
    .append("'head' Table - Font Header\n--------------------------")
    .append("\n  'head' version:      ").append(Fixed.floatValue(_versionNumber))
    .append("\n  fontRevision:        ").append(Fixed.roundedFloatValue(_fontRevision, 8))
    .append("\n  checkSumAdjustment:  0x").append(Integer.toHexString(_checkSumAdjustment).toUpperCase())
    .append("\n  magicNumber:         0x").append(Integer.toHexString(_magicNumber).toUpperCase())
    .append("\n  flags:               0x").append(Integer.toHexString(_flags).toUpperCase())
    .append("\n  unitsPerEm:          ").append(_unitsPerEm)
    .append("\n  created:             ").append(_created)
    .append("\n  modified:            ").append(_modified)
    .append("\n  xMin:                ").append(_xMin)
    .append("\n  yMin:                ").append(_yMin)
    .append("\n  xMax:                ").append(_xMax)
    .append("\n  yMax:                ").append(_yMax)
    .append("\n  macStyle bits:       ").append(Integer.toHexString(_macStyle).toUpperCase())
    .append("\n  lowestRecPPEM:       ").append(_lowestRecPPEM)
    .append("\n  fontDirectionHint:   ").append(_fontDirectionHint)
    .append("\n  indexToLocFormat:    ").append(_indexToLocFormat)
    .append("\n  glyphDataFormat:     ").append(_glyphDataFormat)
    .toString();
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public String toString() {
  return new StringBuilder()
    .append("'head' Table - Font Header\n--------------------------")
    .append("\n  'head' version:      ").append(Fixed.floatValue(_versionNumber))
    .append("\n  fontRevision:        ").append(Fixed.roundedFloatValue(_fontRevision, 8))
    .append("\n  checkSumAdjustment:  0x").append(Integer.toHexString(_checkSumAdjustment).toUpperCase())
    .append("\n  magicNumber:         0x").append(Integer.toHexString(_magicNumber).toUpperCase())
    .append("\n  flags:               0x").append(Integer.toHexString(_flags).toUpperCase())
    .append("\n  unitsPerEm:          ").append(_unitsPerEm)
    .append("\n  created:             ").append(_created)
    .append("\n  modified:            ").append(_modified)
    .append("\n  xMin:                ").append(_xMin)
    .append("\n  yMin:                ").append(_yMin)
    .append("\n  xMax:                ").append(_xMax)
    .append("\n  yMax:                ").append(_yMax)
    .append("\n  macStyle bits:       ").append(Integer.toHexString(_macStyle).toUpperCase())
    .append("\n  lowestRecPPEM:       ").append(_lowestRecPPEM)
    .append("\n  fontDirectionHint:   ").append(_fontDirectionHint)
    .append("\n  indexToLocFormat:    ").append(_indexToLocFormat)
    .append("\n  glyphDataFormat:     ").append(_glyphDataFormat)
    .toString();
}
origin: org.jogamp.jogl/jogl-all-noawt

@Override
public String toString() {
  final StringBuilder sb = new StringBuilder();
  sb.append("'maxp' Table - Maximum Profile\n------------------------------")
    .append("\n        'maxp' version:         ").append(Fixed.floatValue(versionNumber))
    .append("\n        numGlyphs:              ").append(numGlyphs);
  if (versionNumber == 0x00010000) {
    sb.append("\n        maxPoints:              ").append(maxPoints)
      .append("\n        maxContours:            ").append(maxContours)
      .append("\n        maxCompositePoints:     ").append(maxCompositePoints)
      .append("\n        maxCompositeContours:   ").append(maxCompositeContours)
      .append("\n        maxZones:               ").append(maxZones)
      .append("\n        maxTwilightPoints:      ").append(maxTwilightPoints)
      .append("\n        maxStorage:             ").append(maxStorage)
      .append("\n        maxFunctionDefs:        ").append(maxFunctionDefs)
      .append("\n        maxInstructionDefs:     ").append(maxInstructionDefs)
      .append("\n        maxStackElements:       ").append(maxStackElements)
      .append("\n        maxSizeOfInstructions:  ").append(maxSizeOfInstructions)
      .append("\n        maxComponentElements:   ").append(maxComponentElements)
      .append("\n        maxComponentDepth:      ").append(maxComponentDepth);
  } else {
    sb.append("\n");
  }
  return sb.toString();
}
origin: ch.unibas.cs.gravis/scalismo-native-stub

final StringBuilder sb = new StringBuilder();
sb.append("'post' Table - PostScript Metrics\n---------------------------------\n")
  .append("\n        'post' version:        ").append(Fixed.floatValue(version))
  .append("\n        italicAngle:           ").append(Fixed.floatValue(italicAngle))
  .append("\n        underlinePosition:     ").append(underlinePosition)
  .append("\n        underlineThickness:    ").append(underlineThickness)
origin: org.jogamp.jogl/jogl-all-noawt

final StringBuilder sb = new StringBuilder();
sb.append("'post' Table - PostScript Metrics\n---------------------------------\n")
  .append("\n        'post' version:        ").append(Fixed.floatValue(version))
  .append("\n        italicAngle:           ").append(Fixed.floatValue(italicAngle))
  .append("\n        underlinePosition:     ").append(underlinePosition)
  .append("\n        underlineThickness:    ").append(underlineThickness)
jogamp.graph.font.typecast.otFixedfloatValue

Popular methods of Fixed

  • roundedFloatValue

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getSystemService (Context)
  • findViewById (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • JPanel (javax.swing)
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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