Skip to content

Commit

Permalink
Change default font sizes to 9pt on Mac, 10pt on Windows. Tighten up …
Browse files Browse the repository at this point in the history
…line leading.
  • Loading branch information
jcheng5 committed Apr 1, 2011
1 parent 07ea3c0 commit 4b53885
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
24 changes: 1 addition & 23 deletions src/gwt/src/org/rstudio/core/client/widget/FontSizer.css
@@ -1,25 +1,3 @@
@external pt10, pt12, pt14, pt16, pt18;

.normalSize, .normalSize td, .normalSize pre {
line-height: 1.5;
}

body.pt10 .normalSize, body.pt10 .normalSize td, body.pt10 .normalSize pre {
font-size: 10pt;
}

body.pt12 .normalSize, body.pt12 .normalSize td, body.pt12 .normalSize pre {
font-size: 12pt;
}

body.pt14 .normalSize, body.pt14 .normalSize td, body.pt14 .normalSize pre {
font-size: 14pt;
}

body.pt16 .normalSize, body.pt16 .normalSize td, body.pt16 .normalSize pre {
font-size: 16pt;
}

body.pt18 .normalSize, body.pt18 .normalSize td, body.pt18 .normalSize pre {
font-size: 18pt;
line-height: 1.45;
}
Expand Up @@ -2,6 +2,7 @@

import com.google.inject.Inject;
import com.google.inject.Singleton;
import org.rstudio.core.client.BrowseCap;
import org.rstudio.studio.client.workbench.model.Session;
import org.rstudio.studio.client.workbench.ui.PaneConfig;

Expand Down Expand Up @@ -66,7 +67,7 @@ public PrefValue<Boolean> softWrapRFiles()

public PrefValue<Integer> fontSize()
{
return integer("font_size_points", 9);
return integer("font_size_points", BrowseCap.hasMetaKey() ? 9 : 10);
}

public PrefValue<String> theme()
Expand Down

0 comments on commit 4b53885

Please sign in to comment.