Giter Site home page Giter Site logo

tribalfs / android-studio-sec-fonts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oneuiproject/android-studio-sec-fonts

1.0 0.0 0.0 87.43 MB

Additional samsung fonts to fix the preview error in the Layout Editor of Android Studio when using SESL/OneUI libraries

PowerShell 100.00%

android-studio-sec-fonts's Introduction

Android Studio SEC Fonts

As described in this issue, using one of our One UI libraries (both sesl and the old Design lib) will cause issues with the Android Studio Layout Editor. This happens because Samsung's text styles use a custom fontFamily which is not available on AOSP. This repository contains a Samsung fonts pack that needs to be added to the AOSP ones included in Android Studio.

Usage

Download the repo archive and extract it.

Navigate to the "plugins/design-tools/resources/layoutlib/data/fonts" directory inside your Android Studio folder, then:

Before proceeding, make a backup of this "fonts" folder first as you need to (temporarily) restore this everytime you need update Android Studio

  • Add the all "*.tff" files from the "secfonts" folder of the downloaded archive.
  • Open the "fonts.xml" file and append to inside the <familyset> tag the contents from inside <familyset> tag of the "fonts.xml" found inside "secfonts" folder.

For Windows, you can run SecFontsFix.ps1 in Windows PowerShell to automatically perform the above including backing and and restoring the original "fonts" directory.

android-studio-sec-fonts's People

Contributors

tribalfs avatar salvogiangri avatar

Stargazers

 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.