libxlsxwriter/include/xlsxwriter/format.h in fast_excel-0.2.3 vs libxlsxwriter/include/xlsxwriter/format.h in fast_excel-0.2.5
- old
+ new
@@ -1,9 +1,9 @@
/*
* libxlsxwriter
*
- * Copyright 2014-2017, John McNamara, jmcnamara@cpan.org. See LICENSE.txt.
+ * Copyright 2014-2018, John McNamara, jmcnamara@cpan.org. See LICENSE.txt.
*/
/**
* @page format_page The Format object
*
@@ -79,12 +79,12 @@
#define LXW_DEFAULT_FONT_FAMILY 2
#define LXW_DEFAULT_FONT_THEME 1
#define LXW_PROPERTY_UNSET -1
#define LXW_COLOR_UNSET -1
#define LXW_COLOR_MASK 0xFFFFFF
-#define LXW_MIN_FONT_SIZE 1
-#define LXW_MAX_FONT_SIZE 409
+#define LXW_MIN_FONT_SIZE 1.0
+#define LXW_MAX_FONT_SIZE 409.0
#define LXW_FORMAT_FIELD_COPY(dst, src) \
do{ \
strncpy(dst, src, LXW_FORMAT_FIELD_LEN -1); \
dst[LXW_FORMAT_FIELD_LEN - 1] = '\0'; \
@@ -358,11 +358,11 @@
char font_scheme[LXW_FORMAT_FIELD_LEN];
uint16_t num_format_index;
uint16_t font_index;
uint8_t has_font;
uint8_t has_dxf_font;
- uint16_t font_size;
+ double font_size;
uint8_t bold;
uint8_t italic;
lxw_color_t font_color;
uint8_t underline;
uint8_t font_strikeout;
@@ -425,11 +425,11 @@
* Struct to represent the font component of a format.
*/
typedef struct lxw_font {
char font_name[LXW_FORMAT_FIELD_LEN];
- uint16_t font_size;
+ double font_size;
uint8_t bold;
uint8_t italic;
uint8_t underline;
uint8_t font_strikeout;
uint8_t font_outline;
@@ -527,10 +527,10 @@
*
* Excel adjusts the height of a row to accommodate the largest font
* size in the row. You can also explicitly specify the height of a
* row using the worksheet_set_row() function.
*/
-void format_set_font_size(lxw_format *format, uint16_t size);
+void format_set_font_size(lxw_format *format, double size);
/**
* @brief Set the color of the font used in the cell.
*
* @param format Pointer to a Format instance.