Jump to content
blackosx

Create font files for Bootloader GUI's

126 posts in this topic

Recommended Posts

Here’s a script I wrote last year for creating font image files for both Chameleon’s and Clover’s GUI.

 
Notes
- Clover works best with monospaced fonts, where as Chameleon can use both monospaced and proportionally spaced fonts.
- Both monospaced and proportional fonts can be used (for Clover, r3216 and up is required).
- While this script does it’s stuff mathematically, sometimes the best results (optically) may only be achieved when making/adjusting the font files manually.
 
Requirements
 
Installing can be done using homebrew
Once Homebrew is installed, you can run the following command from the Terminal:

brew install imagemagick
* Note: There are other ways to install ImageMagick but I've found only Homebrew does it simply with all required delegates. If you choose to install ImageMagick using other means (package installers, compile from source) then YMMV.
 
createFont script
Usage:
./createFont.sh -f[path/to/font] -s[size] <options>
 
Help can be displayed using -h option:
./createFont.sh -h
 
Please supply a minimum of the font and size. In this case a PNG image
will be generated with the text in white on a transparent background.
 
Options are:
    -a                      Alpha transparency for text. Value 0 thru 1
                            * Some versions of ImageMagick fail to render text
                              with this option turned on.
    -b                      Background Colour. As three comma separated values
                            Red, Green and Blue. [0-255],[0-255],[0-255]
                            Note: background defaults to transparent.
    -c                      Colour of text. As three comma separated values
                            Red, Green and Blue. [0-255],[0-255],[0-255]
                            Note: text colour defaults to white.
                            Some colour examples:
                            Red:           205,0,0
                            Dark Blue:     35,43,148
                            Light Blue:    93,192,244
                            Bright Green:  91,226,81
                            Dark Green:    24,135,16
                            Bright Yellow: 219,221,47
 
    -e                      Effects
                            ----------------------------------------------------
        shading             Enable single colour shading effect.
        shadow              Enable drop shadow effect (type 1 fonts only).
 
    -f                      Font. Either installed font name OR full file path.
    -h                      Display help.
    -i                      List installed fonts available to ImageMagick.
    -l                      Leading (Space between text lines) +/-16 (type 2)
 
    -r                      Reduced Character Set (Type 2 only)
                            ----------------------------------------------------
        a                   Do not include ANSI characters (32-127)
        c                   Do not include cyrillic characters.
 
    -s                      Size in pixels. Expects value between 6 and 255
 
    -t                      Type
                            ----------------------------------------------------
        1                   Font type for Chameleon (Default).
        2                   Font type for Clover.
 
    -o                      Disable optimisation of final image using pngquant.
    -p                      Padding in pixels. Space between characters (type 1)
    -v                      Display version of this script.
    -x                      Disable anti aliasing.
 
The script is not perfect and ImageMagick can do way more so if desired, feel free to improve the script but please post any updates here.
 
Examples
 
For a Chameleon (type 1) font:
./createFont.sh -t1 s14 -f/Users/blackosx/Library/Fonts/mplus-1c-black.ttf -b 100,150,24

Made this image:

post-331032-0-16156400-1433315491_thumb.png

 

For a Clover (type 2) font:

./createFont.sh -t2 -s14 -f/Users/blackosx/Library/Fonts/mplus-1c-black.ttf -b 100,150,24

Made this image

post-331032-0-80626200-1433315282_thumb.png

 

Note regarding sizes
 
- Keep font sizes sensible as too large will be unusable.
 
Here are two images, one using 28pt and the other using 16pt . Both of these are too large for ideal use.
Note: These are using a Clover revision before 3216 where proportional spacing is not working properly. I will update these images soon.
post-331032-0-37714200-1432811971_thumb.jpg
post-331032-0-72599600-1432811952_thumb.jpg
 
Update: to v0.87
- Added extra glyphs for radio buttons and checkboxes as per slice's request. (Note: Requires font containing those glyphs).
- Included the use of imagemagik's X Constant Image option to help overcome Sherlock's issue.
 
Update: to v0.88
- Apply X Constant Image option fix for type 2 fonts, to type 1 fonts.  (Thanks for the note cecekpawon. I Finally got to it :P ).

 

Share this post


Link to post
Share on other sites
Advertisement

Hi blackosx,

I have another idea how to make any font to be proportional. Look

font.png

We can just clamp red squares after create a line of text.

GUI->Font->Proportional=true? 

Share this post


Link to post
Share on other sites

Hi Slice

 

That could work, but maybe allow theme designer to choose clamp colour in theme.plist as the font me be designed to show in red?

Are you thinking of keeping the same font grid as currently used with Clover?

 

Here's a visual of a font file using what you suggest.

post-331032-0-77310500-1432811243_thumb.png

 

Here's an actual test font file if you want to experiment.

post-331032-0-47375100-1432811268_thumb.png

Share this post


Link to post
Share on other sites

Updated to v0.77.

Added -l option to allow adding leading (line spacing) for type 2 (Clover) font files.

 

Example:

To add 4 pixels between lines

$ ./createFont.sh -t2 -f/Users/blackosx/Library/Fonts/airstrip.ttf -s16 -l4

Screenshot using font file with default leading (as v0.76)

post-331032-0-37870100-1432844667_thumb.jpg

 

Screenshot using font file with added 4px leading (as v0.77)

post-331032-0-49453700-1432844682_thumb.jpg

Share this post


Link to post
Share on other sites

Looks to be not good idea because of dirty in font images.

Clover 3210

theme.plist

		<key>Font</key>
		<dict>
			<key>Proportional</key>
			<true/>

Share this post


Link to post
Share on other sites

That was quick! Well done Slice :)

 

