@ibm/plex-sans-arabic

1.1.0 • Public • Published

IBM Plex® Sans Arabic

Plex

Add the IBM Plex Sans Arabic typeface to your device

Please download the latest zip files from our releases page for installation.

Web usage

This project contains the following for web development:

  • IBM Plex .woff2 and .woff files split into performant subsets of glyphs
  • Cascading style sheet (CSS) code to reference any weight, variant and split
  • Sass (SCSS) modules for more granular configuration and control of output css

We only include .woff2 and .woff files due to NPM package size limitation.

Installation with Node.js®:

npm install @ibm/plex-sans-arabic

Manually installing the files for web development can be done by downloading the latest web zip from our releases page.

Developers using the CSS files should keep the directory structure as is, so the font files will be found. If you’re importing the SCSS files, you can set the path of the font files by declaring $font-prefix: 'font-path-prefix' inside the @use. For example:

@use '@ibm/plex-sans-arabic/scss' as PlexSansArabic with (
  $font-prefix: 'font-path'
);

@include PlexSansArabic.all();

Font weights

We provide two ways of importing weights into your project. Using PlexSansArabic.all() will import all available weights and PlexSansArabic.default() will import only light, regular and semibold weight. You can also disable unwanted weights inside the @use. For example:

// Disable weights
@use '@ibm/plex-sans-arabic/scss' as PlexSansArabic with (
  $font-weights: (
    bold: false,
    extralight: false,
    light: false,
    medium: false,
    regular: false,
    semibold: false,
    text: false,
    thin: false
  )
);

@include PlexSansArabic.all();

IBM Plex Sans Arabic typeface weights map:

Weight Enabled by default with PlexSansArabic.all() PlexSansArabic.default()
bold
extralight
light
medium
regular
semibold
text
thin

Below are the font-family rules for the family:

font-family: 'IBM Plex Sans Arabic';

Building the fonts from source

Requirements

To build binary font files from .vfb sources you need FontLab Studio 5. A Python script called IBM Plex export FDK files.py is necessary to export the proper files from FontLab. To run this script you’ll need the RoboFab library. Also, you’ll need to have the Adobe Font Development Kit for OpenType (AFDKO) installed.

Building one font

From FontLab, run IBM Plex export FDK files.py and choose a directory with IBM Plex .vfb source files. The script will create a new directory called fdk in which subdirectories are created for every font. The script will export files necessary for AFDKO in those subdirectories.

Subsequently, OpenType Fonts (OTFs) or TrueType Fonts (TTFs) can be generated from the command line using makeotf, which is part of the AFDKO toolset. Information and usage instructions can be found by executing makeotf -h.

IBM Telemetry IBM Telemetry

This package uses IBM Telemetry to collect de-identified and anonymized metrics data. By installing this package as a dependency you are agreeing to telemetry collection. To opt out, see Opting out of IBM Telemetry data collection. For more information on the data being collected, please see the IBM Telemetry documentation.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.03latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.03
1.0.03
0.0.3-alpha.015,050
0.0.2-alpha.019

Package Sidebar

Install

npm i @ibm/plex-sans-arabic

Weekly Downloads

15,075

Version

1.1.0

License

OFL-1.1

Unpacked Size

1.48 MB

Total Files

36

Last publish

Collaborators

  • gcattan
  • carbon-design-system
  • alisonjoseph
  • bjost
  • sanjula.ganepola.ibm
  • jonnyzak32
  • phaumer
  • tay1orjones
  • mmcelaney
  • aifound
  • michael.froend
  • odfbackuprestore
  • calanais
  • ibm-bamoeci
  • joesepi
  • edmund.reinhardt
  • jjasghar
  • yihongwang
  • cmarcink
  • dan-pastrolin-ibm
  • leo-costa-ibm
  • palke_ibm