printed.canvas.irenderer

Generic 2D vector renderer.

Public Imports

printed.canvas.image
public import printed.canvas.image;

Members

Enums

FontStyle
enum FontStyle

Font style

FontWeight
enum FontWeight

Font weight

TextAlign
enum TextAlign

Undocumented in source.

TextBaseline
enum TextBaseline

Undocumented in source.

Functions

brush
Brush brush(int r, int g, int b, int a)
Brush brush(int r, int g, int b)
Brush brush(string htmlColor)

Make a brush suitable for fillStyle and strokeStyle.

convertMillimetersToPoints
float convertMillimetersToPoints(float pt)

Undocumented in source. Be warned that the author may not have intended to support it.

convertPointsToMillimeters
float convertPointsToMillimeters(float pt)

Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

IRenderingContext2D
interface IRenderingContext2D

Describes the printed 2D renderer. This is the law, specific implementation MUST obey this interface and not the underlying implementation in PDF/SVG/whatever (and if necessary revise this spec). We are heavily influenced by the HTML5 Canvas 2D context API, for its familiarity. See_also: https://www.w3.org/TR/2dcontext/

Structs

Brush
struct Brush

Undocumented in source.

TextMetrics
struct TextMetrics

The TextMetrics interface represents the dimensions of a piece of text, as created by the measureText() method.

Meta