Android custom fonts in web scroller native control...

Ralph DiMola rdimola at evergreeninfo.net
Sun Jun 2 01:12:25 EDT 2013


I agree, all paths should be relative. Try that.
Also put an 

"answer the fontNames" at the app start up and see if all the fonts are
there.

Ralph DiMola
IT Director
Evergreen Information Services
rdimola at evergreeninfo.net


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf
Of Paul Maguire
Sent: Saturday, June 01, 2013 6:39 PM
To: How to use LiveCode
Subject: Re: Android custom fonts in web scroller native control...

Hi Ralph. 

I have a Media folder which contains all assets including fonts. This folder
is included in standalone settings. It works under iOS - the Livecode UI
displays fonts and native web scroller using CSS displays fonts. In Android,
fonts appear in UI but not in scroller. I think this is to do with the path
I have set up in the CSS - it works differently on different platforms. I
think I need to make the path to the fonts relative to the temp HTML file I
am writing out - I can't test until Monday though. 

Thanks for your advice - will feed back any results. 

Kind regards,  Paul. 

On 1 Jun 2013, at 22:32, "Ralph DiMola" <rdimola at evergreeninfo.net> wrote:

> I don't dynamically build pages but I do display pre-built pages on 
> both iOS and Android using the EXACT same code. The only thing a can 
> suggest is making sure the path in the font reference in the html(css) 
> is correct. Are the fonts in the "copy file" pane(or some subfolder) 
> in the Standalone settings? Downloading  and loading the fonts at 
> runtime can't be done(at least so says the dictionary).
> 
> Ralph DiMola
> IT Director
> Evergreen Information Services
> rdimola at evergreeninfo.net
> 
> 
> -----Original Message-----
> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On 
> Behalf Of Paul Maguire
> Sent: Saturday, June 01, 2013 4:45 PM
> To: How to use LiveCode
> Subject: Re: Android custom fonts in web scroller native control...
> 
> Hi all. 
> 
> I'm the OP :-) been out if touch since I posted. Thanks to everyone 
> for getting back.
> 
> I'm using the technique of dynamically building and HTML page, writing 
> it locally (into the cache folder) then loading it up in a scroller. 
> All fine, except fonts don't load. Maybe writing the fonts to the 
> cache folder will solve this - can't check. This whole issue is 
> handled differently in iOS and Android it seems and I can't see anything
on any documentation about it.
> 
> Kind regards, Paul. 
> 
> On 31 May 2013, at 20:08, "Ralph DiMola" <rdimola at evergreeninfo.net>
wrote:
> 
>> If you mean the native browser control(both mobile platforms)... All 
>> fonts referenced in css's do work without putting them explicitly 
>> into the "copy files" pane as long as they are in the same relative 
>> path from the "http root" of the document. I just output my documents 
>> from InDesign as "web" and copied the entire http tree(fonts, css, 
>> images) in the "copy files" and the documents look perfect, fonts and
all.
>> Never checked if the builder found those fonts for other uses in the app.
> Something I should check........
>> 
>> Ralph DiMola
>> IT Director
>> Evergreen Information Services
>> rdimola at evergreeninfo.net
>> 
>> 
>> The OP was using a native web view control, I wonder if the issue is
> there.
>> 
>> -- 
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
>> 
>> 
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your 
> subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list