From aeb182e6280c2879341d4d30b360f4c77c5e0e8b Mon Sep 17 00:00:00 2001 From: Marco Beltempo Date: Fri, 24 Nov 2017 13:01:42 -0500 Subject: [PATCH 1/2] Add font family "Courier New" to fix rendering issues --- .../default/bramble/stylesheets/consoleTheme.less | 4 ++-- .../styles/brackets-js-hints.css | 8 ++++---- src/extensions/extra/PDFView/styles/viewer-overrides.css | 5 ++++- src/view/ViewCommandHandlers.js | 2 +- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/extensions/default/bramble/stylesheets/consoleTheme.less b/src/extensions/default/bramble/stylesheets/consoleTheme.less index 469d33843e0..2260acf1978 100644 --- a/src/extensions/default/bramble/stylesheets/consoleTheme.less +++ b/src/extensions/default/bramble/stylesheets/consoleTheme.less @@ -19,7 +19,7 @@ box-shadow: none; display: block; font-size: 15px; - font-family: 'Menlo Regular', Consolas, Inconsolata, 'Vera Sans', 'Lucida Console', Courier, monospace, fixed; + font-family: 'Menlo Regular', Consolas, Inconsolata, 'Vera Sans', 'Lucida Console', 'Courier New', Courier, monospace, fixed; user-select: text; color: black; transform-origin: 15% 50%; @@ -28,7 +28,7 @@ #editor-console .console .helper { font-size: 15px; - font-family: 'Menlo Regular', Consolas, Inconsolata, 'Vera Sans', 'Lucida Console', Courier, monospace, fixed; + font-family: 'Menlo Regular', Consolas, Inconsolata, 'Vera Sans', 'Lucida Console', 'Courier New', Courier, monospace, fixed; display: none; color: black; position: absolute; diff --git a/src/extensions/extra/JavaScriptCodeHints-Browser/styles/brackets-js-hints.css b/src/extensions/extra/JavaScriptCodeHints-Browser/styles/brackets-js-hints.css index 7d064f6c459..80401f701a6 100644 --- a/src/extensions/extra/JavaScriptCodeHints-Browser/styles/brackets-js-hints.css +++ b/src/extensions/extra/JavaScriptCodeHints-Browser/styles/brackets-js-hints.css @@ -263,15 +263,15 @@ span.brackets-js-hints-with-type-details { .brackets-js-hints.literal-hint { color: #444; /* dark grey */ - font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", Courier, monospace, fixed; + font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", "Courier New", Courier, monospace, fixed; } .brackets-js-hints.keyword-hint { - font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", Courier, monospace, fixed; + font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", "Courier New", Courier, monospace, fixed; } .brackets-js-hints.keyword-hint .matched-hint { - font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", Courier, monospace, fixed; + font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", "Courier New", Courier, monospace, fixed; font-weight: 500; } @@ -327,7 +327,7 @@ span.brackets-js-hints-with-type-details { .dark .brackets-js-hints.literal-hint { color: #bbb; /* dark grey */ - font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", Courier, fixed; + font-family: "Menlo Regular", Consolas, Inconsolata, "Vera Sans", "Lucida Console", "Courier New", Courier, monospace, fixed; } .dark #function-hint-container { diff --git a/src/extensions/extra/PDFView/styles/viewer-overrides.css b/src/extensions/extra/PDFView/styles/viewer-overrides.css index 1ab99ba3ab1..8452403ac6b 100644 --- a/src/extensions/extra/PDFView/styles/viewer-overrides.css +++ b/src/extensions/extra/PDFView/styles/viewer-overrides.css @@ -26,7 +26,6 @@ body { color: rgba(0,0,0,.7); } - #pdf-page-count { position: relative; padding-right: 16px; @@ -47,6 +46,10 @@ body { background-repeat: no-repeat; } +#PDFBug .stats { +font-family: "Courier New", Courier, monospace !important; +} + .dark-theme #pdf-page-count:after { background-image: url("../images/file-white.svg"); } diff --git a/src/view/ViewCommandHandlers.js b/src/view/ViewCommandHandlers.js index a84917babcc..c0233a5604c 100644 --- a/src/view/ViewCommandHandlers.js +++ b/src/view/ViewCommandHandlers.js @@ -103,7 +103,7 @@ define(function (require, exports, module) { * The default font family * @type {string} */ - var DEFAULT_FONT_FAMILY = "'Menlo Regular', Consolas, Inconsolata, 'Vera Sans', 'Lucida Console', Courier, monospace, fixed"; + var DEFAULT_FONT_FAMILY = "'Menlo Regular', Consolas, Inconsolata, 'Vera Sans', 'Lucida Console', 'Courier New', Courier, monospace, fixed"; /** * @private From a78365153c27f91d12db6cd9c2bb1a9add5b730f Mon Sep 17 00:00:00 2001 From: Marco Beltempo Date: Mon, 4 Dec 2017 06:19:15 -0500 Subject: [PATCH 2/2] Fixed css property styling --- src/extensions/extra/PDFView/styles/viewer-overrides.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extensions/extra/PDFView/styles/viewer-overrides.css b/src/extensions/extra/PDFView/styles/viewer-overrides.css index 8452403ac6b..174e0d4122d 100644 --- a/src/extensions/extra/PDFView/styles/viewer-overrides.css +++ b/src/extensions/extra/PDFView/styles/viewer-overrides.css @@ -47,7 +47,7 @@ body { } #PDFBug .stats { -font-family: "Courier New", Courier, monospace !important; + font-family: "Courier New", Courier, monospace !important; } .dark-theme #pdf-page-count:after {