You're on the right track but just needs tweaking somewhere... 

 

post-331032-0-87289100-1432852413_thumb.jpg

 

Bed time now but I'll see if I get time tomorrow to have a look at your code to try to understand what you have done.

Share this post


Link to post
Share on other sites

Your screenshot from 3212 looks great :D

I'll build it and test. Well done Slice

 

 

EDIT:

I not seeing good results here with this font

post-331032-0-68116100-1432881957_thumb.png

 

Gives me this:

post-331032-0-17992000-1432881987_thumb.jpg

 

For comparison:

(Results from previous version of Clover <3210) in post #6

 

Using

<key>Font</key>
<dict>
<key>CharWidth</key>
<integer>16</integer>
<key>Path</key>
<string>type2_airstrip_16_Cell_16x22.png</string>
<key>Type</key>
<string>Load</string>
<key>Proportional</key>
<true/>
</dict>

EDIT2:

I was thinking maybe the font file was bad so I've made another font file using Universe Bold and run a test on Clover r3196 and r3212. Here are the results:

 

r3196

post-331032-0-35039500-1432883462_thumb.jpg

 

r3212

post-331032-0-72012800-1432883476_thumb.jpg

 

Font file for ref:

post-331032-0-72975300-1432883501_thumb.png

 

So still not perfect here as the code seems to struggle with thin characters, full stops, commas. But otherwise - very good.

Share this post


Link to post
Share on other sites

More tuning is done with rev 3214.

You also should carefully check font files for characters overlaps and choose best CharWidth values.

 

My algo sensitive for extra dots in the font file.

See dots after a, o, ...

Screen Shot 2015-05-29 at 15.25.24.png


Font WoG_Monaco_ExtraSmooth_10W unaffected by proportional setting if CharWidth = 9.

Font BoG_LucidaConsole_10W_NA affected. I corrected digits 4 and 8 by shifting them in place and committed corrected font to svn.

We should create other fonts that will be good looking with proportional setting.


Also good experience with theme iclover. There is good font

Screen Shot 2015-05-29 at 16.04.41.png

 

So I am waiting other artist will create fonts good for proportional looking.

Share this post


Link to post
Share on other sites

More tuning is done with rev 3214.

Great. I'll test this evening.

 

You also should carefully check font files for characters overlaps and choose best CharWidth values.

Font files generated using this script should not overlap.

Any necessary tweaks to the font files can be done in the script.

 

My ago sensitive for extra dots in the font file.

See dots after a, o, ...

attachicon.gif Screen Shot 2015-05-29 at 15.25.24.png

 

My only thought on this for now is some fonts where tightly packed due to trying to keep the spacing to a minimum. But now there's no reason why there cannot be more space between the characters. This will remove any chance of the char width encroaching the next character,

 

What font file is used for your screenshot? can you post the font file?

 

Font WoG_Monaco_ExtraSmooth_10W unaffected by proportional setting if CharWidth = 9.

Font BoG_LucidaConsole_10W_NA affected. I corrected digits 4 and 8 by shifting them in place and committed corrected font to svn.

I'll test with those later.

Your adjustment to BOG_LucidaConsole will not be necessary if I remake all files with more space.

 

We should create other fonts that will be good looking with proportional setting.

That's what this script is for.

Once we nail exactly how to best create font file for your algo then we can make as many fonts as you wish :)

Also good experience with theme iclover. There is good font

attachicon.gifScreen Shot 2015-05-29 at 16.04.41.png

 

So I am waiting other artist will create fonts good for proportional looking.

Looks great :)

EDIT: That's the WoB_Hellfire_Bold_9W.png file.

@Slice - Have you got time to test your latest build with font files from post #10 ?

I can't until later.

Share this post


Link to post
Share on other sites

Clover3214.

I see some problems with displaying fonts only in the theme metal.

post-617057-0-33894600-1432905833_thumb.jpg

In addition, it was in previous versions of Clover. If you write the name of the theme embedded is written in the menu,(EMBEDDED), the theme will look like the image below.

post-617057-0-42537500-1432905905_thumb.jpg

Share this post


Link to post
Share on other sites

Clover3214.

I see some problems with displaying fonts only in the theme metal.

attachicon.gifmetal2014.jpg

 

 

Hi droples :)

 

This is due to the font file.

I'm pretty certain this can be fixed with a new version of the font with more spacing. I'll test tonight.

In addition, it was in previous versions of Clover. If you write the name of the theme embedded is written in the menu,(EMBEDDED), the theme will look like the image below.

attachicon.gif Embedded.jpg

 

Thanks for the note but that's more a Clover issue and not really for this thread.

Share this post


Link to post
Share on other sites

 

What font file is used for your screenshot? can you post the font file?

 

 

@Slice - Have you got time to test your latest build with font files from post #10 ?

I can't until later.

It is. But I have to rescale it from width 219 to 256. It should be 16x.

This algo has many problems with existing fonts. It will be good with new fonts.

 

 

 

In addition, it was in previous versions of Clover. If you write the name of the theme embedded is written in the menu,(EMBEDDED), the theme will look like the image below.

attachicon.gifEmbedded.jpg

Menu shows theme names as CAPITAL if the name length

With legacy Clover there will be good.

But we have to enter theme names manually exactly as they are.

There are several problems with embedded theme that I don't want to correct. It used for extra cases.

Share this post


Link to post
Share on other sites

r3216 hits the spot slice!

 
I spent my spare time this weekend debugging and understanding your recent changes for proportional spacing and thought I was close to getting it just right. But when I saw your recent change I thought I’d test.
 
post-331032-0-86738600-1433185568_thumb.jpg
 
Great! :D
 
I'll test with some different fonts later..
 
EDIT: Tested with 6 different font files created using the script and all working great.

