Skip to content
This repository was archived by the owner on Oct 2, 2018. It is now read-only.

Commit 38f87b6

Browse files
committed
Show current font in font selector
1 parent 105eb88 commit 38f87b6

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,11 @@ <h1 id="fileName" class="no-zen"><span id="currentFileLocation" style="display:n
347347
<li>
348348
<select data-change="font" id="font-select" data-l10n-title="font">
349349
<option value="" disabled selected data-l10n-id="font"></option>
350-
<option value="Verdana,Geneva,sans-serif" style="font-family: Verdana,Geneva,sans-serif;">Verdana/Geneva</option>
351-
<option value="Helvetica,Arial,sans-serif" style="font-family: Helvetica,Arial,sans-serif;">Helvetica/Arial</option>
352-
<option value="Georgia,Utopia,Charter,serif" style="font-family: Georgia,Utopia,Charter,serif;">Georgia/Utopia/Charter</option>
353-
<option value="'Times New Roman',Times,serif" style="font-family: 'Times New Roman',Times,serif;">Times New Roman/Times</option>
354-
<option value="'Courier New',Courier,monospace" style="font-family: 'Courier New',Courier,monospace;">Courier New/Courier</option>
350+
<option value='Verdana, Geneva, sans-serif' style='font-family: Verdana, Geneva, sans-serif;'>Verdana/Geneva</option>
351+
<option value='Helvetica, Arial, sans-serif' style='font-family: Helvetica, Arial, sans-serif;'>Helvetica/Arial</option>
352+
<option value='Georgia, Utopia, Charter, serif' style='font-family: Georgia, Utopia, Charter, serif;'>Georgia/Utopia/Charter</option>
353+
<option value='"Times New Roman", Times, serif' style='font-family: "Times New Roman", Times, serif;'>Times New Roman/Times</option>
354+
<option value='"Courier New", Courier, monospace' style='font-family: "Courier New", Courier, monospace;'>Courier New/Courier</option>
355355
</select>
356356
</li>
357357
<li>

scripts/firetext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1103,8 +1103,8 @@ function updateToolbar() {
11031103
bold.classList.remove('active');
11041104
}
11051105

1106-
// Font (TBD: show actual font)
1107-
fontSelect.value = '';
1106+
// Font
1107+
fontSelect.value = commandStates.fontName.value.replace(/'/g, '"').replace(/,\s*/g, ', ');
11081108

11091109
// Font size
11101110
fontSizeSelect.value = commandStates.fontSize.value;

0 commit comments

Comments
 (0)