// SPDX-License-Identifier: GPL-3.0-or-later
#include "web_buffer_svg.h"
#define BADGE_HORIZONTAL_PADDING 4
#define VERDANA_KERNING 0.2
#define VERDANA_PADDING 1.0
/*
* verdana11_widths[] has been generated with this method:
* https://github.com/badges/shields/blob/master/measure-text.js
*/
static double verdana11_widths[128] = {
[0] = 0.0,
[1] = 0.0,
[2] = 0.0,
[3] = 0.0,
[4] = 0.0,
[5] = 0.0,
[6] = 0.0,
[7] = 0.0,
[8] = 0.0,
[9] = 0.0,
[10] = 0.0,
[11] = 0.0,
[12] = 0.0,
[13] = 0.0,
[14] = 0.0,
[15] = 0.0,
[16] = 0.0,
[17] = 0.0,
[18] = 0.0,
[19] = 0.0,
[20] = 0.0,
[21] = 0.0,
[22] = 0.0,
[23] = 0.0,
[24] = 0.0,
[25] = 0.0,
[26] = 0.0,
[27] = 0.0,
[28] = 0.0,
[29] = 0.0,
[30] = 0.0,
[31] = 0.0,
[32] = 3.8671874999999996, //
[33] = 4.3291015625, // !
[34] = 5.048828125, // "
[35] = 9.001953125, // #
[36] = 6.9931640625, // $
[37] = 11.837890625, // %
[38] = 7.992187499999999, // &
[39] = 2.9541015625, // '
[40] = 4.9951171875, // (
[41] = 4.9951171875, // )
[42] = 6.9931640625, // *
[43] = 9.001953125, // +
[44] = 4.00146484375, // ,
[45] = 4.9951171875, // -
[46] = 4.00146484375, // .
[47] = 4.9951171875, // /
[48] = 6.9931640625, // 0
[49] = 6.9931640625, // 1
[50] = 6.9931640625, // 2
[51] = 6.9931640625, // 3
[52] = 6.9931640625, // 4
[53] = 6.9931640625,