Results 1 to 2 of 2

Thread: How to use custom fonts

  1. #1

    Default How to use custom fonts

    Where to put custom fonts?


    I want to include "Roboto" font in architect. I build a SCSS Resource and add this:

    HTML Code:

    @include font-face('Roboto', font-files('Roboto/Roboto-Light.ttf'), false, normal, normal); @include font-face('Roboto', font-files('Roboto/Roboto-LightItalic.ttf'), false, normal, italic);@include font-face('Roboto', font-files('Roboto/Roboto-Bold.ttf'), false, bold, normal);@include font-face('Roboto', font-files('Roboto/Roboto-BoldItalic.ttf'), false, bold, italic);
    The font-files are in:
    C:\Users\rev\AppData\Local\Sencha\Sencha Architect 3.0\extracted\touch23-compile\themes\fonts\roboto

    But the console shows the following:
    GET http://localhost/fonts/Roboto/Roboto-Light.ttf 404 (Not Found)

    What i am doing wrong?

    Thanks guys.

  2. #2
    Sencha User arnebech's Avatar
    Join Date
    Jun 2010
    Posts
    498
    Answers
    10

    Default

    Hey,

    This thread might help out a little bit
    http://www.sencha.com/forum/showthre...-in-Architect3

    If you want to link to your fonts, the fonts need to be in your project folder. If you want to inline your fonts, you'll have to use the same (unsupported) way of putting them in the app data folder (but then you'd need to use the inline-font-files function). Due note that these support compile folders will be deleted and re-created when updating Architect.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •