Skip to content

Commit c82f738

Browse files
Add tip: check font installed locally
1 parent 8af97d5 commit c82f738

File tree

13 files changed

+360
-1
lines changed

13 files changed

+360
-1
lines changed

translations/de-DE/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Eine Sammlung an Tipps, um deine CSS-Fähigkeiten zu professionalisieren.
2222
1. [Übernehme `box-sizing`](#Übernehme-box-sizing)
2323
1. [Benutze `unset`, anstatt alle Eigenschaften zurückzusetzen](#benutze-unset-anstatt-alle-eigenschaften-zurückzusetzen)
2424
1. [Benutze `:not()` um Rahmen an die Navigation zu setzen oder zu entfernen](#benutze-not-um-rahmen-an-die-navigation-zu-setzen-oder-zu-entfernen)
25+
1. [Kontroller, om skrifttypen er installeret lokalt](#Kontroller-om-skrifttypen-er-installeret-lokalt)
2526
1. [Ergänze `line-height` an `body`](#ergänze-line-height-an-body)
2627
1. [Setze `:focus` für Form-Elemente](#setze-focus-für-form-elemente)
2728
1. [Zentriere alles vertikal](#zentriere-alles-vertikal)
@@ -152,6 +153,34 @@ Sicher, du kannst `.nav li + li` verwenden, aber mit `:not()` ist die Absicht se
152153
<sup>[zurück zum Inhaltsverzeichnis](#inhaltsverzeichnis)</sup>
153154

154155

156+
### Check If Font Is Installed Locally](#check-if-font-is-installed-locally)
157+
158+
### Kontroller, om skrifttypen er installeret lokalt
159+
160+
Du kan kontrollere, om en skrifttype er installeret lokalt, før du henter den eksternt, hvilket også er et godt ydelsestip.
161+
162+
```css
163+
@font-face {
164+
font-family: "Dank Mono";
165+
src:
166+
/* Full name */
167+
local("Dank Mono"),
168+
/* Postscript name */
169+
local("Dank Mono"),
170+
/* Otherwise, download it! */
171+
url("//...a.server/fonts/DankMono.woff");
172+
}
173+
174+
code {
175+
font-family: "Dank Mono", system-ui-monospace;
176+
}
177+
```
178+
179+
Hat tip til Adam Argyle for at dele denne protip og [demoen](https://codepen.io/argyleink/pen/VwYJpgR).
180+
181+
<sup>[zurück zum Inhaltsverzeichnis](#inhaltsverzeichnis)</sup>
182+
183+
155184
### Ergänze `line-height` an `body`
156185

157186
Du brauchst kein `line-height` an jedes `<p>`, `<h*>`, usw separat zu schreiben. Ergänze es stattdessen an `body`:

translations/es-ES/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Una colección de consejos para ayudarte a mejorar tus conocimientos profesional
2222
1. [Heredar `box-sizing`](#heredar-box-sizing)
2323
1. [Utilice `unset` en lugar de restablecer todas las propiedades](#utilice-unset-en-lugar-de-restablecer-todas-las-propiedades)
2424
1. [Usar `:not()` para Aplicar o Cancelar la aplicación de bordes en la navegación](#usar-not-para-aplicar-o-cancelar-la-aplicación-de-bordes-en-la-navegación)
25+
1. [Compruebe si la fuente está instalada localmente](#compruebe-si-la-fuente-está-instalada-localmente)
2526
1. [Añadir `line-height` al `body`](#añadir-line-height-al-body)
2627
1. [Establecer `:focus` para elementos de formulario](#establecer-focus-para-elementos-de-formulario)
2728
1. [Centrar cualquier cosa verticalmente](#centrar-cualquier-cosa-verticalmente)
@@ -153,6 +154,32 @@ El selector CSS define los bordes de la forma en que un ser humano lo describir
153154
<sup>[volver al índice de contenidos](#tabla-de-contenido)</sup>
154155

155156

157+
### Compruebe si la fuente está instalada localmente
158+
159+
Puede verificar si una fuente está instalada localmente antes de buscarla de forma remota, lo que también es un buen consejo de rendimiento.
160+
161+
```css
162+
@font-face {
163+
font-family: "Dank Mono";
164+
src:
165+
/* Full name */
166+
local("Dank Mono"),
167+
/* Postscript name */
168+
local("Dank Mono"),
169+
/* Otherwise, download it! */
170+
url("//...a.server/fonts/DankMono.woff");
171+
}
172+
173+
code {
174+
font-family: "Dank Mono", system-ui-monospace;
175+
}
176+
```
177+
178+
Felicitaciones a Adam Argyle por compartir este protip y [demo](https://codepen.io/argyleink/pen/VwYJpgR).
179+
180+
<sup>[volver al índice de contenidos](#tabla-de-contenido)</sup>
181+
182+
156183
### Añadir `line-height` al `body`
157184

158185
No es necesario añadir `line-height` a cada` <p> `,` <h *> `, _et al_. por separado. En su lugar, agregalo al `body`:

translations/fr-FR/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Une collection de conseils pour vous aider à mener vos compétences CSS au nive
2222
1. [Hériter de `box-sizing`](#hériter-de-box-sizing)
2323
1. [Utilisez `unset` au Lieu de Réinitialiser Toutes les Propriétés](#utilisez-unset-au-lieu-de-réinitialiser-toutes-les-propriétés)
2424
1. [Utiliser `:not()` pour Appliquer / ne pas Appliquer des Bordures à la Barre de Navigation](#utiliser-not-pour-appliquer--ne-pas-appliquer-des-bordures-à-la-barre-de-navigation)
25+
1. [Vérifiez si la police est installée localement](#vérifiez-si-la-police-est-installée-localement)
2526
1. [Ajouter `line-height` à `body`](#ajouter-line-height-à-body)
2627
1. [Définissez `: focus` pour les Éléments de Formulaire](#définissez-focus-pour-les-éléments-de-formulaire)
2728
1. [Tout Centrer Verticalement](#tout-centrer-verticalement)
@@ -153,6 +154,32 @@ Le sélecteur CSS définit la frontière comme un humain la décrirait.
153154
<sup>[retour à la table des matières](#table-des-matières)</sup>
154155

155156

157+
### Vérifiez si la police est installée localement
158+
159+
Vous pouvez vérifier si une police est installée localement avant de la récupérer à distance, ce qui est également une bonne astuce de performance.
160+
161+
```css
162+
@font-face {
163+
font-family: "Dank Mono";
164+
src:
165+
/* Full name */
166+
local("Dank Mono"),
167+
/* Postscript name */
168+
local("Dank Mono"),
169+
/* Otherwise, download it! */
170+
url("//...a.server/fonts/DankMono.woff");
171+
}
172+
173+
code {
174+
font-family: "Dank Mono", system-ui-monospace;
175+
}
176+
```
177+
178+
Pointe du chapeau à Adam Argyle pour avoir partagé ce protip et cette [démo](https://codepen.io/argyleink/pen/VwYJpgR).
179+
180+
<sup>[retour à la table des matières](#table-des-matières)</sup>
181+
182+
156183
### Ajouter `line-height` à `body`
157184

158185
Vous n'avez pas besoin d'ajouter `line-height` à chaque `<p>`, `<h*>`, _et al_. séparément. Au lieu de cela, ajoutez-le à `body`:

translations/gr-GR/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
1. [Κληρονόμιση του 'box-sizing'](#κληρονόμιση-του-box-sizing)
2323
1. [Χρήση `unset` Αντί Για Επαναφορά Όλων Των Ιδιοτήτων](#χρήση-unset-αντί-για-επαναφορά-όλων-των-ιδιοτήτων)
2424
1. [Χρήση `:not()` για Εφαρμόσεις/Βγάλεις τα Πλαίσια κατά την Περιήγηση](#χρήση-not-για-εφαρμόσειςβγάλεις-τα-πλαίσια-κατά-την-περιήγηση)
25+
1. [Überprüfen Sie, ob die Schriftart lokal installiert ist](#Überprüfen-sie-ob-die-schriftart-lokal-installiert-ist)
2526
1. [Προσθήκη `line-height` στο `body`](#προσθήκη-line-height-στο-body)
2627
1. [Θέσε `:focus` για Στοιχεία της Φόρμας](#θέσε-focus-για-στοιχεία-της-φόρμας)
2728
1. [Κάθετο-Κεντράρισμα Όλων](#κάθετο-κεντράρισμα-όλων)
@@ -152,6 +153,32 @@ button {
152153
<sup>[πίσω στον πίνακα περιεχομένων](#πίνακας-περιεχομένων)</sup>
153154

154155

156+
### Überprüfen Sie, ob die Schriftart lokal installiert ist
157+
158+
Sie können überprüfen, ob eine Schriftart lokal installiert ist, bevor Sie sie remote abrufen. Dies ist auch ein guter Leistungstipp.
159+
160+
```css
161+
@font-face {
162+
font-family: "Dank Mono";
163+
src:
164+
/* Full name */
165+
local("Dank Mono"),
166+
/* Postscript name */
167+
local("Dank Mono"),
168+
/* Otherwise, download it! */
169+
url("//...a.server/fonts/DankMono.woff");
170+
}
171+
172+
code {
173+
font-family: "Dank Mono", system-ui-monospace;
174+
}
175+
```
176+
177+
Hutspitze an Adam Argyle für das Teilen dieses Protips und dieser [Demo](https://codepen.io/argyleink/pen/VwYJpgR).
178+
179+
<sup>[πίσω στον πίνακα περιεχομένων](#πίνακας-περιεχομένων)</sup>
180+
181+
155182
### Προσθήκη `line-height` στο `body`
156183

157184
Δεν χρειάζεται να προσθέσεις `line-height`σε κάθε `<p>`, `<h*>`, _et al_. ξεχωριστά. Αντ'αυτού, πρόσθεσέ το `body`:

translations/gu-IND/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
1. [વારસો `box-sizing`](#વારસો-box-sizing)
2323
1. [બધા ગુણધર્મોને ફરીથી સેટ કરવાને બદલે 'અનસેટ' નો ઉપયોગ કરો](#બધા-ગુણધર્મોને-ફરીથી-સેટ-કરવાને-બદલે-અનસેટ-નો-ઉપયોગ-કરો)
2424
1. [વાપરવ `:not()` અરજી / અનપ્પેલી કરવા માટે નેવિગેશન પર બોર્ડર્સ](#વાપરવ-not-અરજી--અનપ્પેલી-કરવા-માટે-નેવિગેશન-પર-બોર્ડર્સ)
25+
1. [સ્થાનિક રીતે ફોન્ટ ઇન્સ્ટોલ કરેલું છે કે નહીં તે તપાસો](#સ્થાનિક-રીતે-ફોન્ટ-ઇન્સ્ટોલ-કરેલું-છે-કે-નહીં-તે-તપાસો)
2526
1. [ઉમેરો `line-height` તરફ `body`](#ઉમેર-line-height-તરફ-body)
2627
1. [ફોર્મ તત્વો માટે 'ધ્યાન કેન્દ્રિત કરો' સેટ કરો](#ફોર્મ-તત્વો-માટે-ધ્યાન-કેન્દ્રિત-કરો-સેટ-કરો)
2728
1. [વર્ટિકલ-કેન્દ્ર કંઈપણ](#ઊભું-કેન્દ્ર-કંઈપણ)
@@ -152,6 +153,32 @@ CSS પસંદગીકાર સીમાને વ્યાખ્યાય
152153
<sup>[સામગ્રીઓના કોષ્ટકમાં પાછા](#પ્રોપ્સ)</sup>
153154

154155

156+
### સ્થાનિક રીતે ફોન્ટ ઇન્સ્ટોલ કરેલું છે કે નહીં તે તપાસો
157+
158+
તમે તપાસ કરી શકો છો કે ફોન્ટ તેને દૂરસ્થ રીતે લાવવા પહેલાં સ્થાનિક રૂપે ઇન્સ્ટોલ કરેલું છે કે નહીં, તે પણ એક સારા પ્રદર્શનની મદદ છે.
159+
160+
```css
161+
@font-face {
162+
font-family: "Dank Mono";
163+
src:
164+
/* Full name */
165+
local("Dank Mono"),
166+
/* Postscript name */
167+
local("Dank Mono"),
168+
/* Otherwise, download it! */
169+
url("//...a.server/fonts/DankMono.woff");
170+
}
171+
172+
code {
173+
font-family: "Dank Mono", system-ui-monospace;
174+
}
175+
```
176+
177+
આ પ્રોટીપ અને ડેમો શેર કરવા માટે એડમ આર્ગીલેને ટોપીની [મદદ](https://codepen.io/argyleink/pen/VwYJpgR).
178+
179+
<sup>[સામગ્રીઓના કોષ્ટકમાં પાછા](#પ્રોપ્સ)</sup>
180+
181+
155182
### ઉમેર `line-height` તરફ `body`
156183

157184
તમારે ઉમેરવાની જરૂર નથી `line-height` to દરેક `<p>`, `<h*>`, _et al_. અલગ. તેની જગ્યાએ, તેને ઉમેરવા `body`:

translations/ja-JP/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ CSSのプロのスキルになるようにアドバイスのリストを紹介
2727
1. [box-sizingをコンポーネントごとに変更](#inherit-box-sizing)
2828
1. [すべてのプロパティをリセットする代わりに `unset`を使う](#use-unset-instead-of-resetting-all-properties)
2929
1. [`:not()` を使用 / ボーダーを削除](#use-not-to-applyunapply-borders-on-navigation)
30+
1. [フォントがローカルにインストールされているかどうかを確認します](#check-if-font-is-installed-locally)
3031
1. [`body``line-height`を加える](#add-line-height-to-body)
3132
1. [フォーム要素に `:focus`を設定する](#set-focus-for-form-elements)
3233
1. [天地の中央に配置](#vertically-center-anything)
@@ -167,6 +168,34 @@ CSSセレクターは、境界線を人間が表現する方法で定義しま
167168
<sup>[目次へ戻る](#table-of-contents)</sup>
168169

169170

171+
<div id="check-if-font-is-installed-locally"></div>
172+
173+
### フォントがローカルにインストールされているかどうかを確認します
174+
175+
フォントをリモートでフェッチする前に、フォントがローカルにインストールされているかどうかを確認できます。これもパフォーマンスのヒントになります。
176+
177+
```css
178+
@font-face {
179+
font-family: "Dank Mono";
180+
src:
181+
/* Full name */
182+
local("Dank Mono"),
183+
/* Postscript name */
184+
local("Dank Mono"),
185+
/* Otherwise, download it! */
186+
url("//...a.server/fonts/DankMono.woff");
187+
}
188+
189+
code {
190+
font-family: "Dank Mono", system-ui-monospace;
191+
}
192+
```
193+
194+
このプロチップと[デモ](https://codepen.io/argyleink/pen/VwYJpgR)を共有してくれたAdam Argyleへの帽子のヒント.
195+
196+
<sup>[目次へ戻る](#table-of-contents)</sup>
197+
198+
170199
<div id="add-line-height-to-body"></div>
171200

172201
### `body``line-height`を加える

translations/ko-KR/readme.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ CSS스킬을 프로처럼 만들어주는 팁 모음
2525
1. [`box-sizing`을 컴포넌트마다 변경](#inherit-box-sizing)
2626
1. [모든 프로퍼티를 리셋하는 대신에 `unset`를 쓴다](#use-unset-instead-of-resetting-all-properties)
2727
1. [`:not()` 를 사용하여 Border를 삭제](#use-not-to-applyunapply-borders-on-navigation)
28+
1. [글꼴이 로컬로 설치되어 있는지 확인](#check-if-font-is-installed-locally)
2829
1. [`body``line-height` 넣기](#add-line-height-to-body)
2930
1. [폼 요소에`: focus`를 설정하십시오.](#set-focus-for-form-elements)
3031
1. [전부 Vertically-Center로 만들기](#vertically-center-anything)
@@ -165,6 +166,34 @@ CSS 선택기는 사람이 설명하는 방식으로 경계를 정의합니다.
165166
<sup>[목차로 돌아가기](#table-of-contents)</sup>
166167

167168

169+
<div id="check-if-font-is-installed-locally"></div>
170+
171+
### 글꼴이 로컬로 설치되어 있는지 확인
172+
173+
글꼴을 원격으로 가져 오기 전에 글꼴이 로컬에 설치되어 있는지 확인할 수 있으며 이는 좋은 성능 팁입니다.
174+
175+
```css
176+
@font-face {
177+
font-family: "Dank Mono";
178+
src:
179+
/* Full name */
180+
local("Dank Mono"),
181+
/* Postscript name */
182+
local("Dank Mono"),
183+
/* Otherwise, download it! */
184+
url("//...a.server/fonts/DankMono.woff");
185+
}
186+
187+
code {
188+
font-family: "Dank Mono", system-ui-monospace;
189+
}
190+
```
191+
192+
이 팁과 [데모](https://codepen.io/argyleink/pen/VwYJpgR)를 공유 한 Adam Argyle의 모자 팁.
193+
194+
<sup>[목차로 돌아가기](#table-of-contents)</sup>
195+
196+
168197
<div id="add-line-height-to-body"></div>
169198

170199
### `body``line-height` 넣기

translations/pl-PL/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Zbiór porad, które pomogą Ci rozwinąć zawansowane umiejętności CSS.
2121
1. [Dziedziczenie `box-sizing`](#dziedziczenie-box-sizing)
2222
1. [Użyj `unset` zamiast resetowania wszystkich ustawień](#użyj-unset-zamiast-resetowania-wszystkich-ustawień)
2323
1. [Użyj `:not()` aby dodać/usunąć obramownie nawigacji](#użyj-not-aby-dodaćusunąć-obramownie-nawigacji)
24+
1. [Sprawdź, czy czcionka jest zainstalowana lokalnie](#sprawdź,-czy-czcionka-jest-zainstalowana-lokalnie)
2425
1. [Dodaj `line-height` do `body`](#dodaj-line-height-do-body)
2526
1. [Ustaw `:focus` dla elementów formularza](#ustaw-:focus-dla-form-elements)
2627
1. [Przesuń cokolwiek pionowo](#przesuwanie-w-pionie)
@@ -149,6 +150,32 @@ Selektor CSS definiuje granicę w sposób opisany przez człowieka.
149150
<sup>[powrót do spisu treści](#powrót-do-spisu-treści)</sup>
150151

151152

153+
### Sprawdź, czy czcionka jest zainstalowana lokalnie
154+
155+
Możesz sprawdzić, czy czcionka jest zainstalowana lokalnie, przed jej zdalnym pobraniem, co również jest dobrą wskazówką dotyczącą wydajności.
156+
157+
```css
158+
@font-face {
159+
font-family: "Dank Mono";
160+
src:
161+
/* Full name */
162+
local("Dank Mono"),
163+
/* Postscript name */
164+
local("Dank Mono"),
165+
/* Otherwise, download it! */
166+
url("//...a.server/fonts/DankMono.woff");
167+
}
168+
169+
code {
170+
font-family: "Dank Mono", system-ui-monospace;
171+
}
172+
```
173+
174+
Czapka dla Adama Argyle'a za podzielenie się tym prototypem i [demonstracją](https://codepen.io/argyleink/pen/VwYJpgR).
175+
176+
<sup>[powrót do spisu treści](#powrót-do-spisu-treści)</sup>
177+
178+
152179
### Dodaj `line-height` do `body`
153180

154181
Nie musisz dodawać `wysokości linii` do każdego `<p>`, `<h*>`, _et al_. osobno. Zamiast tego dodaj go do `body`:

translations/pt-BR/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Uma coleção de dicas para aumentar suas habilidades no CSS.
2222
1. [Herde o `box-sizing`](#herde-o-box-sizing)
2323
1. [Use `unset` em vez de redefinir todas as propriedades](#use-unset-em-vez-de-redefinir-todas-as-propriedades)
2424
1. [Use `:not()` para Aplicar/Remover Bordas](#use-not-para-aplicarremover-bordas)
25+
1. [Verifique se a fonte está instalada localmente](#verifique-se-a-fonte-está-instalada-localmente)
2526
1. [Defina o `line-height` no `body`](#defina-o-line-height-no-body)
2627
1. [Definir `:focus` para elementos de formulário](#definir-focus-para-elementos-de-formulário)
2728
1. [Alinhe Elementos Verticalmente](#alinhe-elementos-verticalmente)
@@ -151,6 +152,32 @@ O seletor CSS define a borda da maneira que um humano a descreveria.
151152
<sup>[voltar ao índice](#Índice)</sup>
152153

153154

155+
### Verifique se a fonte está instalada localmente
156+
157+
Você pode verificar se uma fonte está instalada localmente antes de buscá-la remotamente, o que também é uma boa dica de desempenho.
158+
159+
```css
160+
@font-face {
161+
font-family: "Dank Mono";
162+
src:
163+
/* Full name */
164+
local("Dank Mono"),
165+
/* Postscript name */
166+
local("Dank Mono"),
167+
/* Otherwise, download it! */
168+
url("//...a.server/fonts/DankMono.woff");
169+
}
170+
171+
code {
172+
font-family: "Dank Mono", system-ui-monospace;
173+
}
174+
```
175+
176+
Dica de chapéu para Adam Argyle por compartilhar este protip e [exemplo](https://codepen.io/argyleink/pen/VwYJpgR).
177+
178+
<sup>[voltar ao índice](#Índice)</sup>
179+
180+
154181
### Defina o `line-height` no `body`
155182

156183
Você não precisa adicionar o `line-height` para cada `<p>`, `<h*>`, _et al_. separadamente. Apenas adicione ao `body`:

0 commit comments

Comments
 (0)