Sam Hocevar
a09f027727
Add the copyright unit test and update copyright information everywhere.
il y a 15 ans
Sam Hocevar
107ff4b815
Large source code cleanup, getting rid of spaces, tabs, and svn keywords.
il y a 15 ans
Sam Hocevar
a4cd497318
Do not use htons/htonl in makefont.c, since we already have hton16/hton32
which do not require to initialise winsock on Windows. Addresses #48 .
il y a 15 ans
Sam Hocevar
2a4cccbf34
Clean up .gitignore and documentation build rules.
il y a 15 ans
Sam Hocevar
a1fd592363
Store built-in fonts in a uin8_t[] instead of char[].
il y a 15 ans
Sam Hocevar
1362d8e24f
Update my e-mail address everywhere.
il y a 15 ans
Sam Hocevar
bf3d41309c
Update source checking test and remove CRLF crap from makefiles.
il y a 15 ans
Sam Hocevar
fb7c744402
Added new Unicode blocks to the built-in font.
il y a 15 ans
Sam Hocevar
b7ba0adba0
Remove occurrences of DATADIR, it conflicts with MinGW's <objidl.h>.
Fixes ticket #51 .
il y a 15 ans
Sam Hocevar
f61816ceb7
Starting refactoring to get rid of libcucul. The initial reason for the
split is rendered moot by the plugin system: when enabled, binaries do
not link directly with libX11 or libGL. I hope this is a step towards
more consisteny and clarity.
il y a 16 ans
Sam Hocevar
33b3fb51ae
makefont.c: change the font data encoding, the source is now 5% smaller.
il y a 16 ans
Sam Hocevar
321db7b450
* makefont is only a system tool: use htons/htonl instead of hton16/hton32.
il y a 16 ans
Sam Hocevar
99d7e53aee
* Remove htons() and htonl() from kernel mode: we use our custom hton16()
and hton32() implementations everywhere instead, except in cacaserver
which requires <arpa/inet.h> stuff anyway.
il y a 16 ans
Sam Hocevar
abcc1ab766
* Fix a buffer initialisation issue in the sortchars utility.
il y a 16 ans
Sam Hocevar
99b5396e8e
* Remove #include <stdint.h> etc. from "common.h". Instead, make sure that
<cucul.h> will provide the C99 types, even if libcaca has been installed.
* Rename what's left of "common.h" to "stubs.h".
* Remove all references to erroneous <inttypes.h> from source files.
il y a 16 ans
Sam Hocevar
85f2b01bf7
* Added .gitignore files in addition to svn:ignore properties.
il y a 17 ans
Sam Hocevar
4f287aecb6
* Add a lookback table in the output. Will be handy later.
* Now sortchars’s output can be directly saved to a C header file.
il y a 17 ans
Sam Hocevar
ab031ed2fa
* Improved distance computation in sortchars.c.
* Use font 0 instead of font 1.
* Print a bitmapped example at the end.
_pBBBBPP"' '7PBBBBBL
_BBBBP" __p@BBBBBBBBBpp__ 7%BBBb_
_BBBB" _@BBBBBPPPPPPPP%BBBBBpL %BBBb
BBB" _@BBBP"' ____ 'PBBBBp %BB
BB @BBBP __iIIIIIIIIIiL '%BBBL 7B
P BBBP _IIII**''''"*lIIIi_ 7BBBb 7
BBBP III/' ,,:::, "IIIi BBBb
JBBB III" ,!!!!!!!!:, lIIi 7BBB
BBBL JIII ,!!"' '!!! III BBBL
BBBL lIII "!!, !!! IIIL BBBP
BBBL III !!!::::!!!" JIII BBBL
JBBB lIIIL '"!!!!""' iIII @BBB
L 3BBBL "lIIIi_ __iIII/ @BBB
BL 7BBBb '*IIIIIIIIIIII/" _@BBP @
BBb %BBBb_ '"*****"' __BBBB" _BB
%BBBp 7BBBBbpL__ __ppBBBBP" _@BBB
7%BBBp_ '7PBBBBBBBBBBBBBBPP' _@BBBP
'PBBBBpL_ ''''PP"'''' _p@BBBBP
il y a 17 ans
Sam Hocevar
7e355ca89c
* Updates to sortchars.c so that it can output a proper LUT.
il y a 17 ans
Sam Hocevar
6f08997681
* Small tool to analyse character glyphs depending on their shape. Will be
used for improved dithering.
il y a 17 ans
Sam Hocevar
ee56ef1867
* Added glyphs to our default fonts:
+ Geometric Shapes, Halfwidth and Fullwidth Forms (as suggested by Ben
Wiley Sittler)
+ Miscellaneous Symbols (as suggested by Mohammed Adnène Trojette)
il y a 17 ans
Sam Hocevar
9597783308
* Bwarf, typo in the no warranty clause.
il y a 18 ans
Sam Hocevar
33058757da
* Add a no warranty clause to the code.
il y a 18 ans
Sam Hocevar
f1f00897c5
* Fix shadowing declarations.
il y a 18 ans
Sam Hocevar
12696aaff5
* Don't rely on pkg-config macros for variable substitution. Just in case.
il y a 18 ans
Sam Hocevar
dbf07a9a27
* Add maxwidth and maxheight members to the font format.
il y a 18 ans
Sam Hocevar
5d59b719c8
* Add CJK punctuation to the default fonts.
* Minor changes to the font2tga test program.
il y a 18 ans
Sam Hocevar
eb017043ab
* Support fullwidth fonts.
* Add Katakanas and Hiraganas to the default fonts.
il y a 18 ans
Sam Hocevar
4fa891b61b
* Slightly changed the font header information. No one distributes libcaca
fonts yet anyway :-)
il y a 18 ans
Sam Hocevar
0b37a307dd
* Get rid of cucul_set_attr_ansi() and cucul_set_attr_argb and merge the
functionality into cucul_set_attr().
* Add cucul_ansi_to_attr() and cucul_argb_to_attr().
* Rename CUCUL_COLOR_* to CUCUL_*.
il y a 18 ans
Sam Hocevar
91645bfa68
* Do not link binaries with @CACA_LIBS@, it's useless.
il y a 18 ans
Jean-Yves Lamoureux
1b821e2588
* Updated kernel 'driver', still not working, but most of the work is done
il y a 18 ans
Sam Hocevar
aca46d3f39
* Added -I${top_srcdir} to the compilation flags to fix builds configured
from an alternate directory (they failed to find common.h).
il y a 18 ans
Sam Hocevar
9137c0a059
* Export the UTF-8 / UTF-32 / CP437 character conversions to applications.
il y a 18 ans
Sam Hocevar
74e2bdf587
* Elite trick in the font generator to cope with C89's string length
limitation of 509 characters. Instead of doing:
char foo[10] = "abcdefghij";
we now do:
struct { char f1[4], f2[4], f3[2]; } foo = { "abcd", "efgh", "ij" };
il y a 18 ans
Sam Hocevar
c47c1d3118
* Optimise similar glyphs when generating a font. Given how many glyphs
are unavailable, this is a significant gain.
il y a 18 ans
Sam Hocevar
17e1e490d6
* Added a few more Unicode blocks to the default fonts.
il y a 18 ans
Sam Hocevar
b29977cebe
* Hardcode a few CP437 glyphs in makefont.c because they don't look that
good with Pango.
il y a 18 ans
Sam Hocevar
b2d84d524d
* Factored more UTF32 to UTF8 conversions using _cucul_utf32_to_utf8().
il y a 18 ans
Sam Hocevar
89bfc20006
* Added Unicode range U+2200 - U+22FF (Mathematical Operators) to the
built-in font so that we now cover all of CP437.
il y a 18 ans
Sam Hocevar
4a1507c398
* Renamed htons/htonl to hton16/hton32 to avoid useless conflicts.
il y a 18 ans
Sam Hocevar
d04b853800
* Look for htons/htonl in netinet/in.h in addition to arpa/inet.h
* Implement htons/htonl in common.h just in case.
il y a 18 ans
Sam Hocevar
5cb4d4dedf
* Removed duplicate uint*_t defines from *_internal.h and included common.h
in all .c files that needed it.
il y a 18 ans
Sam Hocevar
e589722123
* Moved the technical discussion on S-Lang's palette optimisation from
NOTES to tools/optipal.c.
il y a 18 ans
Sam Hocevar
5f4a761ce0
* Cosmetic changes.
il y a 18 ans
Sam Hocevar
ac3283f07f
* Cosmetic code changes and minor optimisations.
il y a 18 ans
Sam Hocevar
5d2afb9232
* Made makefont more configurable. Also, store the commandline in a comment
so that the font can be easily rebuilt.
il y a 18 ans
Sam Hocevar
c1669600af
* Some cleaning up in makefont.c.
il y a 18 ans
Sam Hocevar
c1e5f30692
* Fixed 4, 2 and 1-bit font rendering.
* Replaced the 8-bit internal font with a 4-bit one.
il y a 18 ans
Sam Hocevar
fed62ed798
* Added a font creator that uses pango to render glyphs.
il y a 18 ans