Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support path function to fulfill TinyVG rendering #74

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Commits on Nov 27, 2024

  1. Implement quadratic bezier curve

    Add quadratic bezier curve support by converting quadratic spline to
    cubic spline.
    
    The conversion follows the formula:
    CP1 = P0 + 2/3 * (P1 - P0)
    CP2 = P2 + 2/3 * (P1 - P2)
    
    where:
    - P0, P1, P2 are quadratic control points
    - CP1, CP2 are the resulting cubic control points
    
    Ref:
    https://fontforge.org/docs/techref/bezier.html#converting-truetype-to-postscript
    ndsl7109256 committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    5433792 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Implement endpoint-based elliptical arc drawing

    Allow drawing elliptical arcs by specifying end points instead of
    center point, following some common vector graphic endpoint
    parameterization format.
    
    Ref:
    https://www.w3.org/TR/SVG/implnote.html
    ndsl7109256 committed Nov 28, 2024
    Configuration menu
    Copy the full SHA
    6843f10 View commit details
    Browse the repository at this point in the history