summaryrefslogtreecommitdiff
path: root/gfx
AgeCommit message (Collapse)AuthorFilesLines
2016-09-24gfx/cro.c (cr_text_cairo): ignore ~ when sizing; consider disable_overlineWerner Almesberger1-10/+30
2016-09-24gfx/fig.c (fig_text_width): don't count ~ (overlining) and UTF-8 extra charsWerner Almesberger1-1/+9
2016-09-24gfx/cro.c (cr_text_width): remove ~ (used for overlining)Werner Almesberger1-1/+10
2016-09-09gfx/cro.c (cr_text_cairo): gently correct for text descending below the baselineWerner Almesberger1-0/+10
(Especially underlines.)
2016-09-08gfx/misc.c (rx, ry, matrix_is_mirrored): don't use assert(0)Werner Almesberger1-6/+3
2016-09-07fix numerous whitespace atrocitiesWerner Almesberger3-5/+5
- trailing spaces - trailing tabs - space before tab - more than four spaces ... - at the beginning of a line - after tab - in general (okay in many cases, but not all) - caught a stray blank line as well
2016-09-07gfx/diff.c, main/eeplot.c, gui/gui.c: search library pathsWerner Almesberger1-1/+1
2016-09-06gfx/cro.c: multiply line width of PDF, PS, SVG by 16, to offset internal scalingWerner Almesberger1-3/+3
2016-09-06gfx/cro.c: add experimental SVG supportWerner Almesberger2-0/+90
2016-09-06gfx/cro.c (cro_ps_ops, cro_eps_ops): PS and EPS don't support -TWerner Almesberger1-2/+2
2016-09-05add EPS (through Cairo) supportWerner Almesberger2-2/+34
2016-09-05gfx/cro.c: tolerance to 0.1 mil to keep arcs from getting "optimized" outWerner Almesberger1-0/+2
Cairo seems to be a bit overzealous there.
2016-09-04add Postscript (through Cairo) supportWerner Almesberger2-0/+112
2016-09-04gfx/cro.c (cr_pdf_init): add_toc is only available after cr_argsWerner Almesberger1-5/+5
2016-09-04gfx/record.c (record_text, bb_rot): update bounding box also for textWerner Almesberger1-8/+20
2016-09-04gfx/cro.c (cro_img_end): let's try this again, slowly ...Werner Almesberger1-3/+3
Sigh, the things pollen allergy does to the human brain :-( Two bugs there: - updating the width after calculating the stride size is not such a good idea, and - forgetting that these are not values but pointers is even worse.
2016-09-04gfx/cro.c: round up image and PDF sizes, to prevent accidental clippingWerner Almesberger1-4/+7
2016-09-04main/eediff.c: take over file name processing from diff_args; remove --Werner Almesberger1-14/+5
2016-09-03gfx/diff.c (diff_args): check for error return from diff_process_fileWerner Almesberger1-0/+2
2016-09-03gfx/diff.c (diff_process_file): remove new_ from new_sch new_libWerner Almesberger1-12/+12
After all, we now use them for old and new.
2016-09-03main/eediff.c: push -1 (does nothing) and -e to driver; properly support -eWerner Almesberger1-1/+11
2016-09-03main/eediff.c: the big leap - use diff_process_file (WIP)Werner Almesberger2-5/+7
There is still some cleanup left to do, including doing something about -e and -1.
2016-09-03gfx/diff.c (diff_args): move "new" file processing to diff_process_fileWerner Almesberger1-46/+56
2016-09-03gfx/gfx.c: we now pass a combined option string to driversWerner Almesberger5-25/+43
Further changes implied by this: - drivers can no longer receive arguments, only options - drivers have to ignore options they don't recognize
2016-09-03select driver by filename extension instead of driver specWerner Almesberger4-6/+14
2016-09-03gfx/: ignore foo: prefix in output file namesWerner Almesberger3-3/+9
Note sure if this is the best place for it. We could also tweak argv in the respective main.
2016-09-03gfx/cro.c, gfx/fig.c: output file name - means standard outputWerner Almesberger2-4/+4
2016-09-03gfx/fig.c: support option -o output.figWerner Almesberger1-49/+97
2016-09-03gfx/fig.c (fig_args): var=value is now -D var=valueWerner Almesberger1-9/+10
2016-09-03gfx/cro.c (cr_args): earmark for not accepting no non-option argumentsWerner Almesberger1-0/+6
We can't make this change yet since file names arguments are visible to cr_args when used by eediff.
2016-09-02gfx/gfx.c: add section commentsWerner Almesberger1-0/+12
2016-08-30gfx/diff.c: free bitmaps used for diffWerner Almesberger1-3/+5
We're now at 0 leaks for eeshow ../../n9/ee/hw/neo900.pro -- diff ../../n9/ee/hw/neo900.pro >/dev/null
2016-08-30gfx/: begin to bring some order into post-diff cleanupWerner Almesberger5-5/+39
Sadly, we need two new partial destructor functions for this, cro_img_reset and cro_img_destroy, plus one for the graphics abstraction, gfx_destroy.
2016-08-30gfx/diff.c: begin arduous task of teaching diff mode some mannersWerner Almesberger1-0/+5
Down from about 2.2 MB to ~24 kB, for eeshow ../../n9/ee/hw/neo900.pro -- diff ../../n9/ee/hw/neo900.pro > /dev/null
2016-08-30fix a few trivial memory leaks; eeshow ... -- pdf now passesWerner Almesberger2-0/+4
2016-08-30gfx/cro.c (cr_pdf_init): don't forget to setup the fontWerner Almesberger1-0/+1
Caused a Conditional jump or move depends on uninitialised value(s) in valgrind.
2016-08-30fix a few memory leaks (in non-interactive mode)Werner Almesberger1-1/+7
We now leak less than 1 MB on valgrind --leak-check=full eeshow -N 1 neo900.pro -- png -o foo.png instead of about 3.5 MB. The plan is as follows: - fix memory leaks in simple operations in on-interactive mode, - suppress what cannot be fixed (e.g., when comes from libraries), - move on to more complex operations, - then start fixing interactive mode.
2016-08-30gfx/cro.c (cro_img): add alpha mode; get rid of paint_yellowWerner Almesberger3-7/+16
This didn't work before because we didn't use CAIRO_OPERATOR_SOURCE.
2016-08-30gfx/cro.c (cro_img): save and restore old cc_extra->record.userWerner Almesberger1-0/+3
Else, pin types won't be drawn until this information gets refreshed. The whole construct is a vile hack. Should do better.
2016-08-29gfx/cro.c (cro_img): gently adjust the line widthWerner Almesberger1-1/+12
This greatly improves the thumbnails in index mode.
2016-08-27non-interactive diff now exits with 0 if no differences, 1 if differencesWerner Almesberger1-4/+9
2016-08-27gfx/gfx.c (gfx_end): let "end" function return an integerWerner Almesberger4-7/+16
2016-08-27gfx/cro.c (setup_pango): rename to setup_fontWerner Almesberger1-6/+6
... since we also use it for Cairo.
2016-08-27gfx/cro.c (cr_png_init): don't forget to setup fontWerner Almesberger1-0/+1
2016-08-27gfx/cro.c (cro_img_write): check cairo_surface_write_to_png return valueWerner Almesberger1-2/+7
2016-08-27gfx/diff.c: combine processing for GUI and non-interactive modeWerner Almesberger3-55/+87
This also removes the restriction that, in non-interactive mode, both sheets had to have exactly the same size.
2016-08-26gfx/cro.c: support text stylesWerner Almesberger1-1/+34
2016-08-26gfx/fig.c (fig_text): support text stylesWerner Almesberger2-1/+21
2016-08-26pass text style to gfx_text{,_width} and related functionsWerner Almesberger8-27/+49
2016-08-26gfx/text.c (text_fig): rename to text_showWerner Almesberger2-2/+2
The days of only doing FIG are long gone ...