mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
[project @ 2003-09-08 22:47:38 by bursa]
Reduce default font size and increase line spacing. svn path=/import/netsurf/; revision=273
This commit is contained in:
parent
c05f00209f
commit
86c2bb138a
@ -40,11 +40,11 @@ const struct css_style css_base_style = {
|
||||
0x000000,
|
||||
CSS_DISPLAY_BLOCK,
|
||||
CSS_FLOAT_NONE,
|
||||
{ CSS_FONT_SIZE_LENGTH, { { 12, CSS_UNIT_PT } } },
|
||||
{ CSS_FONT_SIZE_LENGTH, { { 10, CSS_UNIT_PT } } },
|
||||
CSS_FONT_WEIGHT_NORMAL,
|
||||
CSS_FONT_STYLE_NORMAL,
|
||||
{ CSS_HEIGHT_AUTO, { 1, CSS_UNIT_EM } },
|
||||
{ CSS_LINE_HEIGHT_ABSOLUTE, { 1.2 } },
|
||||
{ CSS_LINE_HEIGHT_ABSOLUTE, { 1.3 } },
|
||||
CSS_TEXT_ALIGN_LEFT,
|
||||
{ CSS_WIDTH_AUTO, { { 1, CSS_UNIT_EM } } }
|
||||
};
|
||||
@ -59,7 +59,7 @@ const struct css_style css_empty_style = {
|
||||
CSS_FONT_WEIGHT_INHERIT,
|
||||
CSS_FONT_STYLE_INHERIT,
|
||||
{ CSS_HEIGHT_INHERIT, { 1, CSS_UNIT_EM } },
|
||||
{ CSS_LINE_HEIGHT_INHERIT, { 1.2 } },
|
||||
{ CSS_LINE_HEIGHT_INHERIT, { 1.3 } },
|
||||
CSS_TEXT_ALIGN_INHERIT,
|
||||
{ CSS_WIDTH_INHERIT, { { 1, CSS_UNIT_EM } } }
|
||||
};
|
||||
@ -74,7 +74,7 @@ const struct css_style css_blank_style = {
|
||||
CSS_FONT_WEIGHT_INHERIT,
|
||||
CSS_FONT_STYLE_INHERIT,
|
||||
{ CSS_HEIGHT_AUTO, { 1, CSS_UNIT_EM } },
|
||||
{ CSS_LINE_HEIGHT_INHERIT, { 1.2 } },
|
||||
{ CSS_LINE_HEIGHT_INHERIT, { 1.3 } },
|
||||
CSS_TEXT_ALIGN_INHERIT,
|
||||
{ CSS_WIDTH_AUTO, { { 1, CSS_UNIT_EM } } }
|
||||
};
|
||||
|
@ -351,7 +351,7 @@ void parse_font_size(struct css_style * const s, const struct node * const v)
|
||||
if (fs != 0) {
|
||||
s->font_size.size = CSS_FONT_SIZE_LENGTH;
|
||||
s->font_size.value.length.unit = CSS_UNIT_PT;
|
||||
s->font_size.value.length.value = fs->size * 12;
|
||||
s->font_size.value.length.value = fs->size * 10;
|
||||
} else if (strcasecmp(v->data, "larger") == 0) {
|
||||
s->font_size.size = CSS_FONT_SIZE_PERCENT;
|
||||
s->font_size.value.percent = SIZE_FACTOR * 100;
|
||||
|
Loading…
Reference in New Issue
Block a user