[OT] Installing Linux fonts

G. Wolfgang Gaich gwolfgang at gaich.de
Wed Jun 16 11:33:05 EDT 2010


Hello Richmond,

I am pleased to have helped you (is that good english?)

If you don't want that the user have to use fc-cache, you can give an 
information, that it is necessary to restart the graphical user 
interface (gnome or kde or...) after the installation of your program. A 
fc-cache is done automatically when the gui is restarted.

Regards
Wolfgang



Am 16.06.2010 17:06, schrieb Richmond:
> On 06/13/2010 01:09 AM, G. Wolfgang Gaich wrote:
>> Hello Richmond,
>>
>> I tested to use all installed fonts on Ubuntu 10.04 with rev. No 
>> problem.
>>
>> With
>>
>> set the textfont of fld "/field/" to "/fontname/"
>>
>> I can use all available fonts.
>>
>> Only the function fontnames() does not return all the fonts.
>>
>> But you can get a list of fontnames with
>>
>> put shell("fc-list") into tTempFontsList
>> set the itemdel to ":"
>> repeat for each line tL in tTempFontsList
>>    set the itemdel to ":"
>>    put item 1 of tL into tL2
>>    set the itemdel to ","
>>    put item 1 of tL2 & cr after tFontsList
>> end repeat
>> delete char -1 of tFontsList
>>
>>
>> If you want to install a user font then copy it into 
>> /home/<user>/.fonts/truetype/
>> and in console type:
>>
>> >  sudo fc-cache
>>
>> Now you can use that font with rev.
>>
> Thanks Wolfgang! I just tried your recipe and it really solves all my 
> problems
> (and I hope that Peter will feel that this is a suitable 'stop gap').
>
> My only grumble is that I have to expect end-users to be proficient with
> the terminal for sudo fc-cache. Unfortunately, as every end user has 
> adifferent
> password there is no way to build this into a stack.
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the Use-livecode mailing list