Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  AA font conversion problem using CygWin
« previous next »
  • Print
Pages: [1]

Author Topic: AA font conversion problem using CygWin  (Read 5357 times)

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
AA font conversion problem using CygWin
« on: March 08, 2011, 09:30:49 AM »
Hello,

I'm really new to this compiling thing and as I understand, in order to create antialiased fonts I need to use convttf tool. So I installed Cygwin using tutorial given in wiki and got the source code using Cygwin. Since the information about converting ttf font to rockbox's fnt font format (antialiased one) is rather limited for someone who doesn't know almost anything about compiling (and its idiot-proof too  :-\ ) I did this:

in cygwin I cd to rockbox (thats where I got the source code),
then wrote "tools/convttf -p 15 -c 1 /tools/Baramond.ttf" (similary to how its writen in wiki and I had that Baramond.ttf font in tools folder) and it told me that theres "no such file or directory").
then i tryed "tools/convttf.c -p 15 -c 1 /tools/Baramond.ttf", the result was getting back to user@pc with no error message or anything. After that i tryed putting Baramond.ttf everywhere :D and using different paths :D ... that didn't help either.

I have cygwin instaled right into C:\ so there are no spaces in the path.

So can someone tell me how to do it right? :D
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4384
Re: AA font conversion problem using CygWin
« Reply #1 on: March 08, 2011, 11:09:51 AM »
Try changing directories to the "tools" directory and then run
Code: [Select]
./convttf -p 15 -c 1 ./Baramond.ttf
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: AA font conversion problem using CygWin
« Reply #2 on: March 08, 2011, 12:18:11 PM »
did this:
cd rockbox/tools
./convttf -p 15 -c 1 ./Baramond.ttf
got this:
bash: ./convttf: No such file or directory

And if i do it with .c
by doing this:

cd rockbox/tools
./convttf.c -p 15 -c 1 ./Baramond.ttf
then pc thinks like for a second or two and throws me back to "user@pc ~"

I tryed searching (manually and using search) for 15-Baramond.fnt since my pc did something, but theres nothing.
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4384
Re: AA font conversion problem using CygWin
« Reply #3 on: March 08, 2011, 12:45:41 PM »
That seems to indicate that convttf isn't in the current directory.  Is there a binary named "convttf" in that directory?  I had to run "make" in the tools directory to build it from convttf.c.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: AA font conversion problem using CygWin
« Reply #4 on: March 08, 2011, 01:22:19 PM »
I didn't do that becouse there was nothing about it in font related documents on wiki   :-[
Now that I did it many (5 actually) binary files appeared, yet convttf.exe (if thats what i should be looking for) isn't there and I got a wall of text showing "mkzenboot" errors.
Converting font doesn't work...
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4384
Re: AA font conversion problem using CygWin
« Reply #5 on: March 08, 2011, 01:56:38 PM »
Yeah, I guess that could be made clearer.

It's difficult for people to offer advice without knowing what the exact error says.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline Buschel

  • Developer
  • Member
  • *
  • Posts: 190
Re: AA font conversion problem using CygWin
« Reply #6 on: March 08, 2011, 02:49:55 PM »
As long as convttf.exe has not been compiled successfully you will not be able to convert fonts. To compile convttf under cygwin you'll need to add the package libfreetype-devel (for compilation) and libfreetype62 (for execution of convtff.exe) to your cygwin installation.
Logged
iPod 5.5G 30GB, iPod nano 2G 8GB, 97% MPC and growing...
 

Offline raudonkepuraite

  • Member
  • *
  • Posts: 28
  • Cogito Ergo Proxy ^^
Re: AA font conversion problem using CygWin
« Reply #7 on: March 09, 2011, 03:22:42 AM »
Ok, I got tired of this so I did it my way :D
I really needed libfreetype stuff but even with it I got bunch of errors since make was compiling all the other things in makefile... so I removed those other things leaving only convttf... AND IT WORKED, yeay  ;D

this is what I did in "makefile":

#             __________               __   ___.
#   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
#   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
#   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
#   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
#                     \/            \/     \/    \/            \/
# $Id: Makefile 29547 2011-03-08 22:54:38Z dave $
#
CFLAGS := -O -g -W -Wall -Wshadow -pedantic
LDFLAGS := -g

all: convttf

convttf: convttf.c
   $(call PRINTS,CC $(@F))
   $(SILENT)$(CC) $(CFLAGS) -lm -std=c99 -O2 -Wall -g $+ -o $@ \
      `freetype-config --libs` `freetype-config --cflags`

edit:

oh, and btw THANK YOU BOTH
« Last Edit: March 09, 2011, 03:49:54 AM by raudonkepuraite »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  AA font conversion problem using CygWin
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.321 seconds with 16 queries.