Can anyone confirm that setting the typeface of a shortcut doesn’t get set correctly when done via script and…

Can anyone confirm that setting the typeface of a shortcut doesn’t get set correctly when done via script and property set (font doesn’t get applied compared to when changed via item property menu)?

Weird thing: when going to the properties, the font is selected in the font list. When selecting the same font again manually it gets applied correctly. So the font (which is imported correctly) can’t be the problem. I guess.

What other options are there to use a different font in script?

Any thoughts?

]]>

7 Commentsto Can anyone confirm that setting the typeface of a shortcut doesn’t get set correctly when done via script and…

  1. Anonymous says:

    < ![CDATA[

    Which script?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Not a specific script. Just using the shortcut property “s.labelfontstyle” in one of my scripts.

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Wait…stable version or beta?


    There was a bug that is fixed on the beta.

    ]]>

  4. Anonymous says:

    < ![CDATA[

    I am on beta. (b5)

    ]]>

  5. Anonymous says:

    < ![CDATA[

    You mention “s.labelfontstyle”, did you mean “s.labelFontTypeFace” ?


    I tested “s.labelFontStyle” (case matter), it seems to work. In order to change the typeface you need to specify the full path, which is usually built upon the launcher directory this way: LL.getContext().getFilesDir()+”/fonts/your_file.ttf” (tested too).

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Fontstyle in my comment was a mistake. In the bug description I used fonttypeface. Sorry for that.



    I tried your getfolderdirs() suggestion and it worked.


    I guess the font has to be imported in LL order to work.

    ]]>

  7. Anonymous says:

    < ![CDATA[

    The reason why you can’t find this folder is because it is not readable by a linux user different from the app’s one, but I confirm this is the right one, it is created as soon as you import a font.


    Try with these reserved values “s” for system font and “i” for icon font. This way it will be possible to know whether something is wrong with the path or if the issue is elsewhere.


    I don’t know if you cut&paste the last line or if this is a typo while manually replicating it, but make sure this is s.labelFontTypeFace.



    Edit: I just saw your last comment, forget about mine then. Yes the font has to be imported otherwise it could be missing while exporting.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *