Re: altFont: Load a font

2006-11-30 Thread Adrian Williams

Chip,
I tried your solution, but it neither produces the font required or an 
error.

More comments below, thanks,
Adrian...

On 28 Nov 2006, at 22:09, Chipp Walters wrote:

Adrian,

Here's a handler to load a font named "fred.ttf" located in the 
default folder.


on loadFont pFont
 if "/" is not in pFont then
 --> pFont IS NOT FULL PATHNAME SO MUST CREATE FULLPATH
   put the defaultFolder into tPath
   put tPath &"/"& pFont into pFont
 end if
 --> NOW LOAD THE FONT
 XLOAD_FONT tPath
 put the result into tResult
 if tResult is not empty then
   answer warning tResult
 end if
end loadFont

So where should the code above go?
Is it a button script or should it also go in the card script before 
loadFont "fred.ttf" ?

I tried it on the card script already.


You can call this handler from a handler in the card script of card 1
of your stack:

on openStack
 loadFont "fred.ttf"
end openStack

On 11/28/06, Adrian Williams <[EMAIL PROTECTED]> wrote:


I did get a solution from the altFont author Chris Bohnert, but it
lacked
enough comment for this newbie to understand how to use uFileName and
uEmbeddedFile and where to put the script.

__
Club Type
http://www.clubtype.co.uk
[EMAIL PROTECTED]

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


Re: altFont: Load a font

2006-11-29 Thread Adrian Williams
Thanks Chip for your advice. I'm a little stacked at the moment but 
will try your solution sometime next week.

On 29 Nov 2006, at 18:16, Richard Gaskin wrote:

I'm hoping that Rev will make altFont a relatively transparent  
feature when it gets incorporated into the next version of Rev.   
Such that there is a simple "imbed" option in the standalone  
builder, and that the ensuing standalone will check font  
availability and do the install/uninstall on the host computer as  
needed upon startup/shutdown.


Does it provide notification to the user before making this 
modification to the user's system?
One would assume the apps. author would state that permissions *may* be 
required to
modify the system at install time in order to successfully install all 
items. Not mentioning fonts specifically.


I'd like to see truly embedded fonts, right into the stack file a la 
PDF
That would be the ideal. Our FAQ page here gives a rundown of font 
formats.
The OpenType PS (CFF) format holds the most promise for the future in 
which to plough resources.

But TrueType (now) should also be embedded relatively easily.
http://www.clubtype.co.uk/formatlist.html

Adrian

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com

__
Club Type
http://www.clubtype.co.uk
[EMAIL PROTECTED]

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


Re: altFont: Load a font

2006-11-29 Thread Richard Gaskin
I'm hoping that Rev will make altFont a relatively transparent  
feature when it gets incorporated into the next version of Rev.   
Such that there is a simple "imbed" option in the standalone  
builder, and that the ensuing standalone will check font  
availability and do the install/uninstall on the host computer as  
needed upon startup/shutdown.


Does it provide notification to the user before making this modification 
to the user's system?


I'd like to see truly embedded fonts, right into the stack file a la PDF

--
 Richard Gaskin
 Fourth World Media Corporation
 ___
 [EMAIL PROTECTED]   http://www.FourthWorld.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: altFont: Load a font

2006-11-29 Thread Mark Swindell
Definitely. Hoping the Scotts can make it so.  :)  It would be such a  
nice feature.

Mark


On Nov 28, 2006, at 12:21 PM, J. Landman Gay wrote:


Mark Swindell wrote:
I'm hoping that Rev will make altFont a relatively transparent  
feature when it gets incorporated into the next version of Rev.   
Such that there is a simple "imbed" option in the standalone  
builder, and that the ensuing standalone will check font  
availability and do the install/uninstall on the host computer as  
needed upon startup/shutdown.


What a good idea! Can you put it in as a feature request in  
Bugzilla? I think everyone would like to see this implemented.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



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


Re: altFont: Load a font

2006-11-28 Thread Chipp Walters

Adrian,

Here's a handler to load a font named "fred.ttf" located in the default folder.

on loadFont pFont
 if "/" is not in pFont then
 --> pFont IS NOT FULL PATHNAME SO MUST CREATE FULLPATH
   put the defaultFolder into tPath
   put tPath &"/"& pFont into pFont
 end if
 --> NOW LOAD THE FONT
 XLOAD_FONT tPath
 put the result into tResult
 if tResult is not empty then
   answer warning tResult
 end if
end loadFont

You can call this handler from a handler in the card script of card 1
of your stack:

on openStack
 loadFont "fred.ttf"
end openStack

On 11/28/06, Adrian Williams <[EMAIL PROTECTED]> wrote:


I did get a solution from the altFont author Chris Bohnert, but it
lacked
enough comment for this newbie to understand how to use uFileName and
uEmbeddedFile and where to put the script.

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


Re: altFont: Load a font

2006-11-28 Thread J. Landman Gay

