Spudd86 / glyphy

Automatically exported from code.google.com/p/glyphy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

glyphy-demo: Handling startup parameters in a more robust way

GoogleCodeExporter opened this issue · comments

Currently glyphy-demo allows the user to pass a text string to be rendered as 
also select the font to be used, but it could do it in a more robust way (i.e. 
calling ./glyphy-demo -h will crash the app).

The attached patch fixes it using getopt(), by allowing the user to pass the 
parameter using flags (e.g. 
./glyphy-demo -t "test test" -f /Library/Fonts/Microsoft/Calisto\ MT). 

It will also properly handle cases where you can may want to just change the 
font (while using the default text string) or the other way around.

Original issue reported on code.google.com by cavalcan...@gmail.com on 7 Nov 2014 at 11:28

Attachments: