foresight_backend_pdf
foresight_backend_pdf, PDF output device.
One page, drawn in the pixel space of the other devices: the page's matrix maps a pixel to 0.75 pt (96 px to the inch, as CSS) with y downward, so every coordinate is written as the SVG device writes it. The file is assembled in memory (no dates nor random identifiers: the same figure gives the same bytes), its content stream uncompressed, and renamed over <file> when the page ends. The plot area is a clipping path; the data in unit-square coordinates are mapped to its pixels; the overlays of the SVG device (error bar caps, point type markers, arrowheads, data labels) are drawn after the data, clipped to the plot area as there (markers whole across the border when one crosses it). Texts are set in the 14 standard fonts (Helvetica for the sans faces, Times for the serif ones, Symbol for gnuplot's /Symbol runs), WinAnsi encoded, placed with the compiled-in fonts' metrics. Groups hidden by the layout (a visible false) are not drawn; hypertext, pixmaps and 3D scenes, which need a viewer or a PNG decoder, are left out.
Source: src/lib/foresight_backend_pdf.F90
Dependencies
Contents
- backend_pdf
- begin_page
- end_page
- begin_axes
- end_axes
- begin_group
- end_group
- rect
- polyline
- dots
- polygon
- image
- text
- begin_plot_area
- end_plot_area
- data_polyline
- data_dots
- data_bars
- data_polygon
- data_image
- readout
- data_arrows
- data_label
- front_area
- emit
- draw_text
- tex_put
- paint_path
- markers
- glyph_slot
- embed_fonts
- round_dots
- polygon_at
- draw_image
- decode
- add_bytes
- add_text
- text_width
- readout_extent
- visible
- text_face
- color_op
- alpha_state
- add_object
- add_image
- pattern_name
- outline_ops
- to_unicode
- hex2
- utf16
- hex4
- map_fill
- glass_geometry
- resource_dictionary
- clip_box
- page_x
- page_y
- page_x1
- page_y1
- path_of
- svg_path
- dashes
- pdf_string
- winansi
- text_bytes
- byte
- digits10
- point
- bytes_text
- num
Variables
| Name | Type | Attributes | Description |
|---|---|---|---|
PT_PER_PX | real(kind=R8P) | parameter | Points per pixel (96 px to the inch). |
CONTENT | integer(kind=I4P) | parameter | Destination: the page content. |
CAPS | integer(kind=I4P) | parameter | Destination: the error bar caps of the plot area. |
MARKS | integer(kind=I4P) | parameter | Destination: the point type markers of the plot area. |
HEADS | integer(kind=I4P) | parameter | Destination: the arrowheads of the plot area. |
LABELS | integer(kind=I4P) | parameter | Destination: the data labels of the plot area. |
SYMBOL_FONT | integer(kind=I4P) | parameter | Font resource of gnuplot's Symbol runs. |
BASE_FONTS | character(len=*) | parameter | Fonts. |
Derived Types
backend_pdf
PDF output device.
Inheritance
Extends: backend_object
Components
| Name | Type | Attributes | Description |
|---|---|---|---|
theme | type(theme_object) | Output theme: colors the layout's ones are mapped to (foresight_theme). | |
enhanced | logical | Texts read as gnuplot's enhanced text (foresight_enhanced). | |
latin1 | logical | Texts in ISO 8859-1, written in UTF-8 (set encoding iso_8859_1). | |
literal | logical | The texts written now as they are (an automatic title, noenhanced). | |
tex | logical | Texts are LaTeX source, set by LaTeX (cairolatex): numbers in math mode. | |
text_size | real(kind=R8P) | Default font size of the texts [px]. | |
boxed | logical | The texts written now are boxed (gnuplot's textbox): on the background. | |
page_family | character(len=48) | Font family of the page (set terminal ... font), empty: the device's. | |
font | type(font_object) | The font of the texts written now (gnuplot font "..."); unset parts the page's. | |
head_px | real(kind=R8P) | Length [px] and angle [deg] of the data arrowheads drawn now, 0 for the default head. | |
head_fixed | logical | Those heads keep their size on short arrows (gnuplot fixed). | |
embed | logical | Texts in the compiled-in fonts, embedded (Type 3, with their Unicode), else the standard fonts by name (fontnames: Helvetica, Times, Symbol). | |
line_scale | real(kind=R8P) | Every line width times this (gnuplot pdfcairo linewidth). | |
dash_scale | real(kind=R8P) | Every dash length times this (dashlength). | |
cap | character(len=7) | Line caps and joins: butt (miter joins), rounded, square. | |
mono | logical | Monochrome: lines and texts black, fills gray (mono). | |
latex | logical | drawn (the PDF its graphics). | |
tex_file | character(len=:) | allocatable | The LaTeX file (cairolatex). |
tex_header | character(len=:) | allocatable | LaTeX code of the picture (header), empty for none. |
tex_font | character(len=:) | allocatable | LaTeX font name family,series,shape, empty for none. |
tex_standalone | logical | A whole LaTeX document (standalone), else for \input. | |
tex_colortext | logical | Texts in their colors (colortext), else black. | |
tex_size | real(kind=R8P) | Font size of a standalone document [pt]. | |
file | character(len=:) | allocatable | Final output file. |
page | real(kind=R8P) | Page width and height [px]. | |
area | real(kind=R8P) | Current plot area: left, top, width, height [px]. | |
spill | logical | A marker of the current plot area crosses its border. | |
depth | integer(kind=I4P) | Groups open. | |
hidden | integer(kind=I4P) | Depth of the hidden group drawn inside, 0 if none. | |
fonts | logical | Standard font resources used. | |
font_refs | integer(kind=I4P) | Their objects. | |
page_bytes | integer(kind=I1P) | allocatable | Page content stream. |
page_used | integer(kind=I4P) | Its bytes in use. | |
caps_bytes | integer(kind=I1P) | allocatable | Error bar caps of the plot area. |
caps_used | integer(kind=I4P) | Its bytes in use. | |
marks_bytes | integer(kind=I1P) | allocatable | Point type markers of the plot area. |
marks_used | integer(kind=I4P) | Its bytes in use. | |
heads_bytes | integer(kind=I1P) | allocatable | Arrowheads of the plot area. |
heads_used | integer(kind=I4P) | Its bytes in use. | |
labels_bytes | integer(kind=I1P) | allocatable | Data labels of the plot area. |
labels_used | integer(kind=I4P) | Its bytes in use. | |
back_bytes | integer(kind=I1P) | allocatable | cairolatex: the \put lines of the back texts. |
back_used | integer(kind=I4P) | Its bytes in use. | |
front_bytes | integer(kind=I1P) | allocatable | cairolatex: the \put lines of the front texts. |
front_used | integer(kind=I4P) | Its bytes in use. | |
front | logical | cairolatex: texts now in front (the panel's plot area open). | |
object_bytes | integer(kind=I1P) | allocatable | Objects made while drawing (images, masks, patterns), whole. |
object_used | integer(kind=I4P) | Its bytes in use. | |
object_at | integer(kind=I4P) | allocatable | Offset of each of those objects in object_bytes. |
objects | integer(kind=I4P) | Objects made while drawing; the first is object 5. | |
images | integer(kind=I4P) | allocatable | Object numbers of the image XObjects (/Im1, /Im2...). |
nimages | integer(kind=I4P) | Images. | |
patterns | integer(kind=I4P) | allocatable | Object numbers of the tiling patterns (/P1, /P2...). |
npatterns | integer(kind=I4P) | Patterns. | |
pattern_last | integer(kind=I4P) | Pattern made last, 0 none. | |
pattern_key | integer(kind=I8P) | Its pattern, color and width, as one number. | |
glyph_face | integer(kind=I4P) | allocatable | Face of each glyph used. |
glyph_number | integer(kind=I4P) | allocatable | Its glyph index in the face (0: a character no face has). |
glyph_unicode | integer(kind=I4P) | allocatable | The character it shows. |
glyph_rank | integer(kind=I4P) | allocatable | Its rank among the face's glyphs used, from 1. |
nglyphs | integer(kind=I4P) | Glyphs used. | |
face_glyphs | integer(kind=I4P) | Glyphs used of each face (9: the math font). | |
font_objects | integer(kind=I4P) | Object number of each face's Type 3 fonts. | |
alphas | real(kind=R8P) | allocatable | Opacity of each graphics state (/GS1, /GS2...). |
strokes | logical | allocatable | Whether that opacity is the stroke's (CA), else the fill's (ca). |
nalphas | integer(kind=I4P) | Graphics states. |
Type-Bound Procedures
| Name | Attributes | Description |
|---|---|---|
rotates_text | pass(self) | Whether text can be rotated. |
wants_scene | pass(self) | Whether 3D scenes are written. |
scene | pass(self) | A 3D view's scene (JSON). |
row_height | pass(self) | Text row height, 0 if none. |
hover | pass(self) | Text on mouse-over of a point. |
pixmap | pass(self) | A PNG image [px]. |
begin_page | pass(self) | Start the page of width x height px for file, its default font_size [px]. |
end_page | pass(self) | Assemble the file (header, the catalog, the page tree, the page with its resources, its content, the objects made while drawing, the cross-reference table, the trailer) and publish it atomically. |
begin_axes | pass(self) | Open a panel: nothing to write (its geometry is the viewer's); cairolatex texts in the back until its plot area. |
end_axes | pass(self) | Close the panel. |
begin_group | pass(self) | Open a group: drawing inside a hidden one (visible false) is left out. |
end_group | pass(self) | Close the group. |
rect | pass(self) | Rectangle of top-left corner (x, y) [px]. |
polyline | pass(self) | Open polyline through the points (x, y) [px]. |
dots | pass(self) | Filled round dots centred on the points (x, y) [px], or point type markers. |
polygon | pass(self) | Closed polygon of the vertices (x, y) [px], filled and stroked; a ghost faintly filled only. |
image | pass(self) | Raster image over the box of top-left (x0, y0) and bottom-right (x1, y1) corners [px]. |
text | pass(self) | Text whose baseline passes through the anchor point (x, y) [px], ISO 8859-1 texts read as such (latin1). |
begin_plot_area | pass(self) | Open the plot area: a clipping path over its pixels. |
end_plot_area | pass(self) | Close the plot area, then draw its overlays: caps, markers (whole across the border if one crosses it, as the SVG device), arrowheads and data labels, clipped to the plot area. |
data_polyline | pass(self) | Open polyline through the points (x, y) [unit square], round joins (as the SVG device). |
data_dots | pass(self) | Round dots in the plot area, or point type markers queued for the markers' overlay. |
data_bars | pass(self) | Error bars [unit square]: the bars in the plot area, their caps in the caps' overlay. |
data_polygon | pass(self) | Closed polygon of the vertices (x, y) [unit square], clipped by the plot area. |
data_image | pass(self) | Raster image over the box of bottom-left (x0, y0) and top-right (x1, y1) corners [unit square]. |
text_width | pass(self) | Width of string with its superscript sup [px], from the compiled-in fonts, as the SVG device measures it. |
readout | pass(self) | Seven-segment readout of top-left corner (x, y) [px], as the SVG device draws it: the bold label above a glass slanted by 8 degrees, the unlit segments faint, the unit texts beside it. |
readout_extent | pass(self) | Width and height [px] of a readout, as the SVG device's. |
data_arrows | pass(self) | Arrows [unit square]: the shafts in the plot area, the heads (their pixel size) in the heads' overlay. |
data_label | pass(self) | Text anchored at a data point [unit square] moved by (dx, dy) [px], in the labels' overlay. |
front_area | pass(self) | The front layer of the plot area: its clip again, after the overlays. |
emit | pass(self) | Write to a destination buffer. |
text_face | pass(self) | Face of the texts written now. |
draw_text | pass(self) | A text at a pixel point, into a destination. |
tex_put | pass(self) | A text of the LaTeX picture (cairolatex). |
paint_path | pass(self) | Fill and stroke a path, into a destination. |
color_op | pass(self) | Fill or stroke color operator (with its opacity state). |
alpha_state | pass(self) | Graphics state of an opacity. |
add_object | pass(self) | Append a whole object, return its number. |
add_image | pass(self) | An image XObject (and its mask): its resource name. |
pattern_name | pass(self) | A tiling pattern of a fill pattern: its resource name. |
markers | pass(self) | Point type markers at pixel points, into a destination. |
visible | pass(self) | Whether drawing is shown (no hidden group open). |
glyph_slot | pass(self) | The font resource and code of a glyph, assigned on first use. |
embed_fonts | pass(self) | The Type 3 fonts of the glyphs used, as objects. |
backend_pdf%rotates_text
Whether the device draws text rotated, as tick labels rotated by gnuplot: true but on text devices, which write them horizontally, as gnuplot's dumb terminal.
Attributes: pure
Returns: logical
function rotates_text(self) result(rotates)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_object) | in | Device. |
Call graph
backend_pdf%wants_scene
Whether the device writes the scene of a 3D view (the HTML page, for the viewer's mouse rotation): no.
Attributes: pure
Returns: logical
function wants_scene(self) result(wants)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_object) | in | Device. |
Call graph
backend_pdf%scene
The scene of a 3D view (foresight_scene3d's JSON), in the open panel: nothing on a device without a viewer.
subroutine scene(self, json)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_object) | inout | Device. | |
json | character(len=*) | in | Scene. |
Call graph
backend_pdf%row_height
Height of a text row of the device [px]: 0 on vector devices, where text sits anywhere.
Attributes: pure
Returns: real(kind=R8P)
function row_height(self) result(height)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_object) | in | Device. |
Call graph
backend_pdf%hover
text shown on mouse-over of the point (x, y) [unit square], a disk of diameter [px] (gnuplot's hypertext): nothing on a device without a mouse.
subroutine hover(self, x, y, text, diameter)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_object) | inout | Device. | |
x | real(kind=R8P) | in | Abscissa [unit]. | |
y | real(kind=R8P) | in | Ordinate [unit]. | |
text | character(len=*) | in | Text. | |
diameter | real(kind=R8P) | in | Sensitive disk [px]. |
backend_pdf%pixmap
The PNG image png (base64) with its top left corner at (x, y), width x height [px], stretched (gnuplot set pixmap): nothing on a device without images.
subroutine pixmap(self, x, y, width, height, png)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_object) | inout | Device. | |
x | real(kind=R8P) | in | Left side [px]. | |
y | real(kind=R8P) | in | Top side [px]. | |
width | real(kind=R8P) | in | Width [px]. | |
height | real(kind=R8P) | in | Height [px]. | |
png | character(len=*) | in | The PNG file, base64. |
Call graph
Subroutines
begin_page
Start the page of width x height px for file, its default font_size [px].
subroutine begin_page(self, file, width, height, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
file | character(len=*) | in | Output file. | |
width | real(kind=R8P) | in | Page width [px]. | |
height | real(kind=R8P) | in | Page height [px]. | |
font_size | real(kind=R8P) | in | Default font size [px]. |
Call graph
end_page
Assemble the file (header, the catalog, the page tree, the page with its resources, its content, the objects made while drawing, the cross-reference table, the trailer) and publish it atomically.
subroutine end_page(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. |
Call graph
begin_axes
Open a panel: nothing to write (its geometry is the viewer's); cairolatex texts in the back until its plot area.
subroutine begin_axes(self, view)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
view | type(axes_view) | in | Panel geometry and axis ranges. |
Call graph
end_axes
Close the panel.
subroutine end_axes(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. |
Call graph
begin_group
Open a group: drawing inside a hidden one (visible false) is left out.
subroutine begin_group(self, name, visible, series)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
name | character(len=*) | in | Group name. | |
visible | logical | in | optional | Group shown. |
series | integer(kind=I4P) | in | optional | Series number. |
Call graph
end_group
Close the group.
subroutine end_group(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. |
Call graph
rect
Rectangle of top-left corner (x, y) [px].
subroutine rect(self, x, y, width, height, stroke, fill, line_width)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Left side [px]. | |
y | real(kind=R8P) | in | Top side [px]. | |
width | real(kind=R8P) | in | Width [px]. | |
height | real(kind=R8P) | in | Height [px]. | |
stroke | character(len=*) | in | Stroke color. | |
fill | character(len=*) | in | Fill color. | |
line_width | real(kind=R8P) | in | Stroke width [px]. |
Call graph
polyline
Open polyline through the points (x, y) [px].
subroutine polyline(self, x, y, color, line_width, dasharray)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Abscissae [px]. | |
y | real(kind=R8P) | in | Ordinates [px]. | |
color | character(len=*) | in | Stroke color. | |
line_width | real(kind=R8P) | in | Stroke width [px]. | |
dasharray | character(len=*) | in | SVG dash array, empty for solid. |
Call graph
dots
Filled round dots centred on the points (x, y) [px], or point type markers.
subroutine dots(self, x, y, color, diameter, pt, line_width)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Abscissae [px]. | |
y | real(kind=R8P) | in | Ordinates [px]. | |
color | character(len=*) | in | Fill color. | |
diameter | real(kind=R8P) | in | Dot diameter, or marker width [px]. | |
pt | integer(kind=I4P) | in | optional | gnuplot point type; negative or absent: round dots. |
line_width | real(kind=R8P) | in | optional | Marker line width [px]. |
Call graph
polygon
Closed polygon of the vertices (x, y) [px], filled and stroked; a ghost faintly filled only.
subroutine polygon(self, x, y, fill, opacity, stroke, line_width, ghost)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Vertex abscissae [px]. | |
y | real(kind=R8P) | in | Vertex ordinates [px]. | |
fill | character(len=*) | in | Fill color. | |
opacity | real(kind=R8P) | in | Fill opacity. | |
stroke | character(len=*) | in | Border color. | |
line_width | real(kind=R8P) | in | Border width [px]. | |
ghost | logical | in | optional | Unlit cell of a segmented fill. |
Call graph
image
Raster image over the box of top-left (x0, y0) and bottom-right (x1, y1) corners [px].
subroutine image(self, x0, y0, x1, y1, rgba)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x0 | real(kind=R8P) | in | Left [px]. | |
y0 | real(kind=R8P) | in | Top [px]. | |
x1 | real(kind=R8P) | in | Right [px]. | |
y1 | real(kind=R8P) | in | Bottom [px]. | |
rgba | integer(kind=I4P) | in | Pixels. |
Call graph
text
Text whose baseline passes through the anchor point (x, y) [px], ISO 8859-1 texts read as such (latin1).
subroutine text(self, x, y, string, anchor, sup, rotate, color)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Anchor abscissa [px]. | |
y | real(kind=R8P) | in | Anchor ordinate (baseline) [px]. | |
string | character(len=*) | in | Text. | |
anchor | character(len=*) | in | Horizontal anchor: start, middle or end. | |
sup | character(len=*) | in | optional | Superscript appended to string. |
rotate | real(kind=R8P) | in | optional | Rotation about the anchor point [deg, clockwise]. |
color | character(len=*) | in | optional | Text color, the frame's if absent. |
Call graph
begin_plot_area
Open the plot area: a clipping path over its pixels.
subroutine begin_plot_area(self, x, y, width, height)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Left side [px]. | |
y | real(kind=R8P) | in | Top side [px]. | |
width | real(kind=R8P) | in | Width [px]. | |
height | real(kind=R8P) | in | Height [px]. |
Call graph
end_plot_area
Close the plot area, then draw its overlays: caps, markers (whole across the border if one crosses it, as the SVG device), arrowheads and data labels, clipped to the plot area.
subroutine end_plot_area(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. |
Call graph
data_polyline
Open polyline through the points (x, y) [unit square], round joins (as the SVG device).
subroutine data_polyline(self, x, y, color, line_width, dasharray)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Abscissae [unit]. | |
y | real(kind=R8P) | in | Ordinates [unit]. | |
color | character(len=*) | in | Stroke color. | |
line_width | real(kind=R8P) | in | Stroke width [px]. | |
dasharray | character(len=*) | in | SVG dash array, empty for solid. |
Call graph
data_dots
Round dots in the plot area, or point type markers queued for the markers' overlay.
subroutine data_dots(self, x, y, color, diameter, pt, line_width)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Abscissae [unit]. | |
y | real(kind=R8P) | in | Ordinates [unit]. | |
color | character(len=*) | in | Fill color. | |
diameter | real(kind=R8P) | in | Dot diameter, or marker width [px]. | |
pt | integer(kind=I4P) | in | optional | gnuplot point type; negative or absent: round dots. |
line_width | real(kind=R8P) | in | optional | Marker line width [px]. |
Call graph
data_bars
Error bars [unit square]: the bars in the plot area, their caps in the caps' overlay.
subroutine data_bars(self, x1, y1, x2, y2, color, line_width, cap, vertical)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x1 | real(kind=R8P) | in | Bar start abscissae. | |
y1 | real(kind=R8P) | in | Bar start ordinates. | |
x2 | real(kind=R8P) | in | Bar end abscissae. | |
y2 | real(kind=R8P) | in | Bar end ordinates. | |
color | character(len=*) | in | Stroke color. | |
line_width | real(kind=R8P) | in | Stroke width [px]. | |
cap | real(kind=R8P) | in | Cap length [px]. | |
vertical | logical | in | Vertical bars (horizontal caps), else horizontal. |
Call graph
data_polygon
Closed polygon of the vertices (x, y) [unit square], clipped by the plot area.
subroutine data_polygon(self, x, y, fill, opacity, stroke, line_width, ghost)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Vertex abscissae [unit]. | |
y | real(kind=R8P) | in | Vertex ordinates [unit]. | |
fill | character(len=*) | in | Fill color. | |
opacity | real(kind=R8P) | in | Fill opacity. | |
stroke | character(len=*) | in | Border color. | |
line_width | real(kind=R8P) | in | Border width [px]. | |
ghost | logical | in | optional | Unlit cell of a segmented fill. |
Call graph
data_image
Raster image over the box of bottom-left (x0, y0) and top-right (x1, y1) corners [unit square].
subroutine data_image(self, x0, y0, x1, y1, rgba)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x0 | real(kind=R8P) | in | Left [unit]. | |
y0 | real(kind=R8P) | in | Bottom [unit]. | |
x1 | real(kind=R8P) | in | Right [unit]. | |
y1 | real(kind=R8P) | in | Top [unit]. | |
rgba | integer(kind=I4P) | in | Pixels. |
Call graph
readout
Seven-segment readout of top-left corner (x, y) [px], as the SVG device draws it: the bold label above a glass slanted by 8 degrees, the unlit segments faint, the unit texts beside it.
subroutine readout(self, x, y, height, masks, label, prefix, suffix, color, font_size)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Left side [px]. | |
y | real(kind=R8P) | in | Top side [px]. | |
height | real(kind=R8P) | in | Digit height [px]. | |
masks | integer(kind=I4P) | in | Segments of each cell. | |
label | character(len=*) | in | Label, empty for none. | |
prefix | character(len=*) | in | Text before the glass. | |
suffix | character(len=*) | in | Text after the glass. | |
color | character(len=*) | in | Color of the lit segments. | |
font_size | real(kind=R8P) | in | Font size of the texts [px]. |
Call graph
data_arrows
Arrows [unit square]: the shafts in the plot area, the heads (their pixel size) in the heads' overlay.
subroutine data_arrows(self, x1, y1, x2, y2, color, line_width, head, filled)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x1 | real(kind=R8P) | in | Tail abscissae [unit]. | |
y1 | real(kind=R8P) | in | Tail ordinates [unit]. | |
x2 | real(kind=R8P) | in | Tip abscissae [unit]. | |
y2 | real(kind=R8P) | in | Tip ordinates [unit]. | |
color | character(len=*) | in | Stroke color. | |
line_width | real(kind=R8P) | in | Stroke width [px]. | |
head | integer(kind=I4P) | in | Heads: 0 none, 1 end, 2 start, 3 both. | |
filled | logical | in | Filled heads. |
Call graph
data_label
Text anchored at a data point [unit square] moved by (dx, dy) [px], in the labels' overlay.
subroutine data_label(self, x, y, string, anchor, rotate, color, dx, dy)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Anchor abscissa [unit]. | |
y | real(kind=R8P) | in | Anchor ordinate [unit]. | |
string | character(len=*) | in | Text. | |
anchor | character(len=*) | in | Horizontal anchor: start, middle or end. | |
rotate | real(kind=R8P) | in | Rotation [deg, counterclockwise]. | |
color | character(len=*) | in | Text color. | |
dx | real(kind=R8P) | in | Horizontal offset [px]. | |
dy | real(kind=R8P) | in | Vertical offset [px, downward]. |
Call graph
front_area
Open (opening) or close the front layer of the plot area, drawn after its overlays (gnuplot's front objects over the markers): the plot area's clipping path again.
subroutine front_area(self, opening, separate)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
opening | logical | in | Open, else close. | |
separate | logical | out | A layer of its own. |
Call graph
emit
Append text to the destination buffer, unless inside a hidden group.
subroutine emit(self, destination, text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
destination | integer(kind=I4P) | in | CONTENT, CAPS, MARKS, HEADS or LABELS. | |
text | character(len=*) | in | Text. |
Call graph
draw_text
The UTF-8 string with its superscript sup, its baseline through (x, y) [px] anchored by anchor, rotated by rotate [deg, clockwise] about that point, in color, into destination: enhanced text by its runs (their sizes, shifts, step-backs, faces; invisible ones skipped), each run in the standard font of its face (Symbol for gnuplot's Symbol runs), placed by the compiled-in fonts' advances; a boxed text over the page color.
subroutine draw_text(self, destination, x, y, string, anchor, sup, rotate, color)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
destination | integer(kind=I4P) | in | Destination buffer. | |
x | real(kind=R8P) | in | Anchor abscissa [px]. | |
y | real(kind=R8P) | in | Baseline [px]. | |
string | character(len=*) | in | Text, UTF-8. | |
anchor | character(len=*) | in | start, middle or end. | |
sup | character(len=*) | in | Superscript, empty for none. | |
rotate | real(kind=R8P) | in | Rotation [deg, clockwise]. | |
color | character(len=*) | in | Color. |
Call graph
tex_put
The text string (LaTeX, its superscript sup raised) of the LaTeX picture, as gnuplot's epslatex texts: its center (gnuplot's vertical anchor, 0.35 base above foresight's baseline) by \put in 0.05 bp from the bottom left, \makebox(0,0)[l|r]{\strut{}...} (a text opening with { or [ its own box), \rotatebox [deg, counterclockwise], its color by \colorrgb (shown or not by \ifGPblacktext), else the frame's; in the back texts until the panel's plot area opens.
subroutine tex_put(self, x, y, string, anchor, sup, rotate, color, base)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Anchor abscissa [px]. | |
y | real(kind=R8P) | in | Baseline [px]. | |
string | character(len=*) | in | Text, LaTeX. | |
anchor | character(len=*) | in | start, middle or end. | |
sup | character(len=*) | in | Superscript, empty for none. | |
rotate | real(kind=R8P) | in | Rotation [deg, clockwise]. | |
color | character(len=*) | in | Color. | |
base | real(kind=R8P) | in | Font size [px]. |
Call graph
paint_path
Fill (fill at opacity, unless none) and stroke (stroke line_width px wide, dashed by the SVG dasharray, unless none) the path (PDF path operators, closed by the caller where needed), into destination, in its own graphics state; join 0 miter, 1 round.
subroutine paint_path(self, destination, path, fill, opacity, stroke, line_width, dasharray, join)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
destination | integer(kind=I4P) | in | Destination buffer. | |
path | character(len=*) | in | Path operators. | |
fill | character(len=*) | in | Fill color, a pattern fill, or none. | |
opacity | real(kind=R8P) | in | Fill opacity. | |
stroke | character(len=*) | in | Stroke color or none. | |
line_width | real(kind=R8P) | in | Stroke width [px]. | |
dasharray | character(len=*) | in | SVG dash array, empty for solid. | |
join | integer(kind=I4P) | in | Line join. |
Call graph
markers
The markers of gnuplot point type pt (marker_path, the SVG device's shapes) centred on (x, y) [px], into destination: the filled shapes (the dot, odd types from 5) filled and stroked, the others stroked.
subroutine markers(self, destination, x, y, color, diameter, pt, line_width)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
destination | integer(kind=I4P) | in | Destination buffer. | |
x | real(kind=R8P) | in | Abscissae [px]. | |
y | real(kind=R8P) | in | Ordinates [px]. | |
color | character(len=*) | in | Color. | |
diameter | real(kind=R8P) | in | Marker width [px]. | |
pt | integer(kind=I4P) | in | Point type, >= 0. | |
line_width | real(kind=R8P) | in | Line width [px]. |
Call graph
glyph_slot
The font resource name (E<face>_<n>) and code (1-255) of the glyph glyph of face showing unicode (glyph 0: a character no face has, drawn as nothing 0.556 em wide), assigned on its first use.
subroutine glyph_slot(self, face, glyph, unicode, name, code)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
face | integer(kind=I4P) | in | Face, 1-8. | |
glyph | integer(kind=I4P) | in | Glyph index, 0 none. | |
unicode | integer(kind=I4P) | in | Character. | |
name | character(len=:) | out | allocatable | Font resource. |
code | integer(kind=I4P) | out | Code in that font. |
Call graph
embed_fonts
The Type 3 fonts of the glyphs used: for each face and each 255 of its glyphs, a font of 1000 units to the em whose glyph procedures fill the outlines (quadratic segments as cubic ones), its widths, and a ToUnicode map (the text is selectable and searchable). Their object numbers go to font_objects.
subroutine embed_fonts(self)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. |
Call graph
round_dots
Filled round dots of diameter [px] centred on (x, y) [px]: zero-length segments with round caps.
subroutine round_dots(self, destination, x, y, color, diameter)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
destination | integer(kind=I4P) | in | Destination buffer. | |
x | real(kind=R8P) | in | Abscissae [px]. | |
y | real(kind=R8P) | in | Ordinates [px]. | |
color | character(len=*) | in | Color. | |
diameter | real(kind=R8P) | in | Diameter [px]. |
Call graph
polygon_at
Closed polygon of the vertices (x, y) [px]: filled and stroked in the theme colors; a ghost faintly filled.
subroutine polygon_at(self, x, y, fill, opacity, stroke, line_width, ghost)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
x | real(kind=R8P) | in | Vertex abscissae [px]. | |
y | real(kind=R8P) | in | Vertex ordinates [px]. | |
fill | character(len=*) | in | Fill color. | |
opacity | real(kind=R8P) | in | Fill opacity. | |
stroke | character(len=*) | in | Border color. | |
line_width | real(kind=R8P) | in | Border width [px]. | |
ghost | logical | in | optional | Unlit cell of a segmented fill. |
Call graph
draw_image
rgba stretched over the box from (left, top) to (right, bottom) [px], its first row at the top.
subroutine draw_image(self, left, top, right, bottom, rgba)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
left | real(kind=R8P) | in | Left [px]. | |
top | real(kind=R8P) | in | Top [px]. | |
right | real(kind=R8P) | in | Right [px]. | |
bottom | real(kind=R8P) | in | Bottom [px]. | |
rgba | integer(kind=I4P) | in | Pixels. |
Call graph
decode
The code point of the UTF-8 character at byte k of text and its bytes (a malformed byte: its own code).
Attributes: pure
subroutine decode(text, k, code, n)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
text | character(len=*) | in | UTF-8 text. | |
k | integer(kind=I4P) | in | First byte. | |
code | integer(kind=I4P) | out | Code point. | |
n | integer(kind=I4P) | out | Bytes. |
Call graph
add_bytes
Append bytes to buffer(1:used), grown by doubling.
Attributes: pure
subroutine add_bytes(buffer, used, bytes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
buffer | integer(kind=I1P) | inout | allocatable | Buffer. |
used | integer(kind=I4P) | inout | Bytes in use. | |
bytes | integer(kind=I1P) | in | Bytes. |
Call graph
add_text
Append the characters of text to buffer(1:used), grown by doubling.
Attributes: pure
subroutine add_text(buffer, used, text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
buffer | integer(kind=I1P) | inout | allocatable | Buffer. |
used | integer(kind=I4P) | inout | Bytes in use. | |
text | character(len=*) | in | Text. |
Call graph
Functions
text_width
Width of string with its superscript sup [px], from the compiled-in fonts, as the SVG device measures it.
Attributes: pure
Returns: real(kind=R8P)
function text_width(self, string, sup, font_size) result(width)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
string | character(len=*) | in | Text. | |
sup | character(len=*) | in | Superscript. | |
font_size | real(kind=R8P) | in | Font size [px]. |
Call graph
readout_extent
Width and height [px] of a readout, as the SVG device's.
Attributes: pure
Returns: real(kind=R8P)
function readout_extent(self, height, cells, label, prefix, suffix, font_size) result(extent)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
height | real(kind=R8P) | in | Digit height [px]. | |
cells | integer(kind=I4P) | in | Glass cells. | |
label | character(len=*) | in | Label, empty for none. | |
prefix | character(len=*) | in | Text before the glass. | |
suffix | character(len=*) | in | Text after the glass. | |
font_size | real(kind=R8P) | in | Font size of the texts [px]. |
Call graph
visible
Whether drawing is shown: no hidden group open.
Attributes: pure
Returns: logical
function visible(self) result(shown_now)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. |
Call graph
text_face
The compiled-in face (1-8) of the texts written now: self%font, its family the page's when unset.
Attributes: pure
Returns: integer(kind=I4P)
function text_face(self) result(face)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. |
Call graph
color_op
r g b rg (or RG for a stroke) of the color color, #rrggbbaa with its opacity state; unknown colors black.
Returns: character(len=:)
function color_op(self, color, stroke) result(op)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
color | character(len=*) | in | Color. | |
stroke | logical | in | Stroke color, else fill. |
Call graph
alpha_state
The graphics state resource (GS<n>) of the fill (or stroke) opacity alpha, made once.
Returns: character(len=:)
function alpha_state(self, alpha, stroke) result(name)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
alpha | real(kind=R8P) | in | Opacity. | |
stroke | logical | in | Stroke opacity, else fill. |
Call graph
add_object
Append the object body (a dictionary), followed by stream if present, as the next object made while drawing: its number (5 the first).
Returns: integer(kind=I4P)
function add_object(self, body, stream) result(number)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
body | character(len=*) | in | Dictionary. | |
stream | integer(kind=I1P) | in | optional | Stream data. |
Call graph
add_image
An image XObject of rgba(channel, column, row) (rows top to bottom), 8-bit RGB samples uncompressed, with a soft mask of its alpha when not opaque: its resource name (Im<n>).
Returns: character(len=:)
function add_image(self, rgba) result(name)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
rgba | integer(kind=I4P) | in | Pixels. |
Call graph
pattern_name
The tiling pattern of gnuplot's fill pattern kind in color, lines line_width px wide (1 px if not positive): the 8 px tile of the SVG device, in page pixels; made again only when pattern, color or width change.
Returns: character(len=:)
function pattern_name(self, kind, color, line_width) result(name)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | inout | Device. | |
kind | integer(kind=I4P) | in | Pattern number. | |
color | character(len=*) | in | Line color. | |
line_width | real(kind=R8P) | in | Line width [px]. |
Call graph
outline_ops
The fill of a glyph outline (operations 0 move, 1 line, 2 quadratic, 3 cubic, 4 close; points already scaled) and its box (left, bottom, right, top).
Returns: character(len=:)
function outline_ops(ops, points, box) result(path)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
ops | integer(kind=I4P) | in | Operations. | |
points | real(kind=R8P) | in | Points, x then y. | |
box | real(kind=R8P) | out | Box. |
Call graph
to_unicode
The ToUnicode CMap of entries (<code> <unicode> lines), codes 1 to count, in blocks of 100 (the limit of a beginbfchar block).
Attributes: pure
Returns: character(len=:)
function to_unicode(entries, count) result(cmap)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
entries | character(len=*) | in | Lines. | |
count | integer(kind=I4P) | in | Codes. |
Call graph
hex2
value (0-255) as two hexadecimal digits.
Attributes: pure
Returns: character(len=2)
function hex2(value) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
value | integer(kind=I4P) | in | Value. |
Call graph
utf16
The UTF-16 code units of the code point value, in hexadecimal: four digits, eight for a surrogate pair.
Attributes: pure
Returns: character(len=:)
function utf16(value) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
value | integer(kind=I4P) | in | Code point. |
Call graph
hex4
value (0-65535) as four hexadecimal digits.
Attributes: pure
Returns: character(len=4)
function hex4(value) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
value | integer(kind=I4P) | in | Value. |
Call graph
map_fill
The theme color of a fill, a pattern fill's color mapped inside it.
Returns: character(len=:)
function map_fill(self, fill) result(mapped)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
fill | character(len=*) | in | Fill. |
Call graph
glass_geometry
Glass of a readout of top-left corner (x, y), as the SVG device's.
Attributes: pure
Returns: real(kind=R8P)
function glass_geometry(self, x, y, height, cells, label, prefix, font_size) result(geometry)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
x | real(kind=R8P) | in | Left side [px]. | |
y | real(kind=R8P) | in | Top side [px]. | |
height | real(kind=R8P) | in | Digit height [px]. | |
cells | integer(kind=I4P) | in | Glass cells. | |
label | character(len=*) | in | Label, empty for none. | |
prefix | character(len=*) | in | Text before the glass. | |
font_size | real(kind=R8P) | in | Font size of the texts [px]. |
Call graph
resource_dictionary
The page's resources: the fonts used, the opacity states, the images, the patterns.
Returns: character(len=:)
function resource_dictionary(self) result(dictionary)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. |
Call graph
clip_box
The plot area as the clipping path.
Attributes: pure
Returns: character(len=:)
function clip_box(self) result(ops)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. |
Call graph
page_x
Pixel abscissae of the unit-square abscissae u of the plot area.
Attributes: pure
Returns: real(kind=R8P)
function page_x(self, u) result(x)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
u | real(kind=R8P) | in | Abscissae [unit]. |
Call graph
page_y
Pixel ordinates of the unit-square ordinates v (upward) of the plot area.
Attributes: pure
Returns: real(kind=R8P)
function page_y(self, v) result(y)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
v | real(kind=R8P) | in | Ordinates [unit]. |
Call graph
page_x1
Pixel abscissa of the unit-square abscissa u.
Attributes: pure
Returns: real(kind=R8P)
function page_x1(self, u) result(x)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
u | real(kind=R8P) | in | Abscissa [unit]. |
Call graph
page_y1
Pixel ordinate of the unit-square ordinate v.
Attributes: pure
Returns: real(kind=R8P)
function page_y1(self, v) result(y)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
self | class(backend_pdf) | in | Device. | |
v | real(kind=R8P) | in | Ordinate [unit]. |
Call graph
path_of
Path operators through the points (x, y) [px], closed or open; non-finite points are skipped.
Returns: character(len=:)
function path_of(x, y, closed) result(path)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
x | real(kind=R8P) | in | Abscissae [px]. | |
y | real(kind=R8P) | in | Ordinates [px]. | |
closed | logical | in | Closed. |
Call graph
svg_path
PDF path operators of the SVG path data d of foresight's shapes: M, L, H, V (absolute), h, v (relative), Z, and A half circles (two make a marker's circle), each written as two Bezier quarter arcs.
Returns: character(len=:)
function svg_path(d) result(path)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
d | character(len=*) | in | SVG path data. |
Call graph
dashes
The PDF dash array of an SVG one (4,2 -> 4 2), its lengths times scale (1 leaves them as written).
Returns: character(len=:)
function dashes(dasharray, scale) result(list)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
dasharray | character(len=*) | in | SVG dash array. | |
scale | real(kind=R8P) | in | Length factor. |
Call graph
pdf_string
The PDF literal string of the UTF-8 text: WinAnsi codes (Latin-1 and the typographic characters of 128-159), ? for a character WinAnsi lacks, raw bytes for the Symbol font (symbol); (, ) and \ escaped, codes above 126 written as octal escapes (the content stream stays ASCII).
Attributes: pure
Returns: character(len=:)
function pdf_string(text, symbol) result(literal)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
text | character(len=*) | in | Text, UTF-8. | |
symbol | logical | in | In the Symbol font: the bytes as they are. |
Call graph
winansi
The WinAnsi code of the code point code, ? (63) if it has none.
Attributes: elemental
Returns: integer(kind=I4P)
function winansi(code) result(w)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
code | integer(kind=I4P) | in | Code point. |
Call graph
text_bytes
The bytes of text.
Attributes: pure
Returns: integer(kind=I1P)
function text_bytes(text) result(bytes)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
text | character(len=*) | in | Text. |
Call graph
byte
The byte of value in 0..255.
Attributes: elemental
Returns: integer(kind=I1P)
function byte(value) result(b)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
value | integer(kind=I4P) | in | Value. |
Call graph
digits10
value on 10 digits, zero-padded (a cross-reference offset).
Attributes: pure
Returns: character(len=10)
function digits10(value) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
value | integer(kind=I4P) | in | Value. |
Call graph
point
x y [px].
Attributes: pure
Returns: character(len=:)
function point(x, y) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
x | real(kind=R8P) | in | Abscissa. | |
y | real(kind=R8P) | in | Ordinate. |
Call graph
bytes_text
The first n bytes of bytes as characters.
Attributes: pure
Returns: character(len=:)
function bytes_text(bytes, n) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
bytes | integer(kind=I1P) | in | Bytes. | |
n | integer(kind=I4P) | in | Bytes in use. |
num
A number of the content: 3 decimals at most, trailing zeros stripped (foresight_format fixed).
Attributes: pure
Returns: character(len=:)
function num(v) result(text)Arguments
| Name | Type | Intent | Attributes | Description |
|---|---|---|---|---|
v | real(kind=R8P) | in | Value. |
Call graph