Debian Codegraph @

devel-docs/learning.rst

raw
1 Learning resources
2 ==================
3
4 Like any other part of the web platform, SVG is a bit fractally
5 complex. There is the SVG format itself, its drawing model, text
6 layout, font rendering, image compositing, and a bunch of fascinating
7 topics. This chapter has links to various places where you can learn
8 about these topics.
9
10
11 The SVG format
12 --------------
13
14 `SVG Tutorial as an advent calendar <https://svg-tutorial.com/>`__ —
15 24 short lessons to learn basic SVG features.
16
17 `Blind SVG <https://blindsvg.com/>`__ — This is the absolute best
18 guide I have found for learning the SVG format gradually. It is
19 designed so that blind and low-vision people can learn to write their
20 own illustrations using SVG, but it is useful for everyone!
21
22 `SVG tutorial at Mozilla Developer's Network
23 <https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial>`__ —
24 Detailed and friendly.
25
26 `Codepen <https://codepen.io/pen/>`__ — lets you paste SVG code in its
27 usual HTML editor and see it rendered immediately. You can also add a
28 CSS stylesheet to experiment with styles.
29
30
31 The text rendering pipeline
32 ---------------------------
33
34 `The journey of a word: how text ends up on a page
35 <https://www.youtube.com/watch?v=Is4PW6f4Pk4>`__ — talk by Simon
36 Cozens. Talks about peculiarities of different language families,
37 their writing systems, complex text shaping, the OpenType font
38 formats, and how Harfbuzz works. **You should absolutely watch this talk!**
39
40 `How Unicode Characters Become Glyphs on Your Screen
41 <https://www.youtube.com/watch?v=bt4MwIpcp2M>`__ — similar in spirit
42 to the talk above, but a bit more detailed. Talks about typography
43 terminology, text segmentation, OpenType font features, and text
44 layout in some detail.
45
46 `The rendering pipeline in Pango
47 <https://docs.gtk.org/Pango/pango_rendering.html>`__ — Pango is
48 GNOME's text layout engine, which librsvg also uses. This is a page
49 from Pango's documentation, with a high-level overview of the
50 pipeline. You can then research individual terms like *itemization*,
51 *shaping*, etc.
52
53 `Pango, an open-source Unicode text layout engine
54 <https://people.redhat.com/otaylor/iuc25/pango-unicode-paper.pdf>`__
55 by Owen Taylor, original author of Pango. This paper is a bit old,
56 but provides a good overview of what Pango does. See also one of the
57 first papers about it, `Pango: internationalized text handling
58 <https://web.archive.org/web/20120227064838/http://ols.fedoraproject.org/OLS/Reprints-2001/taylor.pdf>`__.
59
60 `Complex text layout <https://en.wikipedia.org/wiki/Complex_text_layout>`__ on Wikipedia
61
62 `Text directionality
63 <https://learn.microsoft.com/en-us/globalization/fonts-layout/text-directionality>`__
64 — describes how different writing systems use different
65 directionalities, how logical order differs from visual order, and the
66 Unicode directional formatting characters.
67
68 `Ten years of Harfbuzz
69 <https://www.youtube.com/watch?v=T79LMEXkf9w>`__ by Behdad
70 Esfahbod, the maintainer of Harfbuzz, which provides the text shaping
71 engine for librsvg and GNOME. This talk is mostly history, as it name implies.
72
73 `State of Text Rendering 2024 <https://behdad.org/text2024/>`__ — This
74 is a big document; read it casually. It describes all the parts, all
75 the things, all the people, all the projects.
76
77
78 General knowledge
79 -----------------
80
81 `Why are 2D vector graphics so much harder than 3D?
82 <https://blog.mecheye.net/2019/05/why-is-2d-graphics-is-harder-than-3d-graphics/>`__
83 — a quick history of 2D graphics with lots of links for you to dive
84 into history. The other articles in that blog are incredibly good, by
85 the way.
86
87 `Porter/Duff Compositing and Blend Modes
88 <https://ssp.impulsetrain.com/porterduff.html>`__ — how the alpha
89 channel works, the Porter/Duff compositing algebra and operators.