Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13985577
D8431.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Referenced Files
None
Subscribers
None
D8431.id.diff
View Options
Index: src/applications/base/controller/PhabricatorController.php
===================================================================
--- src/applications/base/controller/PhabricatorController.php
+++ src/applications/base/controller/PhabricatorController.php
@@ -222,10 +222,6 @@
$page->setDeviceReady(true);
}
- if (idx($options, 'fonts')) {
- $page->setExtraFonts(true);
- }
-
$page->setShowChrome(idx($options, 'chrome', true));
$application_menu = $this->buildApplicationMenu();
Index: src/applications/diviner/controller/DivinerAtomController.php
===================================================================
--- src/applications/diviner/controller/DivinerAtomController.php
+++ src/applications/diviner/controller/DivinerAtomController.php
@@ -249,7 +249,6 @@
array(
'title' => $symbol->getTitle(),
'device' => true,
- 'fonts' => true,
));
}
Index: src/applications/diviner/controller/DivinerBookController.php
===================================================================
--- src/applications/diviner/controller/DivinerBookController.php
+++ src/applications/diviner/controller/DivinerBookController.php
@@ -92,7 +92,6 @@
array(
'title' => $book->getTitle(),
'device' => true,
- 'fonts' => true,
));
}
Index: src/applications/diviner/controller/DivinerFindController.php
===================================================================
--- src/applications/diviner/controller/DivinerFindController.php
+++ src/applications/diviner/controller/DivinerFindController.php
@@ -86,7 +86,6 @@
array(
'title' => array(pht('Find'), pht('"%s"', $query_text)),
'device' => true,
- 'fonts' => true,
));
}
Index: src/view/page/PhabricatorStandardPageView.php
===================================================================
--- src/view/page/PhabricatorStandardPageView.php
+++ src/view/page/PhabricatorStandardPageView.php
@@ -12,7 +12,6 @@
private $glyph;
private $menuContent;
private $showChrome = true;
- private $extraFonts;
private $disableConsole;
private $pageObjects = array();
private $applicationMenu;
@@ -58,15 +57,6 @@
return $this->showChrome;
}
- public function setExtraFonts($extra) {
- $this->extraFonts = $extra;
- return $this;
- }
-
- public function getExtraFonts() {
- return $this->extraFonts;
- }
-
public function appendPageObjects(array $objs) {
foreach ($objs as $obj) {
$this->pageObjects[] = $obj;
@@ -243,16 +233,8 @@
$response = CelerityAPI::getStaticResourceResponse();
- $fonts = null;
- if ($this->getExtraFonts()) {
- $fonts = hsprintf("<link
- href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700'
- rel='stylesheet'
- type='text/css'>");
- }
-
return hsprintf(
- '%s%s<style type="text/css">'.
+ '%s<style type="text/css">'.
'.PhabricatorMonospaced, '.
'.phabricator-remarkup .remarkup-code-block { font: %s; } '.
'.platform-windows .PhabricatorMonospaced, '.
@@ -260,7 +242,6 @@
'.remarkup-code-block { font: %s; }'.
'</style>%s',
parent::getHead(),
- $fonts,
phutil_safe_html($monospaced),
phutil_safe_html($monospaced_win),
$response->renderSingleResource('javelin-magical-init', 'phabricator'));
Index: src/view/phui/PHUIDocumentView.php
===================================================================
--- src/view/phui/PHUIDocumentView.php
+++ src/view/phui/PHUIDocumentView.php
@@ -75,6 +75,12 @@
require_celerity_resource('phui-fontkit-css');
}
+ switch ($this->fontKit) {
+ case self::FONT_SOURCE_SANS:
+ require_celerity_resource('font-source-sans-pro');
+ break;
+ }
+
$classes = array();
$classes[] = 'phui-document-view';
if ($this->offset) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 21, 9:26 PM (3 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6740043
Default Alt Text
D8431.id.diff (3 KB)
Attached To
Mode
D8431: Include Source Sans on-demand with Celerity
Attached
Detach File
Event Timeline
Log In to Comment