Share this post


Link to post
Share on other sites

Will try your script.

About ImageMagick there is other ways to install

http://www.imagemagick.org/script/binary-releases.php


sudo port install ImageMagick

Error: org.macports.build for port ImageMagick returned: command execution failed
Please see the log file for port ImageMagick for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_ImageMagick/ImageMagick/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port ImageMagick failed


Binary release also failed in 10.7.5

Illegal instruction: 4

because it created for Yosemite :(


This is a mistake in macport ;)

Corrected by

sudo ln -s /opt/local/include/freetype2 /opt/local/include/freetype

Now the build successful!


Something wrong here

Sergeys-iMac:createFont_v0.78 slice$ ./createFont.sh -t2 -fFUTURA.TTF -s22 -b 100,100,100
./createFont.sh: line 131: [: -gt: unary operator expected
Canvas=0x32 | Char cell=0x2
Building ImageMagick code sequence
./createFont.sh: line 40: printf: .5: invalid number
Running ImageMagick to create image
/Users/slice/Downloads/createFont_v0.78/IM_Command.command: line 1:   935 Illegal instruction: 4  convert -size 0x32 -background "RGBA(100,100,100,1)" -font "FUTURA.TTF" -pointsize 22 -fill "RGBA(255,255,255,1)" -draw "text 0,2 '.'" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,2 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,4 ' '" -draw "text 0,6 ' '" -draw "text 0,6 '!'" -draw "text 0,6 '\"'" -draw "text 0,6 '#'" -draw "text 0,6 '$'" -draw "text 0,6 '%'" -draw "text 0,6 '&'" -draw "text 0,6 '’'" -draw "text 0,6 '('" -draw "text 0,6 ')'" -draw "text 0,6 '*'" -draw "text 0,6 '+'" -draw "text 0,6 ','" -draw "text 0,6 '-'" -draw "text 0,6 '.'" -draw "text 0,6 '/'" -draw "text 0,8 '0'" -draw "text 0,8 '1'" -draw "text 0,8 '2'" -draw "text 0,8 '3'" -draw "text 0,8 '4'" -draw "text 0,8 '5'" -draw "text 0,8 '6'" -draw "text 0,8 '7'" -draw "text 0,8 '8'" -draw "text 0,8 '9'" -draw "text 0,8 ':'" -draw "text 0,8 ';'" -draw "text 0,8 '<'" -draw "text 0,8 '='" -draw "text 0,8 '>'" -draw "text 0,8 '?'" -draw "text 0,10 '@'" -draw "text 0,10 'A'" -draw "text 0,10 'B'" -draw "text 0,10 'C'" -draw "text 0,10 'D'" -draw "text 0,10 'E'" -draw "text 0,10 'F'" -draw "text 0,10 'G'" -draw "text 0,10 'H'" -draw "text 0,10 'I'" -draw "text 0,10 'J'" -draw "text 0,10 'K'" -draw "text 0,10 'L'" -draw "text 0,10 'M'" -draw "text 0,10 'N'" -draw "text 0,10 'O'" -draw "text 0,12 'P'" -draw "text 0,12 'Q'" -draw "text 0,12 'R'" -draw "text 0,12 'S'" -draw "text 0,12 'T'" -draw "text 0,12 'U'" -draw "text 0,12 'V'" -draw "text 0,12 'W'" -draw "text 0,12 'X'" -draw "text 0,12 'Y'" -draw "text 0,12 'Z'" -draw "text 0,12 '['" -draw "text 0,12 '\\\'" -draw "text 0,12 ']'" -draw "text 0,12 '^'" -draw "text 0,12 '_'" -draw "text 0,14 '’'" -draw "text 0,14 'a'" -draw "text 0,14 'b'" -draw "text 0,14 'c'" -draw "text 0,14 'd'" -draw "text 0,14 'e'" -draw "text 0,14 'f'" -draw "text 0,14 'g'" -draw "text 0,14 'h'" -draw "text 0,14 'i'" -draw "text 0,14 'j'" -draw "text 0,14 'k'" -draw "text 0,14 'l'" -draw "text 0,14 'm'" -draw "text 0,14 'n'" -draw "text 0,14 'o'" -draw "text 0,16 'p'" -draw "text 0,16 'q'" -draw "text 0,16 'r'" -draw "text 0,16 's'" -draw "text 0,16 't'" -draw "text 0,16 'u'" -draw "text 0,16 'v'" -draw "text 0,16 'w'" -draw "text 0,16 'x'" -draw "text 0,16 'y'" -draw "text 0,16 'z'" -draw "text 0,16 '{'" -draw "text 0,16 '|'" -draw "text 0,16 '}'" -draw "text 0,16 '~'" -draw "text 0,16 '.'" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,18 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,20 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,22 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,24 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,26 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,28 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,30 ' '" -draw "text 0,32 '.'" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" -draw "text 0,32 ' '" label:"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " "/Users/slice/Downloads/createFont_v0.78/type2_FUTURA_22pt_Cell_0x2.png"
Sergeys-iMac:createFont_v0.78 slice$ 

Share this post


Link to post
Share on other sites

Hi Slice.

 

I use Homebrew to install ImageMagick as, for me, it was the easiest way to install it. I found the package installlers gave me problems. I think the problem you have is a bad install of imagemagick.

/Users/slice/Downloads/createFont_v0.78/IM_Command.command: line 1: 935 Illegal instruction: 4

