libxlsxwriter/src/format.c in fast_excel-0.2.3 vs libxlsxwriter/src/format.c in fast_excel-0.2.5
- old
+ new
@@ -1,11 +1,11 @@
/*****************************************************************************
* format - A library for creating Excel XLSX format files.
*
* Used in conjunction with the libxlsxwriter library.
*
- * Copyright 2014-2017, John McNamara, jmcnamara@cpan.org. See LICENSE.txt.
+ * Copyright 2014-2018, John McNamara, jmcnamara@cpan.org. See LICENSE.txt.
*
*/
#include "xlsxwriter/xmlwriter.h"
#include "xlsxwriter/format.h"
@@ -36,11 +36,11 @@
format->num_format[0] = '\0';
format->num_format_index = 0;
format->font_index = 0;
format->has_font = LXW_FALSE;
format->has_dxf_font = LXW_FALSE;
- format->font_size = 11;
+ format->font_size = 11.0;
format->bold = LXW_FALSE;
format->italic = LXW_FALSE;
format->font_color = LXW_COLOR_UNSET;
format->underline = LXW_FALSE;
format->font_strikeout = LXW_FALSE;
@@ -307,10 +307,10 @@
/*
* Set the font_size property.
*/
void
-format_set_font_size(lxw_format *self, uint16_t size)
+format_set_font_size(lxw_format *self, double size)
{
if (size >= LXW_MIN_FONT_SIZE && size <= LXW_MAX_FONT_SIZE)
self->font_size = size;
if (size < LXW_MIN_FONT_SIZE) self->font_size = 0;