Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default fonts to liberation #181

Merged
merged 1 commit into from
Nov 15, 2018
Merged

Change default fonts to liberation #181

merged 1 commit into from
Nov 15, 2018

Conversation

yajo
Copy link
Contributor

@yajo yajo commented Nov 15, 2018

Current fonts shipped by Debian do not render fine in Adobe PDF on Windows and Mac OS.

Most users will use those OS & PDF reader combination, and Odoo demos and runbots use MS fonts.

So, in the hope of providing an opinionated sane default that makes most users happy, we are going to ship Liberation fonts by default, which are an open source alternative to MS fonts that, according to tests, render just fine everywhere.

If anybody wants a more corporative font, they should use it in their reports and install it from apt with provided tools.

Current fonts shipped by Debian do not render fine in Adobe PDF on Windows and Mac OS.

Most users will use those OS & PDF reader combination, and [Odoo demos and runbots use MS fonts][1].

So, in the hope of providing an opinionated sane default that makes most users happy, we are going to ship Liberation fonts by default, which are an open source alternative to MS fonts that, according to tests, render just fine everywhere.

If anybody wants a more corporative font, they should use it in their reports and install it from apt with provided tools.

[1]: odoo/odoo#27487 (comment)
@yajo yajo self-assigned this Nov 15, 2018
@yajo yajo merged commit e83a46f into master Nov 15, 2018
@yajo yajo deleted the default-liberation-fonts branch November 15, 2018 12:18
yajo added a commit that referenced this pull request Sep 16, 2019
In #181 and #188 we added Liberation fonts as the default ones for reports. However this made it a little bit harder to choose a different default font (default fonts are the ones that the system interprets for `monospace`, `sans-serif` and `serif`).

From now on, if you want to override the default fonts, you have to add the package in `dependencies/apt.txt` or a `build.d` script, and add one or more of these new build arguments: `FONT_{MONO,SANS,SERIF}`. This way you make sure to override the default fonts. Before this, if you only added the package, it only made those fonts available, *not default*.
@yajo yajo mentioned this pull request Sep 16, 2019
yajo added a commit that referenced this pull request Sep 16, 2019
In #181 and #188 we added Liberation fonts as the default ones for reports. However this made it a little bit harder to choose a different default font (default fonts are the ones that the system interprets for `monospace`, `sans-serif` and `serif`).

From now on, if you want to override the default fonts, you have to add the package in `dependencies/apt.txt` or a `build.d` script, and add one or more of these new build arguments: `FONT_{MONO,SANS,SERIF}`. This way you make sure to override the default fonts. Before this, if you only added the package, it only made those fonts available, *not default*.
yajo added a commit that referenced this pull request Sep 17, 2019
In #181 and #188 we added Liberation fonts as the default ones for reports. However this made it a little bit harder to choose a different default font (default fonts are the ones that the system interprets for `monospace`, `sans-serif` and `serif`).

From now on, if you want to override the default fonts, you have to add the package in `dependencies/apt.txt` or a `build.d` script, and add one or more of these new build arguments: `FONT_{MONO,SANS,SERIF}`. This way you make sure to override the default fonts. Before this, if you only added the package, it only made those fonts available, *not default*.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant