bzt(79d2e48c) at 19 May 00:18 Added SSFN2.0 link
Hi. I am trying to compile sfn2asc.c I installed freetype2 usingNow I'm trying to compile ttf2sfn.c this wayBut I get these errors:What's wrong? Did I install the wrong version of freetypes? I also tried downloading the latest version of freetypes2 from an official site, nothing changed.Thanks.sudo apt install freetype2-demosgcc -I/usr/include/freetype2 ttf2sfn.cttf2sfn.c: In function ‘main’:ttf2s
I'm using a different, more bullet-proof approach with SSFN2. I've tested its sfnconv with both your files and it worked flawlessly. For now, I'd say you can use the .sfn font I've attached, and keep tuned for the 2.0 which will arrive within a week (or two in worst case).Cheers, bzt
It's very strange that you have it working and I don't. That's what I get.$ ./ttf2sfn -6 -s ~/os/UbuntuBold.ttf ~/os/UbuntuBold.sfnLoaded 'Ubuntu' num_glyphs: 1264, units_per_EM: 1000Fragments: 0, Characters: 0, bbox: (1024,1024) (0,0), baseline: 0, underline: 993No kerning informationOriginal 333612 bytes, compressed 352 bytes, -99.9%
Hi,Yes. It is only the format that matters, family is just a property.I've tried your examples. UbuntuBold.ttf was converted perfectly (128365 bytes), but I can confirm that something went wrong with UbuntuBoldSS.ttf (118784 bytes), because sfn2asc -d reports corrupted font.It would be helpful if you could provide the final outputs of the conversion. For me, that is:As you can see, there's a segfa
Great. I'm fine now, thank you. Tell me please, can this utility convert fonts from other families?For example. I downloaded the fonts from the official Ubuntu . Now I'm trying to load it with this command. I tried to use different flags from -r to-h, in any case I get a very small file (about 300 bytes), even when compiling with the best quality (-6). sfn2asc writes that the file is corrupted.web
For the records, I haven't used FT_Error_String in SSFN2.0. You could also remove it from SSFN1.0's ttf2sfn.c.Line 530 should be:And line 653:You won't see a textual error message, just the code if anything goes wrong. Small price to make it compile I think. (This isn't very important, because neither FT_Set_Char_Size nor FT_Decompose is likely to throw an error. They never did in my tests, anyway
Hi,According to the include file (fterrors.h) should get included with freetype.h. This suggests it should be implemented in the library no matter what.https://freetype.org/freetype2/docs/reference/ft2-error_enumerations.htmlIf you list the functions in libfreetype.so, what do you see? Is there an FT_Error_String listed? (Use nm or readelf something similar tool to parse ELF file's sections.)Cheer
I downloaded the latest version of the library and when compiling, I specify the path to it. I do it like this:However, the linker cannot find the `FT_Error_String' character. It prints this error message:This is very strange considering that I use the latest version of the library. Also, your Makefile compiles ttf2sfn.c in exactly the same way.gcc ttf2sfn.c -I/home/emilia/os/freetype-2.10.1/inclu
Hi,There's something wrong with your include, that's causing the problems. Using freetype2 is not trivial, at install it should generate an ft2build.h header which (I know, insane, but that's how it is). If your ft2build.h does not have the include defines correctly, then ttf2sfn.c (or any other ft2 using source) wouldn't be able to get the function prototypes.defines the includesis a clear indica
bzt(1ef1cb97) at 25 Nov 04:05 MinGW support for sfnedit
bzt(b88fd362) at 05 Jul 18:06 Sfnedit saving to ASC added
bzt(69469bc4) at 27 Jun 15:24 Added .gz extension to Vera fonts
bzt(b5591aae) at 18 Jun 02:01 Kerning in editor
bzt(426c93fc) at 14 Jun 02:17 Docs
bzt(f47b6030) at 14 Jun 01:50 Docs
bzt(7db91930) at 14 Jun 01:23 More editor stuff
bzt(ccf3c585) at 12 Jun 23:55 More sfnedit
bzt(e5378bb1) at 07 Jun 23:14 Added collections and coloring in editor