frontScript hiearchical contextclick font menu

SuperCard 4.5 & 4.6 projects (.zip archives only please).

frontScript hiearchical contextclick font menu

Postby gonetriadrr » Tue Oct 26, 2010 5:10 pm

Here's a project that puts Mark's getFontFile() xternal to work.

Implements a hierarchical font menu where members of a font family are grouped.
All available family members are listed. No need to wonder if 'Arial' includes a 'bold' outline file.

Uses a pair of externals, getFontFile and listfonts(), plus a small number of common shell commands.
Parsers and resource mapping done in pure SuperTalk.

Tested with fonts installed with OSX 10.4.3 + a small sample of OpenType and PostScript suitcase fonts.

Needs lots more testing since lots can go wrong.
Built/tested with SC 4.6.3, OS 10.4.3

DCS

PS: updated file attached
Should work with pointer tool selections now.
Attachments
frontScriptFontMenu-beta4.sc45.zip
frontscript font menu
(107.38 KiB) Downloaded 134 times
Last edited by gonetriadrr on Sun Oct 31, 2010 8:12 am, edited 3 times in total.
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: frontScript heiarchical contextclick font menu

Postby gonetriadrr » Wed Oct 27, 2010 9:32 am

Rats, found more bad script
So updated project attached to original post.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: frontScript hiearchical contextclick font menu

Postby gonetriadrr » Fri Oct 29, 2010 8:09 am

Update attached to original post.

A few sanity checks added to fail a little more gracefully, skipping instead of aborting.
Thumbed my nose at the HIG by adding attribute editing items.
If any target object is a field, can modify the allowObjects suite of attributes.

The original purpose of this project was to test the parsing scripts.
Particularly, the hacked from scratch resource map parser.

It has occured to me that format bytecode parsing that works nicely on my PPC Mac, may not work on Intel boxes.
A heads-up please :)

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm

Re: frontScript hiearchical contextclick font menu

Postby gonetriadrr » Sun Oct 31, 2010 8:16 am

Update added to original post.
Windows TrueTypes were parsed but not added to menu.

DCS
gonetriadrr
 
Posts: 170
Joined: Fri Jan 08, 2010 6:50 pm


Return to Sample & Demo Projects

Who is online

Users browsing this forum: No registered users and 1 guest

cron