DominikPeters / tikz.dev-issues

Feedback, suggestions, and bug reports for tikz.dev
1 stars 0 forks source link

Change the css for tex logo #25

Open SwitWu opened 7 months ago

SwitWu commented 7 months ago

Brief outline of the proposed feature

I'd suggest to change the css for tex logos into the following code:

/* tex and latex logo */

.latexlogosup {
  text-transform: uppercase;
  font-size: 70%;
  font-weight: 500;
  margin-left: -.45em;
  margin-right: -.15em;
  position: relative;
  bottom: .62ex;
}

.latexlogosub {
  text-transform: uppercase;
  margin-left: -0.18em;
  margin-right: -0.05em;
  bottom: -0.5ex;
  position: relative;
}

For its effect, see this screenshot:

image

In this way, the logos look more consistent with the surrounding text.

DominikPeters commented 7 months ago

Can you show me how the logo on tikz.dev looks on your system currently? (The logo appears several times on the home page.)

For me on mac, it currently looks like this:

image

and your style gives this for me:

image

Official logo: image

Neither is completely faithful..

SwitWu commented 7 months ago

On my mac the logo on tikz.dev looks like:

image

You're using serif font for tex logos. But I'm using sans-serif font Inter for the html body as well as the logos.

The values for margin-left, margin-right and bottom in the above CSS are appropriate for the Inter font family and they have to be adjusted for different fonts.