This is my branch to use the official canonical fonts. I thought this would
be a fix to a few CSS files, but I discovered that we have templates that
define CSS because we cannot guarantee that the CSS file will be served.
I updated the YUI stylesheets, which we must be mindful not to undo when
we update YUI.
At the moment users see different fonts depending on the OS used - humanist
(Vera Sans) on Ubuntu, neo-grotesque (Arial) on Mac or Windows. The global
font definition should be changed to use humanist typeface only.
The official CSS property is
font-family: bitstream vera sans, dejavu sans, verdana, sans-serif;
Which might always be applied to body or *.
For most users, there will be no change because the 'sans-serif' rule was
selecting vera sans. Some users will see dejavu sans. Mac and Windows users
will see Verdana.
== Rules ==
* Do a global find and replace of `font-family:[^;]+;` for the new string.
* Locate all uses arial and fix the `font:` declaration
== QA ==
* Visit edge and inspect the font of the page.
* Verify it is bitstream vera sans, dejavu sans, verdana, sans-serif
The YUI changes are harder to test. I do not know where they are used.
None. though as an after thought, I see that we were being asked to remove
[ ,:]arial[, ;] from all the styles. It only occurs in a slimmer/ test in
contrib.
== Implementation ==
Nothing much to say. I added namespaces to
lib/canonical/launchpad/templates/oops-veryplain.pt to quiet lint.
This is my branch to use the official canonical fonts. I thought this would
be a fix to a few CSS files, but I discovered that we have templates that
define CSS because we cannot guarantee that the CSS file will be served.
I updated the YUI stylesheets, which we must be mindful not to undo when
we update YUI.
lp:~sinzui/launchpad/canonical-fonts-bug-435356 /bugs.launchpad .net/bugs/ 435356 implementation: mt, beuno
Diff size: 299
Launchpad bug: https:/
Test command: None
Pre-
Target release: 3.10.1
= Use the official Canonical fonts =
At the moment users see different fonts depending on the OS used - humanist
(Vera Sans) on Ubuntu, neo-grotesque (Arial) on Mac or Windows. The global
font definition should be changed to use humanist typeface only.
The official CSS property is
font-family: bitstream vera sans, dejavu sans, verdana, sans-serif;
Which might always be applied to body or *.
For most users, there will be no change because the 'sans-serif' rule was
selecting vera sans. Some users will see dejavu sans. Mac and Windows users
will see Verdana.
== Rules ==
* Do a global find and replace of `font-family: [^;]+;` for the new string.
* Locate all uses arial and fix the `font:` declaration
== QA ==
* Visit edge and inspect the font of the page.
* Verify it is bitstream vera sans, dejavu sans, verdana, sans-serif
The YUI changes are harder to test. I do not know where they are used.
== Lint ==
Linting changed files: /launchpad/ icing/print. css /launchpad/ icing/shipit. css /launchpad/ icing/style. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ autocomplete. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ calendar. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ colorpicker. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ datatable. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ editor. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ logger. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ paginator. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ profilerviewer. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ simpleeditor. css /launchpad/ icing/yui_ 2.7.0b/ build/assets/ skins/sam/ skin.css /launchpad/ icing/yui_ 2.7.0b/ build/calendar/ assets/ skins/sam/ calendar- skin.css /launchpad/ icing/yui_ 2.7.0b/ build/calendar/ assets/ skins/sam/ calendar. css /launchpad/ templates/ launchpad- restrictedinfo. pt /launchpad/ templates/ launchpad- restrictedlogin .pt /launchpad/ templates/oops-veryplain.pt
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
lib/canonical
== Test ==
None. though as an after thought, I see that we were being asked to remove
[ ,:]arial[, ;] from all the styles. It only occurs in a slimmer/ test in
contrib.
== Implementation ==
Nothing much to say. I added namespaces to launchpad/ templates/oops-veryplain.pt to quiet lint.
lib/canonical/