Next: (ggg sxml), Previous: (ggg style), Up: API
Estimate the width of a badge section in pixels: TEXT at FONT-SIZE plus PADDING on both sides, drawn at BADGE-SCALE. The per-character widths are averages for the sans-serif stack badges use, so a badge stays as compact as the ones shields.io and GitHub render. The result is rounded to a whole pixel.
VALUE rounded to two decimals, so that a coordinate built by adding or subtracting scaled dimensions stays short in the SVG.
VALUE scaled by BADGE-SCALE, rounded to two decimals so that coordinates stay short in the SVG.
1.0918