Skip to content

Use a font stack to make the text look better #37

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

Merged
merged 3 commits into from
May 2, 2019

Conversation

sivaraam
Copy link
Member

The font stack has been borrowed from the recent font stack upgrade that
is being made to Wikipedia sites1.

It looks a lot better that how it was before on the devices that have been
tested:

  1. An Android phone
  2. Firefox and Chrome on Ubuntu

This resolves an item in #28.

The font stack has been borrowed from the recent font stack upgrade that
is being made to Wikipedia sites[1].

It looks a lot better that how it was before on the devices that have been
tested:

1. An Android phone
2. Firefox and Chrome on Ubuntu

This resolves an item in commons-app#28.

[1]: https://phabricator.wikimedia.org/T175877
@sivaraam
Copy link
Member Author

The change could be seen live at https://sivaraam.gitlab.io/commons-app.github.io

@sivaraam sivaraam self-assigned this Apr 7, 2019
@sivaraam sivaraam requested a review from domdomegg April 7, 2019 18:29
@domdomegg
Copy link
Member

Is this not already done by Bootstrap? Renders the same for me on your version (uses Roboto Light, which I expect as I'm on Linux and don't have other defaults installed).

https://getbootstrap.com/docs/4.1/content/reboot/#native-font-stack

@sivaraam
Copy link
Member Author

sivaraam commented May 1, 2019

Is this not already done by Bootstrap? Renders the same for me on your version (uses Roboto Light, which I expect as I'm on Linux and don't have other defaults installed).

You are right about that. One difference I see in the font stack of bootstrap and the one that I've added is the 'Lato' font. I don't have the other defaults mentioned in the bootstrap reboot installed so it's defaulting to 'sans-serif' for me (which doesn't look very great). So, I was exploring about improving it (unaware of the native font stack of Bootstrap) and came to know about the Wikimedia font stack and used it. As a result the site looked great (at least for me)! That's because of the Lato (which I have installed).

I'm including the screen shots just for the comparison.

Before PR
site-before-pr

After PR
site-after-pr

Currently, I'm not sure about what to do here. I'm okay with either merging or closing this. Though I say this, I have a slight preference for using the Wikimedia font stack 😉

Update: Sorry for the late reply. Was a little busy with other things.

Copy link
Member

@domdomegg domdomegg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah okay, I think it makes sense to make it consistent with the Wikimedia font stack.

I don't think I have merge permissions on this repo, but am approving. I'm happy for you to merge this (@misaochan can you give me merge access for future PRs?).

@sivaraam
Copy link
Member Author

sivaraam commented May 2, 2019

Ah okay, I think it makes sense to make it consistent with the Wikimedia font stack.

Thanks! I've just added a note about why we override the bootstrap's font-stack.

@sivaraam sivaraam merged commit da27f61 into commons-app:master May 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants