Skip to content
Snippets Groups Projects
Commit 36a139f2 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

default font size use FL::screen_dpi

parent 238bf895
No related branches found
No related tags found
No related merge requests found
......@@ -122,12 +122,9 @@ class drawContextFltk : public drawContextGlobal{
return CTX::instance()->fontSize;
}
else{
int w = Fl::w();
if(w <= 1024) return 11;
else if(w <= 1440) return 12;
else if(w <= 1680) return 13;
else if(w <= 1920) return 14;
else return (w-1920)/160 +15;
float dpih, dpiv;
Fl::screen_dpi(dpih,dpiv);
return (int)(dpih/10);
}
}
void setFont(int fontid, int fontsize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment