From 306ab292596c36f9554531d3b541449c1fc64326 Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 22 Apr 2015 12:13:11 -0700 Subject: [PATCH] Add documentation for customizing fonts Summary: Fixes T7888, adds clarification of property and an example. Test Plan: Read the text, copy/paste example. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7888 Differential Revision: https://secure.phabricator.com/D12508 --- .../panel/PhabricatorDisplayPreferencesSettingsPanel.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php b/src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php index 9d1211aee5..71f533dcdb 100644 --- a/src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php +++ b/src/applications/settings/panel/PhabricatorDisplayPreferencesSettingsPanel.php @@ -100,6 +100,10 @@ EXAMPLE; 'callsign, %%%% by literal %%. For documentation, see: %s', $editor_doc_link); + $font_instructions = pht('Overrides default fonts in tools like '. + 'Differential. Input should be valid CSS "font" declaration, such as '. + '"13px Consolas"'); + $form = id(new AphrontFormView()) ->setUser($user) ->appendChild( @@ -136,8 +140,7 @@ EXAMPLE; id(new AphrontFormTextControl()) ->setLabel(pht('Monospaced Font')) ->setName($pref_monospaced) - ->setCaption( - pht('Overrides default fonts in tools like Differential.')) + ->setCaption($font_instructions) ->setValue($preferences->getPreference($pref_monospaced))) ->appendChild( id(new AphrontFormMarkupControl())