Re: Call for a contributor: LC Server enhancement

2019-03-30 Thread Alex Tweedly via use-livecode



On 30/03/2019 21:56, Richard Gaskin via use-livecode wrote:
Given that it's taken years to get approval for -f, I'm reluctant to 
overload the task with too many additional features at the outset, 
though perhaps as a separate scope of work it may be worth pursuing if 
we can find someone to implement it.


What sorts of things are you building that use specific fonts in 
generated graphics on the server?



In reality, so far, none.

In principle - perhaps many, but I wouldn't know :-)

My current project is to build a Graphing Library (driven by a specific 
desktop app that I'm developing for personal/family use). Neither 
ChartsEngine nor ChartMaker is suitable (they don't support the specific 
kind of hybrid graph I need), so I'm building an open-source LC Graphing 
library.


There's no reason why it couldn't run on LCServer (and good reason why 
it might be useful - the app I'm building as the primary use-case could 
easily be run on the family web-site). So it would generate the graphics 
inside a group, take a snapshot of that, and include that JPG file in 
the web site output.


The library allows for titles, axis labels, grid/tick labels, a legend, 
etc. - all of which allow setting of text size, color, font, etc. - so 
could require specific fonts.


Right now it doesn't all work (I'm slowly fighting my through various 
difficulties in the Server implementation - I think caused by the fact 
that there are no inherited properties from the card/stack, but more 
likely caused by my bugs :-), and indeed even the desktop version is 
incomplete; but I hope to have it ready for beta release sometime this 
Spring.


And then I can get back to actually building the real app that I wanted 
in the first place :-)


Alex.



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


Re: Call for a contributor: LC Server enhancement

2019-03-30 Thread Richard Gaskin via use-livecode

Alex Tweedly wrote:
Actually, I think it would also be good (if it's feasible) to have a way 
to invoke the font-loading from within LCS, so that e.g. a library that 
did intend to do graphics stuff could request font loading when needed. 
(Yes, I do have one of those - generates graphs, snapshots them into a 
JPG file and then includes that in the html output. :-)


I often use !# to invoke LC engines, which gives me specific 
command line options for a given script.


But it would be nice to support other ways to invoke the option for some 
things and not others.


Given that it's taken years to get approval for -f, I'm reluctant to 
overload the task with too many additional features at the outset, 
though perhaps as a separate scope of work it may be worth pursuing if 
we can find someone to implement it.


What sorts of things are you building that use specific fonts in 
generated graphics on the server?


--
 Richard Gaskin
 LiveCode Community Liaison

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


Re: Call for a contributor: LC Server enhancement

2019-03-30 Thread Richard Gaskin via use-livecode

Matthias Rebbe wrote:
>>
>>   ./livecode-server-community -f
>>
>
> So this would only work when calling the LC Server from the command
> line?

By what other means is a CGI invoked?


> If not, how could the Font loading process be passed  when alivecode
> server is running on a webserver and the .lc file is called from a web
> browser?

An interesting option worth proposing as an addition on the feature 
request page, allowing page-specific overrides.


How often do you use LC Server to generate graphics with specific fonts?

--
 Richard Gaskin
 LiveCode Community Liaison


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


Re: Call for a contributor: LC Server enhancement

2019-03-30 Thread Alex Tweedly via use-livecode
Could you not do that in your .htaccess file ? (or presumably in more 
powerful ways if it's a VPS, etc.)


"simply" add a  rewrite rule that adds the "-f" flag to HTTP requests in 
general, with an override rule for those few server scripts that might 
want font initialization.


Actually, I think it would also be good (if it's feasible) to have a way 
to invoke the font-loading from within LCS, so that e.g. a library that 
did intend to do graphics stuff could request font loading when needed. 
(Yes, I do have one of those - generates graphs, snapshots them into a 
JPG file and then includes that in the html output. :-)


-- Alex.

On 30/03/2019 20:38, Matthias Rebbe via use-livecode wrote:


   ./livecode-server-community -f


So this would only work when calling the LC Server from the command line?

If not, how could the Font loading process be passed  when alivecode server is 
running on a webserver and the .lc file is called from a web browser?


Matthias
___
use-livecode mailing list
use-livecode@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Call for a contributor: LC Server enhancement

2019-03-30 Thread Matthias Rebbe via use-livecode
> 
> 
>   ./livecode-server-community -f
> 

So this would only work when calling the LC Server from the command line?

If not, how could the Font loading process be passed  when alivecode server is 
running on a webserver and the .lc file is called from a web browser?


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