Jump to content
blackosx

Create font files for Bootloader GUI's

124 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.

  • Similar Content

    • By RougeOne
      Budget Workstation MacOS 10.14.1 build: z370 AORUS Gaming 5 - i5-8600K - RX 580 - UHD 630
      flawless iGPU/dGPU integration, fast FCPX editing/rendering, great overall performance for ~$1200 / ~£1000
       
      Update: updated WhateverGreen and Lilu, then updated OS to 10.14.3 and everything is fine! Even iMessage, which previously I hadn't been able to make work, is now working - possibly the update flushed the NVRAM?
       
      I'm gonna come straight out and admit it - I used newb tools which are considered taboo on InsanelyMac, and so this isn't so much an installation guide as it is a green flag to anyone considering the same hardware. My first and previous Hackintosh project was just over ten years ago and this site was massively helpful, so this is my (very small) way of giving back.
       
      EFI DIRECTORY
      http://s000.tinyupload.com/index.php?file_id=97606131925137056003
       
      HARDWARE
      CPU: Intel i5-8600K 3.6GHz hexacore (contains UHD 630 iGPU)
      CPU Cooler: be quiet! Pure Rock Slim (no paste needed, and fan facing front)
      Mobo: GIGABYTE z370 AORUS Gaming 5 (WIFI)
      RAM: 1x 8GB CORSAIR Vengeance LPX C16 2666MHz (in first slot)
      GFX Card: Sapphire RX 580 NITRO+ SE
      SATA: used ports 0, 1, 3, 5 (HDD problems when connected to port 4)
      HDD: generic
      DVD Drive: generic
      PSU: EVGA 500W Semi Modular (but you should get 650W!)
      Case: CoolerMaster CM590 III
      Fans: 2x stock case fans (one sucky on front, one blowy on back), 3x be quiet! BL046 120mm fans (two blowy on top, one sucky on front). Airflow near-perfectly balanced.
       
      ADVICE
      With the Clover configuration, you want to pay close attention to all things relating to graphics. There are some specific settings for ACPI, Boot, Devices and Graphics which should be copied exactly in order to get the iGPU and dGPU to work in perfect harmony. For instance, make sure you use ig-platform-id 59120003 rather than 59120000 if you want FCPX to be usable. With the right settings, FCPX will not only run, but run flawlessly.
       
      I was not able to figure out how to make NVRAM/PRAM behave itself, and I got errors when I tried to issue relevant commands. As a result, I could not at first get iMessage to work properly. It worked once on my first installation attempt but not from subsequent attempts. This Clover configuration therefore has no consideration whatsoever toward iMessage reliability - however, iMessage ended up working somehow, anyway - I noticed it after I'd updated to 10.14.3 but this may just have been coincidence.
       
      Onboard WiFi does not work. There is no driver for it. I'm using wired ethernet to a bridge router as it was cheaper than getting a compatible PCI card.
       
      Audio is working well after I installed the z370 audio patch, then the ALC1220 codecs, then AppleALC.
       
      With kexts for generic 3rd party SATA and generic 3rd party eSATA, my HDDs and DVD drive work perfectly well.
       
      Sleep/Wake functions run perfectly. iCloud functions run perfectly. Shutdown leaves the mobo LEDs on, annoyingly.
       
      My USB 3 ports seem to suffer from low power output, and I don't know why.
       
      Overall, this system appears to run about as well under MacOS 10.14 Mojave as it does under Windows 7. I would solidly recommend this build to anyone looking to build a computer for workstation purposes, on a budget.
    • By JhonneR
      Good morning, everyone, I'm sorry if I was wrong in choosing the topic but I need help.
      I have found it extremely difficult to mount a Hackintosh in my acer.
      Setup;
      I5 2430m 2.4 6GB RAM
      Mobo P5we0 - Intel intel Graphics 3000
      At the moment I have not found out what my audio codecs are.
      but I'll leave the link on the motherboard.
      however, my real problem is several.
      I have already used the itakos image, I have already used several images that could be installed normally and that after installing the image I do not have internet via cable or wireless.
      And another, I already looked in other forums and I know that I will be called a donkey in the logical question but I have not been able to install the [url=&quot;http://www.insanelymac.com/forum/topic/279450-why-insanelymac-does-not-support-tonymacx86/&quot;]#####[/url] or clover to start from the Hard Disk, so I do not know what to do.At the moment I still do not know if there has already been someone who has already installed the High Sierra or just the Sierra in this notebook model and obtained permanent success.
      If anyone can help me, I'll be grateful.
      Installations without success, but with the system already installed in ACER;
      SIERRA
      HIGH SIERRA
      MOJAVE
      All with the same symptom. Starting only by the bootable USB stick and without internet connection via cable and wireless.
      Appreciate ! Acer 5750 Official Page
    • By Slice
      Since rev 4844 Vector Themes are supported and there are ready-to-use Clovy by Clovy, cesium by Slice and BGM_SVG by Blackosx.
      You may see it's structure to create own theme
      -------------------------------------------------------------------------------------------------------------------------------------------------------
       
       
      Now I want to add vector graphics support in Clover. See rev 4560 and later.
      It is not working yet but designers may begin to create Vector Themes.
      It supposed to consist of SVG elements and has design size. It will be rendered to any screen size scaled from design size.
       
      What application in macOS can create SVG graphics?
      Inkscape is not working in macOS 10.11+. Pity.
      LibreOffice Draw works with SVG but buggy.
      Boxy SVG cost 10$ but looks good enough. It creates the best in simplicity files and have more then enough features.
      Illustrator is good but expensive.
       
      How to improve SVG file?
      Clover has restricted support for SVG. It is your job to make compatible file and as small as possible to speedup rendering.
      Some helps:
      Help:Inkscape – From invalid to valid SVG Inkscape files
      From invalid to valid SVG Adobe Illustrator files
      From invalid to valid SVG files of other editors: BKchem, ChemDraw and CorelDRAW
      Help:Illustrator – Assistance with creating and saving SVG images in Adobe Illustrator that will pass W3C validation
      User:Quibik/Cleaning up SVG files manually
      Later I will write own instructions specific to Clover abilities.
       
      How to create SVG fonts?
      You can google to find ready-to-use SVG fonts.  I found some problems with too beaty fonts: slow rendering and overflow crash. Be careful.
      You can get ttf or otf fonts and convert them into svg by using online WEB services. Not a problem to google.
      But then I want to find a way to simplify the font to reduce a size and speedup rendering.
      You can create own font by FontForge It is opensource and available for Windows, Mac and GNU+Linux. It creates otf font which you can convert to svg font.
       
      Pictures from Badruzeus
      https://www.insanelymac.com/forum/applications/core/interface/file/attachment.php?id=301597
    • By gengik84
      Ciro82==>>Thanks
      Uno dei tre Requisiti:
      Hack funzionante Mac vero Macchina virtuale Impostazioni Bios per il boot:
      Cercate una voce  del tipo “Sata Mode”e settatela  in AHCI
      Secure Boot: disabilitare o altri sistemi operativi
      CSM: UEFI o LEGACY, oppure a secondo del tipo di installazione
      VT-x / VT-d disable
      *Nota: Secure boot e csm valido solo per bios UEFI
      Materiale Occorrente 
      "OS X (Versione App.Store)”
      USB 8GB  *nota: nel caso di usb superiori dovrà essere partizionata, in modo da avere una partizione su cui "lavoreremo,di questa dimensione
      ShowAllfiles 
      kext Wizard 
      Bootloader Clover_2.3k_r xxx:                   http: //sourceforge.n.../cloverefiboot/
      Clover Configurator:                                    http: //mackie100proj...a.org/download/
      FakeSmc.kext:                                            https://github.com/kozlek/HWSensors/releases
      In allegato,a fondo pagina troverete un "pacchetto" contenente : ShowAllfiles, Kext Wizard, FakeSmc.kext: 
      App alternative:
      ESP Mounter Pro: per montare la partizione EFI
      Vi illustrerò tre metodi per creare la usb, ma sono ben distinti… quindi usatene soltanto uno
      Metodo 1: “Install Mac_OS_X.command” Metodo 2: “Create Install Media di Apple” Metodo 3:  Metodo Manuale Alla fine delle preparazione dell’installer, tutti i metodi necessitano l’installazione del Bootloader Clover sulla a vostra USB.
      “CONDIZIONI OBBLIGATORIE”
      PUNTO 1: che la vostra usb sia stata preventivamente nominata USB (caratteri maiuscoli) Tabella di partizione GUID e la formattazione in  Mac esteso Journaled.
      PUNTO 2: che l’installer di OSX si trovi in Applicazioni
      Utility Disco 
      Selezionate la pendrive, andate su “partizione”, selezionate “1 partizione”, impostate Mac OS esteso journaled e date il nome USB, poi in basso cliccate su opzioni e scegliete Tabella partizione (GUID), poi “applica”.
      Immagine 
      Riporto nuovamente l’operazione sopra citata adoperando dal nuovo Utility Disco introdotto su El Capitan.
      Rimane ovviamente invariato nome della usb in ==>> USB (maiuscolo), la formattazione in Mac esteso Journaled e sia la mappa partizione in GUID
      Da utility disco selezionate la usb, cliccate su inizializza.
      dal menù a tendina scegliete la relative impostazioni
      Immagine  
      Procedura effettua da High Sierra è la stessa della precedente, l'unica attenzione e operazione da aggiungere in primis  è cliccare nel menù a tendina in alto sulla sinistra di utility disco e selezionare "mostra tutti i dispositivi"
      Immagine 
       
      =====================
        METODO 1: "Install_Mac_OS_X.Command" Lo script che trovate allegato in fondo alla guida permette la creazione dell’installer in maniera automatica
      Include la possibilità di scelta di tre versioni di osx
      Yosemite El Capitan Sierra Il risultato finale è come quello del metodo "manuale" descritto nella guida, per cui l'installazione avverrà in un solo passaggio, non in due come con il metodo createinstallmedia. 
      Offre inoltre la possibilità di inserire un kernel patchato, utile, per esempio, per chi usa AMD.
      Rimane invariato il nome dato alla usb in USB, mappa partizione e tipo di formattazione
      Se la vostra usb non sarà rinominata nel modo corretto, verrete avvisati dal terminale, quindi non dovrete far altro che apportare la relativa modifica e rilanciare nuovamente lo script
      Esempio
      ===========================
      Metodo 2 
      L'intento è quello di usare la procedura fornitaci direttamente da Apple, "createinstallmedia", introdotta  con Mavericks. 
      Tale metodo prevede l’uso del terminale che via via se ne sta perdendo il “valore e l’uso”
      Inizialmente per i neofiti potrà sembrare problematico ma alla fine non è così.
      Durante il post installazione alcune operazioni ne richiedono l’ uso.
      Perciò mi sono chiesto perchè, qualora uno volesse, non far conoscere da subito un po’ questo “strumento”???
      Per favorirvi vi ho allegato i comandi già  “pronti”, i quali li potrete copiare ed incollare sul terminale.
      A questo punto aprite il terminale, copiate ed incollate il comando sottostante e premete invio, digitate la vostra password e premete nuovamente invio.
      Comando per creare USB con Yosemite:
      sudo /Applications/Install\ OS\ X\ Yosemite.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ Yosemite.app --nointeraction  
      Comando per creare USB con El Capitan
      sudo /Applications/Install\ OS\ X\ El\ Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ OS\ X\ El\ Capitan.app --nointeraction Comando per creare USB con Sierra 
      sudo /Applications/Install\ macOS\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ Sierra.app/ --nointeraction Per creare USB con Hight Sierra o Mojave usate --> C_I_M (aggiornato per 10.14)
       
      Funziona con il drag & drop sul terminale, in questo caso non vi è necessità che la usb sia nominata in un determinato modo ed essendo basato su create install media ovviamente funziona da 10.9 a 10.14.... 
      BENE…IL PROCESSO DI CREAZIONE E’ INIZIATO…
      AVREMO CIRCA 20/30 MINUTI DI TEMPO LIBERO A CUI DEDICARSI A CIO’ CHE VOGLIAMO………………………………………..  
      COLGO L’OCCASIONE PER FARVI NOTARE LA VELOCITA’ E LA SICUREZZA DI QUESTO METODO
      CONFRONTATE QUESTO CON IL TERZO METODO E NOTERETE CHE CON UN SOLO PASSAGGIO, OSSIA IL COMANDO DATO AL TERMINALE, FACCIAMO IN UNA SINGOLA OPERAZIONE TUTTI I VARI STEP DESCRITTI SULL’ ALTRO METODO.
      DETTO QUESTO, MOLTO IMPORTANTE E’ SOTTOLINEARE CHE COSI’ FACENDO EVITEREMO ERRORI  DI DISTRAZIONE RIGUARDO AI PASSAGGI O FRAINTENDIMENTI.
      Immagine 
      Potete adesso passare ad installare il bootloader Clover sulla vostra usb.
      *NOTA*:
      Avendo usato questo metodo l'installazione si dividerà in due fasi, perciò dopo il primo riavvio e necessario far partire nuovamente l'installer, selezionare lo stesso disco senza formattarlo.
      Finita questa ulteriore fase , l'installazione sarà terminata
      =========================
      METODO "MANUALE"....  (lascio per futura memoria-Compatibile fino a 10.12)
      ==========================
      Bootloader
      **Nota:** Installazione in UEFI  dipenderà dalla scheda madre in vostro possesso, quindi se non supporta tale opzione , il bootloader dovrà essere installato in  modalità Legacy.
       Vi invito, qualora non sapeste questa informazione, a recarvi nel sito ufficiale del produttore e controllare le informazioni a riguardo
      Fatto questo dobbiamo installare  Clover sulla usb.
      A seconda del tipo di Bios o al tipo di installazione che vogliamo fare UEFI o Legacy avremo ovviamente configurazioni diverse in questa fase.
      Lanciate il pkg.
      Immagine 

       
      Cambiate la destinazione di installazione ad USB oppure Install Mac_OS_X (a secondo del tipo di creazione eseguita)
      Successivamente clicchiamo su "Ad Hoc"
      Per Installazione UEFI
      Mettete i flag   : Installazione solo per avvio UEFI
                               : installare Clover nella ESP
                               : Driver64UEFI  AptioMemory --> (consigliato) 
                               : Driver64UEFI  ApfsDriverLoader --> (consigliato) --> sostituisce l'uso del driver apfs.efi
                               : Selezionate l'altri driver come da successiva immagine,
       
      *Nota: Altri driver che si possono usare  al suo posto  sono:
       informazioni 
       
      Proseguite con l’installazione.
      Immagine 
      ** Ricordate che avrete accesso a questa cartella dopo aver montato la partizione EFI**
      ===========================
      Per installazione Legacy
      Immagine 
      ===========================
      Impostazione per config.plist:
      Con clover configurator “montate” la partizione EFI della usb.
      1) Per fare questo nel menù di sinistra, cliccate su “Mount EFI”
      2) individuate la partizione relativa alla vostra usb, a questo punto montiamo la relativa partizione EFI  selezionando l’apposito pulsante “Mount Partition”
      Immagine 
      3) Successivamente cliccate su “Open Partition”.. recatevi in EFI/Clover ed aprite il config.plist
      4) Sezione ACPI: Disabilitate tutti i fix sia del menù 1 che del menù 2
      Immagine 
      5) Sezione BOOT: Sole se si sta installando Yosemite mettete il flag su kext-dev-mode=1
      Immagine 
      6) Sezione RT Variables: Se si sta installando El Capitan oppure Sierra, aggiungere i valori: BooterConfig= 0x28, CsrActiveConfig= 0x67
      Immagine 
      7) Sezione System Parameters: Su inject kext mettete YES
      Immagine 
      ===========================
      Nota: Su El Capitan, è stato introdotto SIP (System Integrity Protection)
      Info:
      ===========================
      Recatevi in EFI/Clover/kext/10.x 
      X= alla versione di osx che state installando. Per esempio se installerete Yosemite dovrete recarvi nella cartella 10.10, con El Capitan in 10.11….ecc
      Se non ci fosse tale cartella, createla e nominatela voi a “modo”.
      Copiatevi all’interno FakeSmc.kext
      *Nota se venite già da altre vostre configurazioni, oltre kext sopra citato ,potete mettere gli altri necessari per il vostro hardware
      Stessa cosa se avete DSDT e/o SSDT potete copiarli in EFI/Clover/Acpi/Patched
      Immagine 
      
      Per High Sierra:
      Scaricare il driver apfs.efi a fine guida, collocarlo:
          --> EFI/clover/Driver64UEFI se stiamo usando UEFI
      --> EFI/Clover/Driver64 se stiamo usando Legacy
       
      Per chi volesse continuare ad usare HFS vi rimando a questo post:
        Come installare High Sierra in HFS direttamente dalla usb  
      Utenti Laptop:  Nel 99% è obbligatorio disattivare la grafica discreta Nvidia/Amd per installare questo nuovo osx
                                     Quindi aggiungete --> SSDT-Disable_DGPU.aml.zip
                                     in EFI/Clover/acpi/Patched della usb
      --------------------------------------------------------------------
      Per Mojave:
      Scaricare il driver apfs.efi per 10.14 a fine guida, collocarlo:
          --> EFI/clover/Driver64UEFI se stiamo usando UEFI
      --> EFI/Clover/Driver64 se stiamo usando Legacy
      Versione di clover non antecedente a V_4015
      Volete usare HFS?
      E' possibile fare un installazione diretta su altro disco o partizione, nel caso può essere usato anche per effettuare aggiornamenti...
      nel caso guardate...
       Mojave in HFS 
       Oppure direttamente da usb  
       
      Fatto questo avrete la vostra USB bootable per installare OSX.
      ………Non scordatevi Fakesmc.kext da mettere nella relativa cartella…. senza il quale non farete mai il Boot......
      *NOTA: se usato il terminale per la creazione della usb, l'installazione si dividerà in due fasi, perciò dopo il primo riavvio e necessario far partire nuovamente l'installer, selezionare lo stesso disco senza formattarlo.
      Finita questa ulteriore fase , l'installazione sarà terminata
      **NOTA** Se avete processori Broadwell,Skylake o Kabylake...usate FakeSmc.kext e relativi sensors che trovate all'interno del secondo pacchetto.. (potete usarlo anche sui precedenti senza problemi, essendo una versione più aggiornata ha ulteriore supporto per le cpu più recenti)
      Update: Fakesmc e sensors versione 6.26
      Post installazione... post #2           
       Buon Hack….. 
      Aggiornamento:Install_Mac_OS_X.command.zip (compatibile da 10.10 a 10.12)
      le info le trovate a questo post
      Ringrazio @Ciro82 che mi ha aiutato nel preparare questa guida.
      Pacchetto.zip
      Pacchetto-2.zip
      apfs.efi-10.13-NoLog.zip
      Pacchetto-Fake+Sensors 6.26.1440.zip
      apfs.efi-10.13.1-No_LOG.zip
      apfs.efi-10.13.2_No_Log.zip
      apfs.efi-10.13.3-No_Log.zip
      apfs.efi-10.13.4-No_Log.zip
      apfs.efi-10.13.5_No_Log.zip
      C_I_M.zip
       
      apfs.efi-10.14-beta1_No_Log.zip





       

    • By blackosx
      I've created a new tool to help with Clover vector themes. It's a perl script that will search and globally replace RGB hex colours in the format #000000 and replace them with new calculated RGB hex colours using the adjustments you ask for.
       
      https://bitbucket.org/blackosx/cloversvgthemeadjuster
       
      You can download it using:
      git clone https://bitbucket.org/blackosx/cloversvgthemeadjuster.git See the usage instructions on the README.
       
      Current Version
      0.0.5 (changelog)
       
      Overview
      The script identifies all colours in the theme file and applies adjustments to the hue, saturation and lightness before saving a new file. The adjustments can be progressively increased in a loop to generate multiple files.
       
      Example:
       
      Using the following commands to adjust the hue:
      perl AdjustThemeColour.pl -20 0 0 10 perl AdjustThemeColour.pl +20 0 0 10 Against my original Silver theme

       
      Can generate multiple variations and choose one I like
       

       
      Say, this one...
       

       
      ** Of course, this type of adjustment will not work on all themes. It all depends on what colours have been used in the design.
       
      Or how about a de-saturated BGM_SVG?
       

       
       
      Known Issues
      - There's always a possibility that a newly replaced hex value may match an already existing hex value which is due to be changed afterwards. This would mean that the newly replaced colours will then be replaced incorrectly. The likely hood of this happening increases with the more colours used in the theme.
       
       
       
×