-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56cd299
commit 2870230
Showing
15 changed files
with
146 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
# Dense and tall scripts | ||
|
||
## Collections | ||
|
||
We provide the necessary adjustments for the predefined collections for both | ||
dense and tall scripts. They have the exact same properties as the other | ||
collections. | ||
|
||
You can check the language categories reference in the | ||
[Material Design page](https://material.io/guidelines/style/typography.html#typography-language-categories-reference). | ||
|
||
### Material Design | ||
|
||
```JSX | ||
import { materialDense, materialTall } from 'react-native-typography' | ||
``` | ||
|
||
The adjustments made are based on the | ||
[Material Design guidelines](https://material.io/guidelines/style/typography.html) | ||
for dense and tall scripts. | ||
|
||
<img alt="Material Design Dense" src="images/material-dense.png" width="750" height="734"/> | ||
<img alt="Material Design Tall" src="images/material-tall.png" width="750" height="739"/> | ||
|
||
### Human Interface Guidelines | ||
|
||
```JSX | ||
import { humanDense, humanTall } from 'react-native-typography' | ||
``` | ||
|
||
The adjustments here are minor and just to ensure proper rendering on all | ||
platforms. | ||
|
||
<img alt="Human Interface Guidelines Dense" src="images/human-dense.png" width="750" height="864"/> | ||
<img alt="Human Interface Guidelines Tall" src="images/human-tall.png" width="750" height="879"/> | ||
|
||
### iOSUIKit | ||
|
||
```JSX | ||
import { iOSUIKitDense, iOSUIKitTall } from 'react-native-typography' | ||
``` | ||
|
||
The adjustments here are minor and just to ensure proper rendering on all | ||
platforms. | ||
<img alt="iOSUIKit Dense" src="images/iosuikit-dense.png" width="750" height="943"/> | ||
<img alt="iOSUIKit Tall" src="images/iosuikit-tall.png" width="750" height="974"/> | ||
|
||
## Weight helpers | ||
|
||
The weight helpers for dense and tall scripts are different, as they render | ||
using different fonts and weights on each platform. | ||
|
||
On iOS the San Francisco font is used for all scripts. | ||
|
||
On Android the Noto font is used to render the dense and tall scripts, in two | ||
variants. | ||
|
||
The System weights render visually similar weights of the **San Francisco/Noto | ||
typefaces** on each platform. | ||
|
||
### System Dense Weights | ||
|
||
```JSX | ||
import { systemDenseWeights } from 'react-native-typography' | ||
``` | ||
|
||
Not all dense languages have every weight in iOS or on Android, we try to match | ||
it to the closer existing value, but ultimately every weight might fall back to | ||
regular or bold depending on what's available. | ||
|
||
<img alt="System Dense Weights iOS" src="images/system-dense-ios.png" width="620" height="258"/> | ||
<img alt="System Dense Weights Android" src="images/system-dense-android.png" width="620" height="258"/> | ||
|
||
### System Tall Weights | ||
|
||
```JSX | ||
import { systemTallWeights } from 'react-native-typography' | ||
``` | ||
|
||
Noto Sans only has two weight values for tall scripts, so we fall back to the | ||
closest value. For iOS there are some other weights available depending on the | ||
language. | ||
|
||
<img alt="System Tall Weights iOS" src="images/system-tall-ios.png" width="620" height="268"/> | ||
<img alt="System Tall Weights Android" src="images/system-tall-android.png" width="620" height="268"/> | ||
|
||
### Noto CJK Weights | ||
|
||
```JSX | ||
import { notoCJKWeights } from 'react-native-typography' | ||
``` | ||
|
||
These weights are **only functional on Android**, as they directly reference the | ||
native Noto CJK typeface. | ||
|
||
Noto Sans CJK has seven weight values originally, but they are not shipped with | ||
Android for now, so we only have regular and bold. | ||
|
||
<img alt="Noto CJK Weights" src="images/noto-cjk.png" width="620" height="137"/> | ||
|
||
### Noto Tall Weights | ||
|
||
```JSX | ||
import { notoTallWeights } from 'react-native-typography' | ||
``` | ||
|
||
These weights are **only functional on Android**, as they directly reference the | ||
native Noto typeface. | ||
|
||
For the tall scripts there is only regular and bold available. | ||
|
||
<img alt="Noto Tall Weights" src="images/noto-tall.png" width="620" height="137"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.