Giter Site home page Giter Site logo

sfsymbolsmetadata's Introduction

SF Symbols Metadata

Overview

At WWDC 2019 Apple announced SF Symbols, their own set of icons to use in native apps.

The official way to see the full list of provided icons is to use the SF Symbols app for macOS. And this is useful for humans. For computers? Not so much.

The data itself, including symbol names, search metadata, and much more, is baked into San Francisco font files in a non-documented private encrypted font table. When decrypted, it happens to be in a nice and easy CSV format.

SF Symbols Metadata extracts and decrypts this data.

Usage

CSV files

This repo contains the data extracted from font files, as it was originally stored. See the CSV folder.

Conversion script

You can use sfsymbolsconvert.py to extract the encrypted data contained in San Francisco font-family files yourself.

The script uses following dependencies: Click, FontTools, and PyCryptodome. You can install them manually through pip:

pip3 install click fonttools pycryptodomex

Or using Pipenv:

pipenv install
pipenv shell

Then you can run the script from Terminal like this: python3 sfsymbolsconvert.py PATH_TO_FONT. This will ask you to enter the AES Key and IV, see below for Apple values.

$ python3 sfsymbolsconvert.py SF-Pro-Text-Regular.otf
AES Key: B885F69E398CBA7240DB496BE8C61488549F1F885D476B2E2CC114F13B172120
AES IV: EFB0D12EFAC59114C3E5B91270F0C046
Written 413312 bytes to SF-Pro-Text-Regular-symbols.csv.

For further options, run python3 sfsymbolsconvert.py --help.

sfsymbolsmetadata's People

Contributors

auramagi avatar kireev4art avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.