Scalable Vector Graphics (SVG) Knowledge

Kip Landergren

(Updated: )

My Scalable Vector Graphics (SVG) knowledge base explaining the basics.

Contents#

Overview#

Scalable Vector Graphics (SVG) is an XML-based markup language and format for creating 2D vector graphics.

Of note, an SVG graphic may be:

Mutli-line text is not natively supported: each line and line break must be managed individually.

Core Idea#

Describe how the image should look using markup to represent shapes, text, and operations, and have clients render as a vector graphic.

Key Concepts#

Coordinate System and Positioning#

The origin, (0, 0), is located in the upper left hand corner, with the x-axis increasing to the east and the y-axis increasing to the south. Pixels in this coordinate system are translated into user units for rendering.

Terminology#

absolute unit#
1.

A unit in “pt” or “cm”

Related:

absolute units#
1.

units in “pt” or “cm”

Related:

raster#
1.

dot matrix data structure that represents a generally rectangular grid of pixels

raster#
1.

Dot matrix data structure that represents a generally rectangular grid of pixels.

user units#
1.

Plain numbers, no unit type. one user unit equals one screen unit.

Related:

user units#
1.

plain numbers, no unit type. one user unit equals one screen unit

Related: