Differential D25021 Diff 281 src/applications/celerity/postprocessor/CelerityLargeFontPostprocessor.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/postprocessor/CelerityLargeFontPostprocessor.php
<?php | <?php | ||||
final class CelerityLargeFontPostprocessor | final class CelerityLargeFontPostprocessor | ||||
extends CelerityPostprocessor { | extends CelerityPostprocessor { | ||||
public function getPostprocessorKey() { | public function getPostprocessorKey() { | ||||
return 'fontsizeplusone'; | return 'fontsizeplusone'; | ||||
} | } | ||||
public function getPostprocessorName() { | public function getPostprocessorName() { | ||||
return pht('Use Larger Font Size'); | return pht('Use Larger Font Size'); | ||||
} | } | ||||
public function buildVariables() { | public function buildVariables() { | ||||
return array( | return array( | ||||
'basefont' => "14px 'Segoe UI', 'Segoe UI Web Regular', ". | 'basefont' => "14px -apple-system, system-ui, BlinkMacSystemFont, ". | ||||
"'Segoe UI Symbol', 'Lato', 'Helvetica Neue', Helvetica, ". | "'Segoe UI', 'Segoe UI Web Regular', 'Segoe UI Symbol', 'Lato', ". | ||||
"Arial, sans-serif", | "'Helvetica Neue', Helvetica, Arial, sans-serif", | ||||
// Font Sizes | // Font Sizes | ||||
'biggestfontsize' => '16px', | 'biggestfontsize' => '16px', | ||||
'biggerfontsize' => '15px', | 'biggerfontsize' => '15px', | ||||
'normalfontsize' => '14px', | 'normalfontsize' => '14px', | ||||
'smallerfontsize' => '13px', | 'smallerfontsize' => '13px', | ||||
'smallestfontsize' => '12px', | 'smallestfontsize' => '12px', | ||||
); | ); | ||||
} | } | ||||
} | } |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0