Mark Swindell wrote:
I'm hoping that Rev will make altFont a relatively transparent feature 
when it gets incorporated into the next version of Rev.  Such that there 
is a simple "imbed" option in the standalone builder, and that the 
ensuing standalone will check font availability and do the 
install/uninstall on the host computer as needed upon startup/shutdown.


What a good idea! Can you put it in as a feature request in Bugzilla? I 
think everyone would like to see this implemented.


--
Jacqueline Landman Gay | [EMAIL PROTECTED]
HyperActive Software   | http://www.hyperactivesw.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: altFont: Load a font

2006-11-28 Thread Mark Swindell
I'm hoping that Rev will make altFont a relatively transparent  
feature when it gets incorporated into the next version of Rev.  Such  
that there is a simple "imbed" option in the standalone builder, and  
that the ensuing standalone will check font availability and do the  
install/uninstall on the host computer as needed upon startup/shutdown.

Mark

On Nov 28, 2006, at 11:06 AM, Adrian Williams wrote:


Hello,

I recently purchased altFont and using the
buttons that came with the DEMO stack all works fine,
using altFont to embed a font in my app.

I have been able to "SuckUp" the font in the IDE.
"SpitOut" the font from the button's custom prop. into the default  
Folder.

Now all I want to do is "Load a font" from the default Folder!
Simple enough if a clicked button presents the User with a dialog
to navigate the the font, but I don't want the User to have to do  
that.

Why should they.
I know where the font is sitting - its in the default Folder.
So how can I replace the code below with something triggered by the  
card script

to load the font automatically rather than the button...

--snippet of code
on mouseUp
  answer file "choose a ttf file to load"
  if it is empty then exit to top
  put the fontNames into tOldList
  put the number of lines in tOldList into tNumOfFonts

  --> ONLY COMMAND FOR LOADING
  XLOAD_FONT it
  put the result into tResult
  if tResult is not empty then
answer warning tResult
exit to top
  end if
--etc. etc

I did get a solution from the altFont author Chris Bohnert, but it  
lacked

enough comment for this newbie to understand how to use uFileName and
uEmbeddedFile and where to put the script...

Adrian,

The code you're using is very dangerously relying on the value of  
'it'
remaining stable between the call to Answer file and the call to  
XLOAD_FONT.


I'd leave your 'suck up' button in place (hiding it when you ship)
and do the following to load the font.  The 'suck up' button sets the
uFileName custom prop and uEmbeddedFile.

put the uFileName of this card into tFilePath
--if you need to append a subdir struct into the path you can do  
it now with

put "./mysubdir/" & tFilePath into tFilePath
put the uEmbeddedFile of this card into URL("binfile:" & tFilePath )

if there is a file tFilePath then
  XLOAD_FONT tFilePath
else
  answer information "Font missing"
end if


Any guidance would be appreciated,
Thanks,
Adrian
__
Club Type
http://www.clubtype.co.uk
[EMAIL PROTECTED]
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




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


altFont: Load a font

2006-11-28 Thread Adrian Williams

Hello,

I recently purchased altFont and using the
buttons that came with the DEMO stack all works fine,
using altFont to embed a font in my app.

I have been able to "SuckUp" the font in the IDE.
"SpitOut" the font from the button's custom prop. into the default 
Folder.

Now all I want to do is "Load a font" from the default Folder!
Simple enough if a clicked button presents the User with a dialog
to navigate the the font, but I don't want the User to have to do that.
Why should they.
I know where the font is sitting - its in the default Folder.
So how can I replace the code below with something triggered by the 
card script

to load the font automatically rather than the button...

--snippet of code
on mouseUp
  answer file "choose a ttf file to load"
  if it is empty then exit to top
  put the fontNames into tOldList
  put the number of lines in tOldList into tNumOfFonts

  --> ONLY COMMAND FOR LOADING
  XLOAD_FONT it
  put the result into tResult
  if tResult is not empty then
answer warning tResult
exit to top
  end if
--etc. etc

I did get a solution from the altFont author Chris Bohnert, but it 
lacked

enough comment for this newbie to understand how to use uFileName and
uEmbeddedFile and where to put the script...

Adrian,

The code you're using is very dangerously relying on the value of 'it'
remaining stable between the call to Answer file and the call to 
XLOAD_FONT.


I'd leave your 'suck up' button in place (hiding it when you ship)
and do the following to load the font.  The 'suck up' button sets the
uFileName custom prop and uEmbeddedFile.

put the uFileName of this card into tFilePath
--if you need to append a subdir struct into the path you can do it 
now with

put "./mysubdir/" & tFilePath into tFilePath
put the uEmbeddedFile of this card into URL("binfile:" & tFilePath )

if there is a file tFilePath then
  XLOAD_FONT tFilePath
else
  answer information "Font missing"
end if


Any guidance would be appreciated,
Thanks,
Adrian
__
Club Type
http://www.clubtype.co.uk
[EMAIL PROTECTED]
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution