Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
else if let Some(c) = def_colour { c.borrow() }
else { Html::lit("black").into() }
};
- let fontsz = 4.;
+ let fontsz = LABEL_FONT_SIZE;
let PosC{ coords: [x,y] } = {
use piece_specs::PieceLabelPlace::*;
let inout = match self.place {
pub const DEFAULT_EDGE_WIDTH: f64 = 0.2;
pub const INVISIBLE_EDGE_SENSITIVE: f64 = 2.;
+pub const LABEL_FONT_SIZE: f64 = 4.0;
+
// When trying to centre text, we use text-align and/or text-anchor
// to do the horizontal positioning, but vertical positioning is
// troublesome. We bodge it. Multiple the font size (in pixels)