mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 20:46:50 +03:00
allow font anti-aliasing to be switched off in true-colour modes
This commit is contained in:
parent
c7766fddff
commit
5ac9c7128a
@ -61,6 +61,7 @@
|
||||
char *font_unicode_list; \
|
||||
char *font_unicode_file; \
|
||||
bool font_unicode_only; \
|
||||
bool font_antialiasing; \
|
||||
bool drag_save_icons; \
|
||||
int hotlist_window_xpos; \
|
||||
int hotlist_window_ypos; \
|
||||
@ -123,6 +124,7 @@
|
||||
.font_unicode_list = NULL, \
|
||||
.font_unicode_file = NULL, \
|
||||
.font_unicode_only = false, \
|
||||
.font_antialiasing = true, \
|
||||
.drag_save_icons = true, \
|
||||
.hotlist_window_xpos = 0, \
|
||||
.hotlist_window_ypos = 0, \
|
||||
@ -184,6 +186,7 @@
|
||||
{ "font_unicode_list", OPTION_STRING, &nsoptions.font_unicode_list }, \
|
||||
{ "font_unicode_file", OPTION_STRING, &nsoptions.font_unicode_file }, \
|
||||
{ "font_unicode_only", OPTION_BOOL, &nsoptions.font_unicode_only }, \
|
||||
{ "font_antialiasing", OPTION_BOOL, &nsoptions.font_antialiasing }, \
|
||||
{ "drag_save_icons", OPTION_BOOL, &nsoptions.drag_save_icons}, \
|
||||
{ "hotlist_window_xpos", OPTION_INTEGER, &nsoptions.hotlist_window_xpos}, \
|
||||
{ "hotlist_window_ypos", OPTION_INTEGER, &nsoptions.hotlist_window_ypos}, \
|
||||
|
@ -548,8 +548,13 @@ bool ami_text(int x, int y, const char *text, size_t length,
|
||||
LOG(("[ami_plotter] Entered ami_text()"));
|
||||
#endif
|
||||
|
||||
bool aa = true;
|
||||
|
||||
if((nsoption_bool(font_antialiasing) == false) || (palette_mapped == false))
|
||||
aa = false;
|
||||
|
||||
ami_plot_setapen(fstyle->foreground);
|
||||
ami_unicode_text(glob->rp, text, length, fstyle, x, y, !palette_mapped);
|
||||
ami_unicode_text(glob->rp, text, length, fstyle, x, y, aa);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user