Use Source Sans for Phriction

Summary: Adds Phriction to list of apps that use Source Sans as default font in addition to Legalpad and Diviner.

Test Plan: Tested various layouts imported from secure. Should be reasonably tested, but will follow up on secure.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10064
This commit is contained in:
Chad Little
2014-07-28 10:36:16 -07:00
parent 0c15ad5d5c
commit 4c767c2803
7 changed files with 28 additions and 13 deletions

View File

@@ -121,6 +121,7 @@ final class DivinerAtomController extends DivinerController {
$document = id(new PHUIDocumentView())
->setBook($book->getTitle(), $group_name)
->setHeader($header)
->addClass('diviner-view')
->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS)
->appendChild($properties)
->appendChild($warnings)

View File

@@ -38,6 +38,8 @@ final class DivinerBookController extends DivinerController {
$document = new PHUIDocumentView();
$document->setHeader($header);
$document->addClass('diviner-view');
$document->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS);
$properties = $this->buildPropertyList($book);

View File

@@ -33,6 +33,7 @@ final class DivinerMainController extends DivinerController {
$document = new PHUIDocumentView();
$document->setHeader($header);
$document->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS);
$document->addClass('diviner-view');
if ($books) {
$books = msort($books, 'getTitle');

View File

@@ -208,6 +208,7 @@ final class PhrictionDocumentController
$page_content = id(new PHUIDocumentView())
->setOffset(true)
->setFontKit(PHUIDocumentView::FONT_SOURCE_SANS)
->setHeader($header)
->appendChild(
array(