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

explorer: add semi-bold font #1442

Merged
merged 3 commits into from
Jun 28, 2019
Merged

explorer: add semi-bold font #1442

merged 3 commits into from
Jun 28, 2019

Conversation

buck54321
Copy link
Member

@buck54321 buck54321 commented Jun 28, 2019

Adds a semi-bold font and uses it for table headers throughout. Also applied to address on address page and txid on tx page.

A medium-weight font was called for in a number of places in #451, but I could never get it to work with the fonts we had, and I'm admittedly not very knowledgeable on fonts.

image

@chappjc You're usually on top of minifying SVGs, but I wasn't sure about fonts since they contain possibly important metadata.

Adds a semi-bold font and uses it for table headers throughout.
Also applied to address on address page and txid on tx page.
@chappjc
Copy link
Member

chappjc commented Jun 28, 2019

That's much easier on the eyes.

Yeah, minifying font SVGs is likely to mess it up. I wanna have a look though anyway to see if there's anything obvious bloat the files.

@chappjc
Copy link
Member

chappjc commented Jun 28, 2019

Well, there doesn't seem to be much to "clean up" in source-sans-pro-semibold.svg, but it compresses well.

Original compressed
1,193,865 132,890

go.sum Outdated
@@ -131,6 +131,7 @@ github.com/decred/dcrd/wire v1.1.0 h1:G+3CugtxNbToUN8RKWqm74yLfzJJ2BKMOr2RgWc4Ty
github.com/decred/dcrd/wire v1.1.0/go.mod h1:/JKOsLInOJu6InN+/zH5AyCq3YDIOW/EqcffvU8fJHM=
github.com/decred/dcrd/wire v1.2.0 h1:HqJVB7vcklIguzFWgRXw/WYCQ9cD3bUC5TKj53i1Hng=
github.com/decred/dcrd/wire v1.2.0/go.mod h1:/JKOsLInOJu6InN+/zH5AyCq3YDIOW/EqcffvU8fJHM=
github.com/decred/dcrdata v2.1.3+incompatible h1:DLzrqgOOgHwrUSbuOVDAUzfQePhCGl9UsjEgZI1D0Kg=
Copy link
Member

Choose a reason for hiding this comment

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

Could you revert this line pls?

@chappjc chappjc merged commit c3dc87d into decred:master Jun 28, 2019
@chappjc chappjc added this to the 5.1 milestone Jun 28, 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