I've just installed homebrew and imagemagick on 10.6.8.

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
 
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/...
/usr/local/share/man/man1/brew.1
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/share
==> The following directories will have their group set to admin:
/usr/local/.
/usr/local/bin
/usr/local/include
/usr/local/lib
/usr/local/share
 
Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
Password:
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/bin /usr/local/include /usr/local/lib /usr/local/share
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> Downloading and installing Homebrew...
==> Installation successful!
==> Next steps
Run `brew help` to get started
office:createFont_v0.78 Nick$ brew install imagemagick
==> Installing dependencies for imagemagick: xz, libtool, pkg-config, jpeg, libpng, libtiff, freetype
==> Installing imagemagick dependency: xz
==> Downloading https://fossies.org/linux/misc/xz-5.2.1.tar.gz
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/xz/5.2.1
==> make install
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink include/lzma.h
Target /usr/local/include/lzma.h
already exists. You may want to remove it:
  rm '/usr/local/include/lzma.h'
 
To force the link and overwrite all conflicting files:
  brew link --overwrite xz
 
To list all files that would be deleted:
  brew link --overwrite --dry-run xz
 
Possible conflicting files are:
/usr/local/include/lzma.h
/usr/local/include/lzma/vli.h
/usr/local/include/lzma/version.h
/usr/local/include/lzma/stream_flags.h
/usr/local/include/lzma/index_hash.h
/usr/local/include/lzma/index.h
/usr/local/include/lzma/hardware.h
/usr/local/include/lzma/filter.h
/usr/local/include/lzma/delta.h
/usr/local/include/lzma/container.h
/usr/local/include/lzma/check.h
/usr/local/include/lzma/block.h
/usr/local/include/lzma/bcj.h
/usr/local/include/lzma/base.h
==> Summary
/usr/local/Cellar/xz/5.2.1: 59 files, 1.7M, built in 37 seconds
==> Installing imagemagick dependency: libtool
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.xz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtool/2.4.6 --program-prefix=g --enable-ltdl-install
==> make install
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
 
This formula is keg-only, which means it was not symlinked into /usr/local.
 
Xcode provides this software prior to version 4.3.
 
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
 
    LDFLAGS:  -L/usr/local/opt/libtool/lib
    CPPFLAGS: -I/usr/local/opt/libtool/include
 
==> Summary
/usr/local/Cellar/libtool/2.4.6: 69 files, 3.8M, built in 12 seconds
==> Installing imagemagick dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib --with-pc-path=/usr/local/lib/pkgconfig:/usr/local/share/pkg
==> make
==> make check
==> make install
/usr/local/Cellar/pkg-config/0.28: 10 files, 668K, built in 46 seconds
==> Installing imagemagick dependency: jpeg
==> Downloading http://www.ijg.org/files/jpegsrc.v8d.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/jpeg/8d
==> make install
/usr/local/Cellar/jpeg/8d: 18 files, 792K, built in 10 seconds
==> Installing imagemagick dependency: libpng
==> Downloading https://downloads.sourceforge.net/project/libpng/libpng16/1.6.17/libpng-1.6.17.tar.xz
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/usr/local/Cellar/libpng/1.6.17
==> make
==> make test
==> make install
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
 
Mac OS X already provides this software in versions before Mountain Lion.
 
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
 
    LDFLAGS:  -L/usr/local/opt/libpng/lib
    CPPFLAGS: -I/usr/local/opt/libpng/include
 
==> Summary
/usr/local/Cellar/libpng/1.6.17: 17 files, 1.2M, built in 34 seconds
==> Installing imagemagick dependency: libtiff
==> Downloading ftp://ftp.remotesensing.org/pub/libtiff/tiff-4.0.3.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/4.0.3 --without-x --disable-lzma --with-jpeg-include-dir=/usr/local/opt/jpeg/include --with-jpeg-lib-dir=/usr
==> make install
/usr/local/Cellar/libtiff/4.0.3: 254 files, 3.8M, built in 27 seconds
==> Installing imagemagick dependency: freetype
==> Downloading https://downloads.sf.net/project/freetype/freetype2/2.5.5/freetype-2.5.5.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/freetype/2.5.5 --without-harfbuzz
==> make
==> make install
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.
 
Mac OS X already provides this software in versions before Mountain Lion.
 
Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:
 
    LDFLAGS:  -L/usr/local/opt/freetype/lib
    CPPFLAGS: -I/usr/local/opt/freetype/include
 
==> Summary
/usr/local/Cellar/freetype/2.5.5: 60 files, 2.7M, built in 23 seconds
==> Installing imagemagick
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.9.1-3.tar.xz
 
curl: (22) The requested URL returned error: 404
Trying a mirror...
==> Downloading https://downloads.sourceforge.net/project/imagemagick/6.9.1-sources/ImageMagick-6.9.1-3.tar.xz
######################################################################## 100.0%
==> ./configure --disable-osx-universal-binary --prefix=/usr/local/Cellar/imagemagick/6.9.1-3 --disable-silent-rules --enable-shared --disable-static --with-mod
==> make install
/usr/local/Cellar/imagemagick/6.9.1-3: 1448 files, 22M, built in 98 seconds

And then run the script:

$ ./createFont.sh -t2 -fFutur -s22 -b 100,100,100
Canvas=384x448 | Char cell=24x28
Building ImageMagick code sequence
Running ImageMagick to create image
Opening /Volumes/Data/Nick/Scripting/createFontScript/createFont_v0.78/type2_Futur_22pt_Cell_24x28.png

But there's a problem as the final PNG image does not contain any text. I will need to consult the ImageMagick documentation on this for 10.6.

EDIT: Fixed with createFont script v0.81.

 

EDIT: The PNG is created fine under 10.10

post-331032-0-36516800-1433250028_thumb.png

 

Note to self - Update script to include extended ASCII character set and cyrillic characters.

Done.

Share this post


Link to post
Share on other sites

Hi Blackosx,

I think I have installed ImageMagick.

