1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 21:10:56 +01:00

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
This commit is contained in:
Chad Little 2015-04-22 12:13:11 -07:00
parent 688c506ecf
commit 306ab29259

View file

@ -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())