From a0435df8aa30af4ea24b4b375bc1e37600bc19fe Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 29 Sep 2017 14:29:56 +0100 Subject: draw_thick_line: Bound thickness by 1.0 below A line less than 1 pixel wide may not be visible. So if a backend wants to draw a line whose width scaled by the window size, that line thickness ought to be at least 1.0. That way if the scale is small, but still big enough that there is a straightforward interpretation of the drawing primitives which is legible, we implement that interpretation. If a frontend draws a narrower line, making it wider might cause drawing anomalies, due to the line now having a bigger bounding box. These anomalies should occur only at small scales where currently the display is not legible, and we should fix them as we notice them. Signed-off-by: Ian Jackson --- devel.but | 3 +++ 1 file changed, 3 insertions(+) (limited to 'devel.but') diff --git a/devel.but b/devel.but index a38fdda..6318b82 100644 --- a/devel.but +++ b/devel.but @@ -1928,6 +1928,9 @@ Indeed, even horizontal or vertical lines may be anti-aliased. This function may be used for both drawing and printing. +If the xpecified thickness is less than 1.0, 1.0 is used. +This ensures that thin lines are visible even at small scales. + \S{drawing-draw-text} \cw{draw_text()} \c void draw_text(drawing *dr, int x, int y, int fonttype, -- cgit v1.1