Skip to content

Commit

Permalink
v1.1.0. Added --command option to CLI. Added sorting by POS. Fixed ba…
Browse files Browse the repository at this point in the history
…ckspace-key segfault. Better drawing of mods when zoomed out. Other small bug fixes
  • Loading branch information
kcleal committed Sep 12, 2024
1 parent 041efe4 commit c441607
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/defaultIni.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace DefaultIni {
"[general]\n"
"theme=dark\n"
"dimensions=1366x768\n"
"indel_length=10\n"
"indel_length=15\n"
"ylim=50\n"
"coverage=true\n"
"log2_cov=false\n"
Expand All @@ -51,7 +51,7 @@ namespace DefaultIni {
"font_size=14\n"
"sv_arcs=true\n"
"mods=false\n"
"mods_qual_threshold=50\n"
"mods_qual_threshold=150\n"
"session_file=\n"
"\n"
"[view_thresholds]\n"
Expand Down
4 changes: 4 additions & 0 deletions src/themes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,10 @@ namespace Themes {

void Fonts::setTypeface(std::string &fontStr, int size) {
face = SkTypeface::MakeFromName(fontStr.c_str(), SkFontStyle::Normal());
if (face && face->uniqueID() != 0) {
std::cerr << "Warning: font '" << fontStr << "' could not be initialised, falling back to 'Arial'\n";
face = SkTypeface::MakeFromName("Arial", SkFontStyle::Normal());
}
SkScalar ts = size;
fonty.setSize(ts);
fonty.setTypeface(face);
Expand Down

0 comments on commit c441607

Please sign in to comment.