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

add secondaryFont sans-serif #695

Closed
wants to merge 1 commit into from
Closed

add secondaryFont sans-serif #695

wants to merge 1 commit into from

Conversation

HueHa-v
Copy link
Collaborator

@HueHa-v HueHa-v commented Aug 7, 2024

No description provided.

@HueHa-v HueHa-v linked an issue Aug 7, 2024 that may be closed by this pull request
@HueHa-v
Copy link
Collaborator Author

HueHa-v commented Aug 7, 2024

Add a fallback font

Bildschirmfoto vom 2024-08-07 12-44-20

@albig
Copy link
Member

albig commented Aug 8, 2024

Deutlich besser aber es passiert genau das, was ich befürchtet habe. Mit sans-serif fällt er auf irgendeinen sans-serif-Font zurück. Und da hat sich mein Browser dann Liberations Sans gewählt...

2024-08-08_10-10

Ich lass mir was einfallen.

@HueHa-v
Copy link
Collaborator Author

HueHa-v commented Aug 8, 2024

Wenn wir uns an Grüne.de orientieren ist es das gleiche verhalten.

Können auch: "Tahoma, Verdana, sans-serif" oder "Arial, Helvetica, sans-serif" nehmen. Das ist ja auch eher Standard

@albig
Copy link
Member

albig commented Aug 8, 2024

Bei gruene.de funktioniert es, weil die "PT Sans" nicht mitbringen. Die haben auch nur font-familiy: "PT Sans", sans-serif gesetzt.

2024-08-08_10-41

Du sagtest ja, mobil ist PT Sans nicht so verbreitet? Müsste man sich gruene.de mal mit Browserstack anschauen.

Denke, ich hab auch mit unseren Font-Dateien bald ne Lösung.

@albig
Copy link
Member

albig commented Aug 8, 2024

Hab jetzt zwei Alternativen:

  1. Add "PT Sans" and sans-serif as fallback font-family #698
  2. Remove local PT Sans font and add fallback sans-serif #697

Würde beides funktionieren. Man muss dabei auch das theme.json berücksichtigen, weil das tatsächlich Vorrang bei der Font-Einbindung hat.
"PTSans" ist unsere Benennung des Fonts. Eigentlich heißt er "PT Sans" (mit Leerzeichen). Nur dann muss er in Anführungszeichen.

@albig
Copy link
Member

albig commented Aug 9, 2024

closed in favor of #698

@albig albig closed this Aug 9, 2024
@albig albig deleted the task/fix-686 branch August 28, 2024 07:59
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.

Fallback Schriftart für PT Sans
2 participants