madhead / madhead.me

My blog with rants and pet-projects
https://madhead.me
0 stars 0 forks source link

Skija #25

Open madhead opened 2 years ago

madhead commented 2 years ago

A series of articles about Skija.

madhead commented 2 years ago

TextLine / TextBlobTypeface — basically, a font data and metadata. TTF. ✅ Font — typeface + fontSize + options ✅ TextLine TextBlob

madhead commented 2 years ago

Canvas / SkCanvas — drawing context (you draw on it) SkCanvas is the drawing context for Skia. It knows where to direct the drawing (i.e. where the screen of offscreen pixels are), and maintains a stack of matrices and clips. Note however, that unlike similar contexts in other APIs like postscript, cairo, or awt, Skia does not store any other drawing attributes in the context (e.g. color, pen size). Rather, these are specified explicitly in each draw call, via a SkPaint.

Raster backend — for drawing in-memory with CPU (good for you headless backend).

path.closePath() instead of path.close()!!! SIGSERV OTHERWISE!

madhead commented 2 years ago

Topics to vover:

Managed class Native class RefCnt class

madhead commented 2 years ago

Paints, Paths & Contours

madhead commented 2 years ago

Transformations