Interface HintedOutlineConsumer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void closepath()
      A closepath command was seen.
      void flex​(double depth, double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4, double x5, double y5, double x6, double y6)
      A flex command was seen
      void globalColorOn()
      A command was seen that says that global coloring applies to this glyph.
      void noCounters()
      A command was seen that says that the glyph has no counters.
      void noHints()
      A command was seen that says that no hints should be applied to the next part of the glyph.
      void stem​(double edge1, double edge2, boolean doHintSubstitution, boolean isVertical, boolean isCounter)
      A stem command was seen.
      void stem3​(double edge1, double edge2, double edge3, double edge4, double edge5, double edge6, boolean doHintSubstitution, boolean isVertical)
      A hstem3 or vstem3 command was seen.
      boolean width​(double wx)
      The advance width of the glyph in the x direction
    • Method Detail

      • stem

        void stem​(double edge1,
                  double edge2,
                  boolean doHintSubstitution,
                  boolean isVertical,
                  boolean isCounter)
        A stem command was seen.
        Parameters:
        edge1 - The bottom/left edge.
        edge2 - The top/right edge. If isCounter is false and the stem is a topmost, rightmost, bottommost, or leftmost edge, the order of the edges is reversed (ie edge1 > edge2). If isCounter is true and the stem is the last counter in the current counter group, the order of the edges is reversed (ie edge1 > edge2).
        doHintSubstitution - If isCounter is false, hint substitution must occur at this point iff doHintSubstitution is true. Else iff doHintSubstitution is true and isCounter is true, a new counter group must be started at this point.
        isVertical - true iff the command was a vertical stem/counter.
        isCounter - true iff the stem should be added to the current counter group.
      • stem3

        void stem3​(double edge1,
                   double edge2,
                   double edge3,
                   double edge4,
                   double edge5,
                   double edge6,
                   boolean doHintSubstitution,
                   boolean isVertical)
        A hstem3 or vstem3 command was seen. The relevant edges are returned
        Parameters:
        doHintSubstitution - If true, hint substitution must occur at this point.
        isVertical - true iff this command is a vstem3
      • globalColorOn

        void globalColorOn()
        A command was seen that says that global coloring applies to this glyph. One pass global coloring should be used if <@link HintedOutlineConsumer#noCounters()> is called or if a counter hint is associated with this glyph. Otherwise, two pass global coloring should be used.
      • noCounters

        void noCounters()
        A command was seen that says that the glyph has no counters.
      • noHints

        void noHints()
        A command was seen that says that no hints should be applied to the next part of the glyph.
      • width

        boolean width​(double wx)
        The advance width of the glyph in the x direction
        Parameters:
        wx - the advance width
        Returns:
        true if charstring processing should continue. false otherwise.
      • closepath

        void closepath()
        A closepath command was seen. Note that closepath does NOT update the current point.
      • flex

        void flex​(double depth,
                  double x1,
                  double y1,
                  double x2,
                  double y2,
                  double x3,
                  double y3,
                  double x4,
                  double y4,
                  double x5,
                  double y5,
                  double x6,
                  double y6)
        A flex command was seen