Werner Lemberg
16b3e62013
* src/tools/docmaker/sources.py (column) [Format 2]: Fix regexp.
...
After the single asterisk there must be no other immediately following
asterisk.
10 years ago
Werner Lemberg
63cb256b5b
Documentation typos.
10 years ago
Werner Lemberg
aaffbf85df
Minor.
10 years ago
Werner Lemberg
434bc69573
* src/tools/docmaker/tohtml.py: Improve CSS for vertical spacing.
10 years ago
Werner Lemberg
51987eaf39
[docmaker] Improve HTML code for table of contents..
...
* src/toold/docmaker/tohtml.py: Introduce a new table class `toc',
together with proper CSS.
10 years ago
Werner Lemberg
aa834ce580
[docmaker] Provide higher-level markup and simplify HTML.
...
* src/tools/docmaker/tohtml.py: Instead of using extraneous `<div>'
elements, use CSS descendants (of class `section') to format the
data.
Also remove reduntant <p> and <br> elements, replacing them with
proper CSS.
Globally reduce page width to 75%.
(block_header): Rename <div> class to `section'.
10 years ago
Werner Lemberg
572e43cd80
Minor.
10 years ago
Werner Lemberg
3bb9702387
[docmaker] Add `top' links after blocks.
...
* src/tools/docmaker/tohtml.py (block_footer_middle): Implement it.
10 years ago
Werner Lemberg
a31f971577
* src/tools/docmaker/tohtml.py: Improve CSS for fields.
...
Make fields align horizotnally relative to full line width.
10 years ago
Werner Lemberg
8f795118b8
* src/tools/docmaker/tohtml.py: Fix index and TOC templates.
...
This thinko was introduced 2014-11-27.
10 years ago
Werner Lemberg
ba1ba0cade
[docmaker] Format field lists with CSS.
...
This also simplifies the inserted HTML code.
* src/tools/docmaker/tohtml.py
(HtmlFormatter::print_html_field_list): Do it.
10 years ago
suzuki toshiya
348fffa850
Fix compiler warning to the comparison between signed and
...
unsigned variable.
* src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Fix the comparison
between `ypos + ysize' and FT_INT_{MAX,MIN}.
10 years ago
Werner Lemberg
46d4dc86e1
[docmaker] Replace empty `<td>' with CSS..
...
* src/tools/docmaker/tohtml.py (HtmlFormatter::section_enter): Do
it.
10 years ago
Werner Lemberg
984e07176c
[docmaker] Replace some `<table>' tags with `<h4>' and `<div>'.
...
* src/tools/docmaker/tohtml.py (marker_*): Use `<h4>'.
(source_*): Use `<div>'.
(HtmlFormatter::block_enter): s/<h4>/<h3>/.
10 years ago
suzuki toshiya
9ee6a0a085
Fix compiler warning to conversion specifiers in debug messages.
...
* src/autofit/afhints.c (af_glyph_hints_dump_points): Add length
modifier to dump long integers. (af_glyph_hints_dump_segments,
af_glyph_hints_dump_edges): Ditto.
10 years ago
Werner Lemberg
7ea363402c
* src/tools/docmaker/tohtml.py: Usee more CSS for index.
10 years ago
Werner Lemberg
edcf817efa
[docmaker] Replace `name' attribute of `<a>' with `id'.
...
* src/tools/docmaker/tohtml.py (HtmlFormatter::block_enter): Do it.
10 years ago
Werner Lemberg
26d699ed84
* src/tools/docmaker/tohtml.py: Remove remaining `width' attributes.
...
For `Index' and `TOC' links, we now simply use the `text-align' CSS
property of `<td>' to enforce flush-left and flush-right,
eliminating the hack with an empty, full-width `<td>' element
inbetween.
The change also enforces the same (smaller) size for all index and
TOC links.
10 years ago
suzuki toshiya
1b12f5d126
* src/cff/cf2font.c: Include `ftcalc.h' to use FT_MSB(),
...
cf2font.c could not find it under `make multi' build.
10 years ago
suzuki toshiya
2676e07aa4
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Remove
...
unrequired negative value check for `width' and `height'.
10 years ago
Werner Lemberg
dd3fee072c
* src/tools/docmaker/tohtml.py: More HTML table refactoring.
...
Replace some `<table>' tags with `<div>' to simplify structure.
Move `bgcolor' attribute to CSS.
Replace most `width' attributes with CSS. The remaining instances
(providing a similar effect as LaTeX's `\hfill' command) are removed
in a later patch.
10 years ago
Werner Lemberg
a45b701a59
Minor documentation update.
10 years ago
Werner Lemberg
339d830efe
[docmaker] Typos.
10 years ago
Werner Lemberg
a5ad26afea
* src/tools/docmaker/tohtml.py: Replace <font> with CSS.
10 years ago
Werner Lemberg
ba67c61972
* src/tools/docmaker/tohtml.py: Center <table> with CSS.
10 years ago
Werner Lemberg
5594fa549d
* src/tools/docmaker/tohtml.py: Replace `<center>' with `<div>'.
10 years ago
Werner Lemberg
433295ab6e
Sort CSS entries.
10 years ago
Werner Lemberg
8585cf56c1
* src/tools/docmaker/tohtml.py: Remove redundant `<center>' tags.
...
This starts a series of commits into the direction of generating
valid HTML 5 code, especially using much more CSS.
10 years ago
suzuki toshiya
1b057040d8
Prevent too negative values (< FT_INT_MIN) in bitmap metrics,
...
suggested by Alexei.
* src/pfr/pfrsbit.c (pfr_slot_load_bitmap): Prevent too
negative values in `xpos' and `ypos + ysize'.
* src/smooth/ftsmooth.c (ft_smooth_render_generic): Prevent
too negative values in `x_left' and `y_top'. Either negative
values in `width' and `height' are checked.
10 years ago
Werner Lemberg
c52882ab72
[docmaker] Produce better HTML code.
...
* src/tools/docmaker/tohtml.py: Always use double quotes for
attribute values.
(source_footer): Close `td' and `tr' groups.
10 years ago
Werner Lemberg
dbb93157d5
Use better way to disable creation of .pyc files for `make refdoc'.
...
Python 2.6 was released in 2008...
* builds/freetype.mk (refdoc): Use python's `-B' option.
* builds/detect.mk (std_setup, dos_setup): Mention required python
version for `refdoc' target.
10 years ago
Werner Lemberg
4e7f89e3d7
[docmaker] Cosmetics.
10 years ago
Werner Lemberg
e8a5c33e9f
* src/tools/docmaker/sources.py (re_bold, re_italic): Use
...
non-grouping parentheses.
* src/tools/docmaker/tohtml.py (HtmlFormatter::make_html_word):
Updated.
10 years ago
Werner Lemberg
3d167cbe7f
* src/base/ftobjs.c (FT_Get_Glyph_Name): Fix compiler warning.
...
Introdruced in previous change. Reported by Alexei.
10 years ago
Werner Lemberg
f34f192535
* src/*: Add checks for parameters of API functions where missing.
...
`API functions' are functions tagged with `FT_EXPORT_DEF'.
Besides trivial fixes, the following changes are included, too.
* src/base/ftbdf.c (FT_Get_BDF_Charset_ID, FT_Get_BDF_Property): Set
error code if no service is available.
* src/base/ftinit.c (FT_Done_FreeType): Change return value for
invalid `library' parameter to `Invalid_Library_Handle'.
* src/base/ftobjs.c (FT_New_Size): Change return value for invalid
`asize' parameter to `Invalid_Argument'.
* src/base/ftoutln.c (FT_Outline_Copy): Change return value for
invalid `source' and `target' parameters to `Invalid_Outline'.
(FT_Outline_Done_Internal): Change return value for invalid
`outline' parameter to `Invalid_Outline'.
10 years ago
Werner Lemberg
2966889126
Typo.
10 years ago
Werner Lemberg
a593a04277
* src/cache/ftcbasic.c: Use single calls to `FT_TRACE'.
10 years ago
suzuki toshiya
cd4a5a26e5
* src/base/ftobj.c (Mac_Read_POST_Resource): Additional
...
overflow check in the summation of POST fragment lengths,
suggested by Mateusz Jurczyk <mjurczyk@google.com>.
10 years ago
suzuki toshiya
1720e81e3e
* src/base/ftobjs.c (Mac_Read_POST_Resource): Insert comments
...
and fold too long tracing messages.
10 years ago
suzuki toshiya
18a8f0d994
Fix Savannah bug #43540 .
...
* src/base/ftmac.c (parse_fond): Prevent a buffer overrun
caused by a font including too many (> 63) strings to store
names[] table.
10 years ago
suzuki toshiya
453316792f
* src/base/ftobjs.c (Mac_Read_POST_Resource): Use unsigned long
...
variables to read the lengths in POST fragments. Suggested by
Mateusz Jurczyk <mjurczyk@google.com>.
10 years ago
suzuki toshiya
35252ae9aa
Fix Savannah bug #43539 .
...
* src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
by a broken POST table in resource-fork.
10 years ago
suzuki toshiya
240c94a185
Fix Savannah bug #43538 .
...
* src/base/ftobjs.c (Mac_Read_POST_Resource): Fix integer overflow
by a broken POST table in resource-fork.
10 years ago
suzuki toshiya
5aff85301b
* src/base/ftobjs.c (Mac_Read_POST_Resource): Avoid memory leak
...
by a broken POST table in resource-fork. Return after freeing
the buffered POST table when it is found to be broken.
10 years ago
Werner Lemberg
02b8e7e8d7
*/*: s/Invalid_Argument/Invalid_Size_Handle/ where appropriate.
10 years ago
Werner Lemberg
0d4aa23e7c
*/*: s/Invalid_Argument/Invalid_Stream_Handle/ where appropriate.
10 years ago
Werner Lemberg
f4f9e68800
*/*: s/Invalid_Argument/Invalid_Library_Handle/ where appropriate.
10 years ago
Werner Lemberg
04c2aa18bf
*/*: s/Invalid_Argument/Invalid_Outline/ where appropriate.
10 years ago
Werner Lemberg
04edbbda3c
*/*: s/Invalid_Argument/Invalid_Face_Handle/ where appropriate.
10 years ago
Werner Lemberg
3e86711ebf
[Savannah bug #43682 ] Adjust some renderer callbacks.
...
* src/raster/ftraster.c (ft_black_set_mode): Change return type to
`int' to stay in sync with `FT_Renderer_SetModeFunc' prototype.
* src/smooth/ftgrays.c (gray_raster_set_mode): New dummy function
for orthogonality.
(ft_grays_raster): Use it.
10 years ago