Sergeys-iMac:createFont_v0.78 slice$ /opt/local/bin/convert -version
Version: ImageMagick 6.9.0-0 Q16 x86_64 2015-06-02 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates (built-in): bzlib djvu fftw fontconfig freetype gslib jbig jng jp2 jpeg lcms ltdl lzma openexr png ps tiff webp x xml zlib

Sergeys-iMac:createFont_v0.78 slice$ 

Tell me, what utilities used else?

Share this post


Link to post
Share on other sites

Hi Slice

 
Apologies. Yes it does look like you have ImageMagick installed correctly.
The problem lies with the ImageMagick command generated by my script which was highlighted by the errors you posted.
 
./createFont.sh: line 131: [: -gt: unary operator expected
..
./createFont.sh: line 40: printf: .5: invalid number
 
This results in a malformed command.
 
What version of OS X have you run the script?
 
EDIT:
To test your ImageMagick you can paste the following to a text file, save with name like makefont.command to the createfont script dir, chmod +x and double click it.
convert -size 384x448 -background "RGBA(100,100,100,1)" -font "FUTURA.TTF" -pointsize 22 -fill "RGBA(255,255,255,1)" -draw "text 9,20 '.'" -draw "text 32,20 ' '" -draw "text 56,20 ' '" -draw "text 80,20 ' '" -draw "text 104,20 ' '" -draw "text 128,20 ' '" -draw "text 152,20 ' '" -draw "text 176,20 ' '" -draw "text 200,20 ' '" -draw "text 224,20 ' '" -draw "text 248,20 ' '" -draw "text 272,20 ' '" -draw "text 296,20 ' '" -draw "text 320,20 ' '" -draw "text 344,20 ' '" -draw "text 368,20 ' '" -draw "text 8,48 ' '" -draw "text 32,48 ' '" -draw "text 56,48 ' '" -draw "text 80,48 ' '" -draw "text 104,48 ' '" -draw "text 128,48 ' '" -draw "text 152,48 ' '" -draw "text 176,48 ' '" -draw "text 200,48 ' '" -draw "text 224,48 ' '" -draw "text 248,48 ' '" -draw "text 272,48 ' '" -draw "text 296,48 ' '" -draw "text 320,48 ' '" -draw "text 344,48 ' '" -draw "text 368,48 ' '" -draw "text 8,76 ' '" -draw "text 33,76 '!'" -draw "text 55,76 '\"'" -draw "text 77,76 '#'" -draw "text 101,76 '$'" -draw "text 123,76 '%'" -draw "text 148,76 '&'" -draw "text 177,76 '’'" -draw "text 201,76 '('" -draw "text 225,76 ')'" -draw "text 247,76 '*'" -draw "text 269,76 '+'" -draw "text 297,76 ','" -draw "text 320,76 '-'" -draw "text 345,76 '.'" -draw "text 366,76 '/'" -draw "text 5,104 '0'" -draw "text 30,104 '1'" -draw "text 53,104 '2'" -draw "text 77,104 '3'" -draw "text 101,104 '4'" -draw "text 125,104 '5'" -draw "text 149,104 '6'" -draw "text 173,104 '7'" -draw "text 197,104 '8'" -draw "text 221,104 '9'" -draw "text 249,104 ':'" -draw "text 273,104 ';'" -draw "text 293,104 '<'" -draw "text 317,104 '='" -draw "text 341,104 '>'" -draw "text 367,104 '?'" -draw "text 2,132 '@'" -draw "text 27,132 'A'" -draw "text 54,132 'B'" -draw "text 76,132 'C'" -draw "text 100,132 'D'" -draw "text 127,132 'E'" -draw "text 151,132 'F'" -draw "text 171,132 'G'" -draw "text 196,132 'H'" -draw "text 226,132 'I'" -draw "text 247,132 'J'" -draw "text 269,132 'K'" -draw "text 295,132 'L'" -draw "text 314,132 'M'" -draw "text 339,132 'N'" -draw "text 362,132 'O'" -draw "text 6,160 'P'" -draw "text 26,160 'Q'" -draw "text 54,160 'R'" -draw "text 78,160 'S'" -draw "text 102,160 'T'" -draw "text 124,160 'U'" -draw "text 148,160 'V'" -draw "text 168,160 'W'" -draw "text 197,160 'X'" -draw "text 221,160 'Y'" -draw "text 245,160 'Z'" -draw "text 272,160 '['" -draw "text 294,160 '\\\'" -draw "text 320,160 ']'" -draw "text 341,160 '^'" -draw "text 366,160 '_'" -draw "text 9,188 '’'" -draw "text 30,188 'a'" -draw "text 54,188 'b'" -draw "text 79,188 'c'" -draw "text 102,188 'd'" -draw "text 126,188 'e'" -draw "text 152,188 'f'" -draw "text 174,188 'g'" -draw "text 198,188 'h'" -draw "text 225,188 'i'" -draw "text 249,188 'j'" -draw "text 271,188 'k'" -draw "text 297,188 'l'" -draw "text 315,188 'm'" -draw "text 342,188 'n'" -draw "text 365,188 'o'" -draw "text 6,216 'p'" -draw "text 30,216 'q'" -draw "text 56,216 'r'" -draw "text 80,216 's'" -draw "text 105,216 't'" -draw "text 126,216 'u'" -draw "text 150,216 'v'" -draw "text 171,216 'w'" -draw "text 197,216 'x'" -draw "text 222,216 'y'" -draw "text 246,216 'z'" -draw "text 272,216 '{'" -draw "text 295,216 '|'" -draw "text 320,216 '}'" -draw "text 341,216 '~'" -draw "text 369,216 '.'" -draw "text 8,244 ' '" -draw "text 32,244 ' '" -draw "text 56,244 ' '" -draw "text 80,244 ' '" -draw "text 104,244 ' '" -draw "text 128,244 ' '" -draw "text 152,244 ' '" -draw "text 176,244 ' '" -draw "text 200,244 ' '" -draw "text 224,244 ' '" -draw "text 248,244 ' '" -draw "text 272,244 ' '" -draw "text 296,244 ' '" -draw "text 320,244 ' '" -draw "text 344,244 ' '" -draw "text 368,244 ' '" -draw "text 8,272 ' '" -draw "text 32,272 ' '" -draw "text 56,272 ' '" -draw "text 80,272 ' '" -draw "text 104,272 ' '" -draw "text 128,272 ' '" -draw "text 152,272 ' '" -draw "text 176,272 ' '" -draw "text 200,272 ' '" -draw "text 224,272 ' '" -draw "text 248,272 ' '" -draw "text 272,272 ' '" -draw "text 296,272 ' '" -draw "text 320,272 ' '" -draw "text 344,272 ' '" -draw "text 368,272 ' '" -draw "text 8,300 ' '" -draw "text 32,300 ' '" -draw "text 56,300 ' '" -draw "text 80,300 ' '" -draw "text 104,300 ' '" -draw "text 128,300 ' '" -draw "text 152,300 ' '" -draw "text 176,300 ' '" -draw "text 200,300 ' '" -draw "text 224,300 ' '" -draw "text 248,300 ' '" -draw "text 272,300 ' '" -draw "text 296,300 ' '" -draw "text 320,300 ' '" -draw "text 344,300 ' '" -draw "text 368,300 ' '" -draw "text 8,328 ' '" -draw "text 32,328 ' '" -draw "text 56,328 ' '" -draw "text 80,328 ' '" -draw "text 104,328 ' '" -draw "text 128,328 ' '" -draw "text 152,328 ' '" -draw "text 176,328 ' '" -draw "text 200,328 ' '" -draw "text 224,328 ' '" -draw "text 248,328 ' '" -draw "text 272,328 ' '" -draw "text 296,328 ' '" -draw "text 320,328 ' '" -draw "text 344,328 ' '" -draw "text 368,328 ' '" -draw "text 8,356 ' '" -draw "text 32,356 ' '" -draw "text 56,356 ' '" -draw "text 80,356 ' '" -draw "text 104,356 ' '" -draw "text 128,356 ' '" -draw "text 152,356 ' '" -draw "text 176,356 ' '" -draw "text 200,356 ' '" -draw "text 224,356 ' '" -draw "text 248,356 ' '" -draw "text 272,356 ' '" -draw "text 296,356 ' '" -draw "text 320,356 ' '" -draw "text 344,356 ' '" -draw "text 368,356 ' '" -draw "text 8,384 ' '" -draw "text 32,384 ' '" -draw "text 56,384 ' '" -draw "text 80,384 ' '" -draw "text 104,384 ' '" -draw "text 128,384 ' '" -draw "text 152,384 ' '" -draw "text 176,384 ' '" -draw "text 200,384 ' '" -draw "text 224,384 ' '" -draw "text 248,384 ' '" -draw "text 272,384 ' '" -draw "text 296,384 ' '" -draw "text 320,384 ' '" -draw "text 344,384 ' '" -draw "text 368,384 ' '" -draw "text 8,412 ' '" -draw "text 32,412 ' '" -draw "text 56,412 ' '" -draw "text 80,412 ' '" -draw "text 104,412 ' '" -draw "text 128,412 ' '" -draw "text 152,412 ' '" -draw "text 176,412 ' '" -draw "text 200,412 ' '" -draw "text 224,412 ' '" -draw "text 248,412 ' '" -draw "text 272,412 ' '" -draw "text 296,412 ' '" -draw "text 320,412 ' '" -draw "text 344,412 ' '" -draw "text 368,412 ' '" -draw "text 9,440 '.'" -draw "text 32,440 ' '" -draw "text 56,440 ' '" -draw "text 80,440 ' '" -draw "text 104,440 ' '" -draw "text 128,440 ' '" -draw "text 152,440 ' '" -draw "text 176,440 ' '" -draw "text 200,440 ' '" -draw "text 224,440 ' '" -draw "text 248,440 ' '" -draw "text 272,440 ' '" -draw "text 296,440 ' '" -draw "text 320,440 ' '" -draw "text 344,440 ' '" -draw "text 368,440 ' '"  label:"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " "/Users/slice/Downloads/createFont_v0.78/type2_FUTURA_22pt_Cell_0x2.png"

Share this post


Link to post
Share on other sites
$ ls -al /Volumes/SnowLeopard/usr/local/Cellar/imagemagick/6.9.1-3/bin/
total 480
drwxr-xr-x  18 nick  admin    612  2 Jun 13:33 .
drwxr-xr-x  14 nick  admin    476  2 Jun 13:33 ..
-r-xr-xr-x   1 nick  admin   1290  2 Jun 13:33 Magick++-config
-r-xr-xr-x   1 nick  admin   1256  2 Jun 13:33 Magick-config
-r-xr-xr-x   1 nick  admin   1264  2 Jun 13:33 MagickCore-config
-r-xr-xr-x   1 nick  admin   1504  2 Jun 13:33 MagickWand-config
-r-xr-xr-x   1 nick  admin   1251  2 Jun 13:33 Wand-config
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 animate
-r-xr-xr-x   1 nick  admin  17600  2 Jun 13:33 compare
-r-xr-xr-x   1 nick  admin  17424  2 Jun 13:33 composite
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 conjure
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 convert
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 display
-r-xr-xr-x   1 nick  admin  17480  2 Jun 13:33 identify
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 import
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 mogrify
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 montage
-r-xr-xr-x   1 nick  admin  17416  2 Jun 13:33 stream

 

Share this post


Link to post
Share on other sites

Updated to v0.79

- Final PNG image for Clover (type 2) fonts will now automatically include extended ASCII and cyrillic glyphs, if they exist in the font.

EDIT:

For a bit of fun and to show it working.

 
Downloaded the transformers_movie font from http://www.dafont.com/theme.php?cat=303
 
./createFont.sh -t2 -f/Users/blackosx/Desktop/transformers_movie/Transformers\ Movie.ttf -s24 -o -l4
 
Made PNG file
type2_Transformers Movie_24pt_Cell_22x23.png
post-331032-0-09597800-1433316211_thumb.png
 
Threw it in Shield theme, changing theme.plist to font path and CharWidth to 22.
 
post-331032-0-66624900-1433316224_thumb.jpg
post-331032-0-97423700-1433316234_thumb.jpg
 
* In this example, the text is too big as the help page type is truncated. Other pages, Options, About will also be truncated.
Maybe Clover can be changed to not truncate the text if the monitor width is wide enough?
 
EDIT2:
I forgot to enable Clover's proportional spacing. Here are images with that enabled.
post-331032-0-35938600-1433316726_thumb.jpg
post-331032-0-62801200-1433316738_thumb.jpg
post-331032-0-98049400-1433316754_thumb.jpg

Share this post


Link to post
Share on other sites

Hi blackosx,

May be you upload non-corrected script?

Sergeys-iMac:createFont_v0.79 slice$ ./createFont.sh -t2 -s14 -f./arial.ttf  -b 100,150,24 -o
./createFont.sh: line 140: [: -gt: unary operator expected
Canvas=0x32 | Char cell=0x2
Building ImageMagick code sequence
./createFont.sh: line 40: printf: .5: invalid number
Running ImageMagick to create image
/Users/slice/Downloads/createFont_v0.79/IM_Command.command: line 1: 85300 Illegal instruction: 4  convert -size 0x32 -background "RGBA(100,150,24,1)" -font "./arial.ttf" -pointsize 14 -fill "RGBA(255,255,255,1)" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,2 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,4 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,6 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,8 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,10 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,12 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,14 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,16 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,18 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,20 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,22 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,24 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,26 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,28 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,30 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" -draw "text 0,32 ''" label:"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                " "/Users/slice/Downloads/createFont_v0.79/type2_arial_14pt_Cell_0x2.png"
Sergeys-iMac:createFont_v0.79 slice$ 


It's a pity my ImageMagick always get "Illegal instruction 4" with any fonts.

Working with images fine

logo.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

Announcements

  • Similar Content

    • By cvad
      View File Bootdisk Utility
      Make bootable USB Flash Disk for MAC OS X with Latest Clover bootloader revision fast and easy by one click! under OS Windows.
      Special utility from cvad & russian MAC community for new hackintosh users.
       
      Enjoy...
       
      For more information and complete instructions please see this topic.
       
      Anyone who likes the program, please support its Community Score.
       
       
      Feel free to "Rate File"
      Submitter cvad Submitted 04/28/2013 Category Bootloaders  
    • By STLVNUB
      Script file to clone and help build Clover or Opencore repos
      Script will create link to itself in /usr/local/bin/bob
      Script SHOULD fix up any stray bobs you may have.
      Then you only need to type bob. and a parameter
      "a" for ACID repo, official
      "d" for ACID repo DUET build
      "c" for CLOVER
      "e" to erase UDK Folder
      Easier typing bob than.....usual stuff
      YOU WILL NEED TO cmod+x THE SCRIPT
      Enjoy
       
    • By blackosx
      Vector themes for Clover are new and currently still under development. Setting out to re-create my BGM theme to vector I realised there was some learning needed in order to create a theme.svg file for Clover to use. As SVG files are text based, I quickly realised that they could be manipulated from the command line and looking at the Clovy theme I decided to break it down in to parts for creating other themes.
       
      As a result, I've been working on Clover SVG Theme Builder
      https://bitbucket.org/blackosx/cloversvgthemebuilder
       
      Current Version:
      0.4.5
       
      Overview
      The idea is to allow a theme designer to work on individual images and not worry about the required overall file structure which Clover expects. The designer can populate a Theme directory with a settings file and individual .svg files and let the script generate a final theme.svg file for using with Clover.
       
      I've created a basic sample theme to help demonstrate the script.
      https://bitbucket.org/blackosx/cloversvgthemebuilder/downloads/Theme.zip
       
      The Theme directory contains Adobe Illustrator and SVG files for each image in the required folder structure for the script.
       
      Using this sample theme, the script will generate this theme from the files.
       

       
      The idea is these can be used to build new themes and I'm currently using it to build my BGM_SVG theme.
       
      I can imagine far more complicated themes will be generated in the future, but for now I hope this may serve to help kickstart basic vector theme development.
       
      Notes:
      • Clover's SVG theme development is still underway and things are likely to change so this script and it's supporting template file will need to change with Clover.
      • I've only tested this using SVG files saved from Adobe Illustrator using the following settings, for files from other apps may need added support.



      • For the script to correctly inject SVG code in to the template, each SVG image must contain a group of elements.
      • Font files are currently not included in the final theme file but this can be an option.
      • In time, maybe other templates can be added which have different layouts??
       
      These are early days, so I'll update this post when necessary.
    • By zazman
      Bonjour,
       
      Depuis Catalina, l'extention Applebacklightfixup ne fonctionne plus. J'ai trouvé une solution en le supprimant de EFI/CLOVER/KEXT/OTHER/ et en gardant SSDT-PNFL.aml dans EFI/CLOVER/ACPI/Patched.
       
      j'ai pourtant plusieurs soucis :
      - le réglage de luminosité de l'écran ne reste pas toujours en mémoire d'une session à l'autre après un shutdown ou un restart (c'est aléatoire)
      - Le curseur de luminosité du panneau de conf affichage, lorsqu'il est positionné complètement à gauche met la luminosité de mon écran à zéro, donc tout noir... et c'est embêtant si je relache ma souris dans cette position !
      - Dans le paramétrage "clavier" du panneau de conf, onglet raccourcis, je n'ai pas d'item "affichage" pour afffecter le réglage de luminosité à F11 et F12 (ou à F2 et F3 sur mon toshiba satellite).
       
      J'ai essayé de mettre une valeur dans config.plist dans system parameters/backlight level. j'ai saisi 100, il m'a affiché 0x100, mais au redémarrage, mon écran restait noir. J'ai donc effacé cette valeur. Comment fonctionne ce paramétre et quelle valeur faut-il y indiquer ? Existe-il une solution plus propre sur Catalina 10.15.5 pour résoudre ces problèmes (j'utilise le CPU intel de mon toshiba satellite L50B - 1N2, pas le GPU radeon).
       

    • By miliuco
      Install macOS 10.15 Catalina on Gigabyte P55-USB3 with Radeon RX 580 graphics card using a USB device created with the createinstallmedia command and Clover as bootloader. Instructions to install macOS 10.14 Mojave on this computer are almost identical, replacing Catalina app with Mojave, so this article is suitable for both versions of macOS. The Gigabyte P55-USB3 motherboard (and some others from the same brand with the P55 / H55 chipset) have made it easy to build a hackintosh and install macOS since 10 years ago. Although it is an old motherboard, the behavior with Mojave or Catalina is very good after changing the classic hard drive (HDD) for a solid state drive (SSD).

      Components of the hackintosh
      Gigabyte GA-P55-USB3 motherboard: P55 chipset, 1156 socket, ALC892 audio, Gigabit RTL8111D network, DDR3 RAM Intel Core i5-750 processor for socket 1156: 4 cores, 8MB cache, clock rate 2.66 GHz Fenvi FV-T919 wireless + Bluetooth card: PCI-Express, wifi is ac type, detected by macOS as Airport and Apple Bluetooth Radeon RX 580 8 GB graphics card: works OOB but with a few details to be considered, it has its own article.  
      Previous requirements
      Install macOS Catalina app in /Applications folder USB flash drive with at least 16GB prepared from Disk Utility with MBR partition scheme and formatted as Mac Os Plus (on older Gigabyte boards like mine, USB sticks partitioned with GUID scheme instead of MBR usually hang the system when booting) Recent version of Clover (I have used r5117) Recent versions of Lilu (at least 1.4.4) and WhateverGreen (at least 1.3.9) to fine-tune the behavior of the graphics card Recent version of RealtekRTL8111 (I have used 2.2.2) FaceSMC version 6.26-322 (newer versions disable automatic mounting of USB devices on my system).  
      Create install USB
      Run this command from Terminal (assuming the target device is called USB):
      Bash: sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/USB /Applications/Install\ macOS\ Catalina.app
      Clover must be installed on the USB memory, I choose the following options:
      Bootloader > Install boot0af on the MBR CloverEFi > CloverEFI 64-bit SATA BIOS Drivers, 64 bit > Recommended drivers > FSInject + SMCHelper + XhciDxe BIOS Drivers, 64 bit > File System drivers > ApfsDriverLoader Install RC scripts on selected volume Optional RC scripts > Disable sleep proxy client.  
      You have to copy 4 kexts to the EFI/CLOVER/kexts/Other folder of the USB device: FaceSMC 6.26-322, Lilu 1.4.4, WhateverGreen 1.3.9 and RealtekRTL8111 2.2.2. Regarding the config.plist file, the most significant is:
      Boot > kext-dev-mode = 1 in Boot arguments GUI > Theme embedded, EmbeddedThemeType Dark, Screen Resolution 1920x1080, Preboot in Hide Volume Graphics > blank, nothing is checked except if foxbox solution is used to have more than 2 connectors enabled RT Variables > 0x28 in BooterConfig and 0x67 in CsrActiveConfig SMBios > iMac14,2 Sytem Parameters> Yes in Inject Kexts and check Inject System ID.  
      Install macOS Catalina

      Boot from the USB device and choose Install macOS from Install macOS Catalina. The installation program runs until the PC restarts. Here choose Install macOS from HDD (the name of the volume you are installing macOS on). With RX 580 graphics card, the screen goes black in this second phase of the installation, it is a phase in which the user has nothing to do until the PC is restarted so you can let it work until the Clover menu again. You have to choose Boot macOS from HDDto boot the installed system from the hard disk, the screen is recovered and you can configure the account and the initial options. From this moment the screen works fine.

      In summary:
      Boot from USB > Clover menu > Install macOS from Install macOS Catalina > screen works fine Boot from USB > Clover menu > Install macOS from HDD > black screen Boot from USB > Clover menu > Boot macOS from HDD > screen works fine.  
      Install Clover and kexts on the hard drive

      Clover needs to be installed on the disk where we just installed macOS. Options are the same as when installing it on the USB memory. You also have to copy the 4 kexts (FaceSMC 6.26-322, Lilu 1.4.4, WhateverGreen 1.3.9 and RealtekRTL8111 2.2.2) into the EFI/CLOVER/kexts/Other folder on the EFI partition of the disk. And review the config.plist file remembering the comments for the USB.

      If everything goes well, the computer starts from the hard disk with a running copy of macOS Catalina.
       
       

×