mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use the Windows default font on Windows 7 and 8/8.1
It contains the characters we need and will make the application look more "native". See #712 Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
438fe5dbde
commit
e893f6bd9d
6 changed files with 37 additions and 5 deletions
14
windows.c
14
windows.c
|
@ -12,12 +12,22 @@
|
|||
#include <dirent.h>
|
||||
#include <zip.h>
|
||||
|
||||
const char system_divelist_default_font[] = "Calibri";
|
||||
const int system_divelist_default_font_size = 8;
|
||||
const char non_standard_system_divelist_default_font[] = "Calibri";
|
||||
const char current_system_divelist_default_font[] = "Segoe UI";
|
||||
const char *system_divelist_default_font = non_standard_system_divelist_default_font;
|
||||
const int system_divelist_default_font_size = 9;
|
||||
|
||||
void subsurface_user(struct user_info *user)
|
||||
{ /* Encourage use of at least libgit2-0.20 */ }
|
||||
|
||||
extern bool isWin7Or8();
|
||||
|
||||
void subsurface_OS_pref_setup(void)
|
||||
{
|
||||
if (isWin7Or8())
|
||||
system_divelist_default_font = current_system_divelist_default_font;
|
||||
}
|
||||
|
||||
const char *system_default_filename(void)
|
||||
{
|
||||
char datapath[MAX_PATH];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue