ChangeLog 253 KB
Newer Older
1 2 3 4
2021-02-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c (write_header): Fix header formatting.

5 6 7 8
2021-02-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grblit.c: Clean up pointer and variable types.

9 10 11 12 13 14 15
2021-02-03  Werner Lemberg  <wl@gnu.org>

	[ftgrid] Make `-f ... -e ...` work.

	* src/ftgrid.c (parse_cmdline): Use flags to set a default character
	index after option loop.

16 17 18 19
2021-01-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grblit.c (blit_mono_to_*): Slightly faster variants.

20 21 22 23 24 25 26 27
2021-01-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Decouple the legacy and alpha blenders.

	* graph/grblit.c (grBlitGlyphToBitmap): Do not call
	`grBlitGlyphToSurface'.
	* src/*: s/grBlitGlyphToBitmap/grBlitGlyphToSurface/.

28 29 30 31
2021-01-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grfont.c (gr_charcell): Minor.

32 33 34 35 36 37 38 39
2021-01-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Handle mono bitmaps in the main blender.

	* graph/gblany.h (_gblender_blit_mono_*): Implement it.
	* graph/gblblit.c (gblender_blit_init): Recognize mono bitmaps.
	* graph/gblblit.h (GBlenderSourceFormat): Add GBLENDER_SOURCE_MONO.

40 41 42 43
2021-01-24  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* Makefile (FT_INCLUDES): Drop `$(TOP_DIR)/src/dlg`.

44 45 46 47 48 49 50 51 52 53
2021-01-21  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Reduce color conversions in the blender (part 2).

	* graph/gblender.h (GBlenderBGR): Define color channel storage.
	* graph/gblblit.c (GDST_CHANNELS): Redefined.
	(GDST_READ): Merged into...
	(GDST_PIX): Redefined.
	* graph/gblany.h (*): Major revisions.

54 55 56 57
2021-01-21  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/gblender.h (GBLENDER_CHANNEL_VARS): Squash reintroduced bug.

58 59 60 61
2021-01-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grfill.c (gr_fill_hline_4): Clean up.

62 63 64 65
2021-01-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Implement much faster vertical grid lines.

66
	* graph/grfill.c (gr_fill_hline_*): Accept pitch increment as
67 68 69
	additional argument and act accordingly.
	(grFillVLine, grFillHLine, grFillRect): Updated all callers.

70 71
2021-01-14  Alexei Podtelezhnikov  <apodtele@gmail.com>

72
	* graph/gblany.h (*): Blend a bit faster.
73

74 75 76 77 78 79 80 81 82
2021-01-14  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Check blending cache earlier.

	This slightly reworks commit bfbd78261beff2d6 by moving the cache
	check into the initialization functions. this is especially important
	to keep the direct span rendering light.

	* graph/gblany.h (*): Move the cache check from here...
83
	* graph/gblblit.c (gblender_blit_init, grSetTargetPenBrush): ... to
84
	here.
85
	* graph/gblender.h (GBLANDER_VARS, GBLENDER_CHANNEL_VARS): Restore old
86 87
	macros.

88 89 90 91 92 93 94 95
2021-01-14  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Reduce color conversions in the blender.

	* graph/gblblit.c (GDST_COPY_VAR): Removed.
	(GDST_PIX, GDST_CHANNEL): New macros to convert color.
	(grBlitGlyphToSurface, grSetTargetPenBrush): Pass `grColor' unchanged.
	* graph/gblany.h (*): Use new marcos here.
96 97
	* graph/gblblit.h (GBlenderBlitFunc): Accept `grColor'.
	* graph/grobjs.h (grSurface): Use `grColor'.
98

99 100 101 102 103 104
2021-01-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/gblany.h: Consolidate for easier editing.
	* graph/gblhbgr.h, graph/gblhrgb.h, graph/gblvbgr.h, graph/gblvrgb.h,
	graph/gblcolor.h, graph/gblbgra.h, graph/gblspans.h: Deleted.

105 106 107 108
2021-01-12  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftmulti.c (main): Fix crash.

109 110 111 112 113 114 115 116
2021-01-11  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Do not preset blending cache.

	* graph/gblender.c (gblender_init, gblender_use_channels):
	Use `gblender_clear' instead of...
	(gblender_reset): Removed.

117 118 119 120 121 122 123 124
2021-01-07  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Use faster Set/GetWindowLongPtr.

	* graph/win32/grwin32.c (Message_Process): s/SetProp/SetWindowLongPtr/
	and s/GetProp/GetWindowLongPtr/ essentially.
	(gr_win32_device_init, gr_win32_device_done): Get rid of `ourAtom'.

125 126 127 128 129 130 131
2021-01-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Use top-down DIBs.

	* graph/win32/grwin32.c (Message_Process): Tweak WM_PAINT.
	(gr_win32_surface_{init,resize}): Set negative `biHeight'.

132 133 134 135
2021-01-05  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/win32/grwin32.c (gr_win32_surface_init): Clean up.

136 137 138 139 140 141 142 143
2021-01-03  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Improve driver.

	* graph/win32/grwin32.c (gr_win32_surface_refresh_rectangle):
	Explicitly UpdateWindow to avoid delays and minor clean-up.
	(gr_win32_surface_listen_event): Minor clean-up.

Anuj Verma's avatar
Anuj Verma committed
144 145 146 147 148 149 150
2020-08-24  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] Add better usage section.

	* src/ftsdf.c (usage): New function.
	(main): Use it.

Anuj Verma's avatar
Anuj Verma committed
151 152 153 154 155 156 157
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	Add `ftsdf` to the build system.

	* Makefile (EXES): Add `ftsdf`.
	Add compile and link rules for `ftsdf`.

158 159 160 161 162 163
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[graph] Add function to pass custom color for writing headers.

	* graph/grfont.h, graph/grfont.c (grGotobitmapColor): New function.

Anuj Verma's avatar
Anuj Verma committed
164 165 166 167 168 169
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] Add main function.

	* src/ftsdf.c (main): New function.

Anuj Verma's avatar
Anuj Verma committed
170 171 172 173 174 175
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] Draw SDF to display.

	* src/ftsdf.c (clamp, smoothstep, draw): New function.

Anuj Verma's avatar
Anuj Verma committed
176 177 178 179 180 181
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] Handle window events.

	* src/ftsdf.c (Process_Event): New function.

182 183 184 185 186 187
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] Add function to display some information.

	* src/ftsdf.c (write_header): New function.

Anuj Verma's avatar
Anuj Verma committed
188 189 190 191 192 193 194
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] Handle some events.

	* src/ftsdf.c (event_font_update, event_color_change, event_help):
	New functions.

195 196 197 198 199 200
2020-08-22  Anuj Verma  <anujv@iitbhilai.ac.in>

	[ftsdf] New demo program to view SDF glyphs.

	* src/ftsdf.c: New file, with first templates.

201 202 203 204 205 206 207 208
2020-12-01  Priyesh Kumar  <priyeshkkumar@gmail.com>

	Synchronize with recent FreeType changes.

	* Makefile (FT_INCLUDES): Add `$(TOP_DIR)/src/dlg` to include 'dlg'
	header files.
	(LINK_LIBS): Add `-lpthread'.

209 210 211 212 213 214 215 216 217 218
2020-11-18  Werner Lemberg  <wl@gnu.org>

	[ftmulti]: Keys 'i' and 'I' now control the axis increment.

	* src/ftmulti.c (increment): New global variable.
	(Help): Updated.
	(Process_Event): Handle 'i' and 'I' keys.
	Update related code.
	(main): Show axis increment in header.

219 220 221 222 223 224
2020-11-18  Werner Lemberg  <wl@gnu.org>

	* src/ftmulti.c (main): Fix header re-display.

	The `header` string buffer must always be reset.

225 226 227 228 229
2020-11-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftcommon.c (FTDemo_Draw_Header): Always show encoding.

2020-11-13  Alexei Podtelezhnikov  <apodtele@gmail.com>
230 231 232

	* src/ftcommon.c (FTDemo_Get_Info): Improve formatting.

233 234 235 236 237 238 239
2020-11-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftstring] Add engine management.

	* src/ftview.c (Process_Event): Use `FTDemo_Hinting_Engine_Change'.
	(event_help): Document 'H'.

240 241 242 243 244 245 246
2020-11-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid] Simplify engine management.

	* src/ftview.c (Process_Event): Use `FTDemo_Hinting_Engine_Change'.
	(main): Remove engine accounting.

247 248 249 250 251 252 253 254
2020-11-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftview] Simplify engine management.

	* src/ftview.c (Process_Event): Use `FTDemo_Hinting_Engine_Change'.
	(write_header): Do not report engine and reformat to make more room.
	(main): Remove engine accounting.

255 256 257 258 259 260 261
2020-11-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Universal hinting engine switch.

	* src/ftcommon.[ch] (FTDemo_Hinting_Engine_Change): Implement it.
	(FTDemo_Get_Info): Minor.

262 263 264 265
2020-11-12  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftcommon.c (FTDemo_Get_Info): Simplify the code.

266 267 268 269
2020-11-10  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftmemchk.c: Remove internal dependency.

270 271 272 273 274 275 276
2020-11-10  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Revert 6ef15ce5aecc, FT_UNUSED is public again.

	* mac/ftoldmac.c, src/ftbench.c, src/ftchkwd.c, src/ftcommon.c:
	Do not need `compiler-macros.h'.

277 278 279 280 281 282 283
2020-11-10  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Add hinting info to the standard header.

	* src/ftcommon.c (FTDemo_Get_Info): Extract some driver settings.
	(FTDemo_Draw_Header): Report hinting and target info.

284 285 286 287
2020-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftmulti.c (Clear_Display): Use size_t.

288 289 290 291 292 293 294
2020-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid,ftmulti,ftdiff] Fix up layout for the larger font.

	* src/ftgrid.c (DO_DOTNUMBERS): Rely on GR_FONT_SIZE.
	* src/ftmulti.c, src/ftdiff.c: Use HEADER_HEIGHT equal to 12.

295 296 297 298 299 300 301
2020-11-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Switch to larger 8x14 font.

	* graph/grconfig.h (GR_FONT_SIZE): New option defined as 14.
	* graph/grfont.[ch]: Add another font size.

302 303 304 305 306
2020-11-05  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgamma.c (main): Enforce rgb24.

2020-11-05  Alexei Podtelezhnikov  <apodtele@gmail.com>
307 308 309

	* src/*, graph/*: s/unsigned int/size_t/ where appropriate.

310 311 312 313
2020-11-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/*.*: s/0/NULL/ where appropriate.

314 315 316 317
2020-11-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/*.*: Rearrange some headers.

318 319 320 321 322
2020-11-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ttdebug.c (Cur_U_Line, RunIns): Reset buffers explicitly.

2020-11-04  Werner Lemberg  <wl@gnu.org>
323 324 325 326 327 328

	[ttdebug] Fix typos introduced 2020-09-17.

	* src/ttdebug.c (display_changed_points): Use correct point arrays
	again.

329 330 331 332
2020-11-02  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grblit.c (blit_gray8_to_{555,565}): Fix color.

333 334 335 336 337 338 339 340
2020-11-02  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Add 15-bit mode to `gblblit'.

	No target depths left for legacy `grblit' except mono, pal4, pal8.

	* graph/gblblit.[ch]: Set up rgb555 target mode (instead of bgr565).

341 342 343 344 345
2020-10-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_surface_done): Free the bitmap here...
	* src/ftcommon.c (FTDemo_Display_Done): ... rather than here.

346 347 348 349 350 351 352
2020-10-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Fix PNG dump from 32-bit display.

	* src/ftcommon.c (FTDemo_Display_Print): The 32-bit mode needs
	transformations to account for endianness and skip the top byte.

353 354 355 356
2020-10-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/win32/grwin32.c (gr_win32_surface_init): Default to BITSPIXEL.

357 358 359 360 361 362 363 364 365 366 367 368 369 370 371
2020-10-27  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Let the driver set convenient depth.

	Let the driver change `gr_pixel_mode_none' to whatever depth is
	convenient and make that the default.  You can still force an
	alternative depth from the command line.

	* graph/batch/grbatch.c (gr_batch_surface_init): Default to rgb24.
	* graph/win32/grwin32.c (gr_win32_surface_init): Default to rgb32.
	* graph/x11/grx11.c (gr_x11_surface_init): Match the visual depth.

	* graph/graph.h (grNewSurface): Document `gr_pixel_mode_none' request.
	* src/ftcommon.c (FTDemo_Display_New): Use `gr_pixel_mode_none'.

372 373 374 375 376 377 378 379 380 381 382 383 384 385 386
2020-10-27  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/x11] Zero-copy 15/16/32-bit modes.

	We opportunistically rely on XPutImage that can perform minimal
	conversions if ZPixmap matches depth and bits_per_pixel.  We check if
	the requested 15/16/32-bit mode matches the visual format and send
	the data as is.

	* graph/x11/grx11.c (gr_x11_surface_init): Handle 15/16/32-bit modes.
	(gr_x11_surface_resize): Ditto.
	(gr_x11_surface_done): Unlink the data before `XDestroyImage'.
	(gr_x11_surface_refresh_rect): Check if conversion is requested.

2020-10-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
387 388 389 390 391 392 393 394

	[graph/win32] Zero-copy 15/16/32-bit modes.

	We can use the data in 15/16/32-bit formats directly without copying
	into a shadow buffer. It is only 24-bit mode that needs conversion
	rgb24 -> bgr24, back to little endian order typical for Windows.

	* graph/win32/grwin32.c (grWin32Surface): s/bgrBitmap/shadow_bitmap/.
395
	(gr_win32_surface_{init,resize,refresh_rect,done}): Handle it
396 397 398
	conditionally for rgb24 only, and link the data otherwise.
	(Message_Process): Updated.

399 400 401 402
2020-10-23  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.[ch]: Header clean-up.

403 404 405 406
2020-10-23  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grobjs.c (grNewBitmap): Add padding to 15/16-bit bitmaps.

407 408 409 410 411 412 413 414 415
2020-10-23  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Enable 15/16/32-bit modes.

	The rgb555 mode uses legacy blitting and is somewhat broken.

	* src/win32/grwin32.c (gr_win32_surface_refresh_rectangle,
	gr_win32_surface_init): Updated.

416 417 418 419 420 421 422 423 424 425 426 427 428
2020-10-22  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Rearrange 32-bit color.

	Both Windows and X11 interpret 32-bit color using masks rather than
	byte order. We ned to align with that.

	* graph.h (grColor): Update value type.
	* graph/grobjs.c (grFindColor),
	graph/grfill.c (gr_fill_hline_32),
	graph/gblblit.c (grSetTargetPenBrush),
	graph/grblit.c (blit_mono_to_rgb32): Updated.

429 430 431 432 433 434 435 436
2020-10-22  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] s/uint32/uint32_t/ and popularize it.

	* graph/grconfig.h: Define uint32_t here...
	* graph/x11/grx11.c: ...  instead of uint32 here and update all users.
	* graph/graph.h: Include "grconfig.h".

Werner Lemberg's avatar
Werner Lemberg committed
437 438 439 440 441 442 443 444 445 446 447
2020-10-20  Werner Lemberg  <wl@gnu.org>

	* Version 2.10.4 released.
	==========================


	Tag sources with `VER-2-10-4.

	* README: Updated.
	* man/*.1: Updated.

448 449 450 451
2020-10-19  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftcommon.c (FTDemo_Icon): Decrease the glyph height.

452 453 454 455 456 457 458 459
2020-10-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Explicitly use BITMAPINFO.

	* graph/win32/grwin32.c (grWin32Surface): Replace `pbmi' and `bmi'
	with `bmiHeader' and `bmiColors'.
	(gr_win32_surface_{init,resize}, Message_Process): Updated.

460 461 462 463 464
2020-10-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/strbuf.c (strbuf_init): Adjust to fix `FTDemo_Version'.
	* src/ftcommon.[ch] (FTDemo_Version): Clarify argument.

465 466 467 468 469 470 471
2020-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid,ftview,ftstring] Add icons.

	* src/ftcommon.[ch] (FTDemo_Icon, icon_span): Draw and set icons.
	* src/ftgrid.c, src/ftview.c, src/ftstring.c (main): Add icons.

472 473 474 475 476 477 478 479
2020-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Icon support.

	* graph/win32/grwin32.c (gr_win32_surface_set_icon): Implement it.
	(gr_win32_surface_init): Initialize the driver backend.
	(gr_win32_surface_done): Destroy icons.

480 481 482 483 484 485 486
2020-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/x11] Icon support.

	* graph/x11/grx11.c (gr_x11_surface_set_icon): Implement it.
	(gr_x11_surface_init): Initialize the driver backend.

487 488 489 490 491 492 493 494 495
2020-10-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Icon support framework.

	* graph/grdevice.c (grSetIcon): Define new function.
	* graph/graph.h (grSetIcon): Declare it.
	* graph/grobjs.c (grSetIconFunc): Declare the driver backend.
	(grSurface): Add it.

496 497 498 499
2020-10-11  Werner Lemberg  <wl@gnu.org>

	* src/ftmemchk.c: Include `compiler-macros.h'.

Werner Lemberg's avatar
Werner Lemberg committed
500 501 502 503 504 505 506 507 508 509 510
2020-10-10  Werner Lemberg  <wl@gnu.org>

	* Version 2.10.3 released.
	==========================


	Tag sources with `VER-2-10-3.

	* README: Updated.
	* man/*.1: Updated.

511 512 513 514
2020-09-29  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgrid.c (event_grid_zoom): Pretty scale formatting.

515 516 517 518 519 520 521 522 523 524 525 526 527 528 529
2020-09-29  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid] Implement reversible floating zoom.

	The floating zoom is neccessary to display extremely large sizes
	after scaling them down, but it has to stay rounded to integers when
	displaying grids and bitmaps for small sizes. All this can be
	achievied by truncating and bit-adjusting numbers in IEEE 754 format.
	To make it portable too, we rely on C99 `frexpf' and `ldexpf'.

	* src/ftgid.c (status): Change type of `scale'.
	(ZOOM, grid_status_init, grid_status_rescale,
	grid_status_draw_{grid,outline}): Updated accordingly.
	(event_grid_zoom): Implement truncated reversible zoom.

530 531 532 533
2020-09-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgrid.c (ZOOM, *): Macro to zoom metrics.

534 535 536 537
2020-09-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgrid.c (grid_status_rescale): Move and rename.

538 539 540 541 542 543 544 545 546 547 548 549 550 551
2020-09-17  Werner Lemberg  <wl@gnu.org>

	[ttdebug] Introduce 64th format for displaying values.

	* src/ttdebug.c (FORMAT_INTEGER, FORMAT_FLOAT, FORMAT_64TH): New
	enum values.
	(use_float): Global variable replaced by...
	(num_format): ... this one.  Update all caller.
	(print_number): New function.
	(display_changed_points, show_points_table): Use it.
	(RunIns) <'h'>: Update help screen.
	(RunIns) <'F'>: Replace toggling by cycling.
	(RunIns) <'V'>, <'G'>, <'C'>, <'S'>, <'K'>: Updated.

552 553 554 555 556 557 558 559 560 561 562 563
2020-09-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftbench] Permit reverse order of indices.

	Some compressed streams are really bad in rewinding.

	* src/ftbench.c (FOREACH): General loop in either direction.
	(test_*): Use it.
	(main): Parse forward and reverse index ranges.
	(usage): Document it.
	* man/ftbench.1: Ditto.

564 565 566 567 568
2020-09-16  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/*: Fix some -Wformat-signedness warnings.

2020-09-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
569 570 571

	* src/ftgrid.c (grid_status_rescale_initial): Deal with low ascender.

572 573 574 575
2020-08-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgrid.c (Process_Event): Rescale after resize.

Werner Lemberg's avatar
Werner Lemberg committed
576 577 578 579 580 581 582
2020-08-22  Werner Lemberg  <wl@gnu.org>

	ttdebug: Make it work again.

	* src/ttdebug.c (temqStr): New global array.
	(RunIns): Use it.

583 584 585 586 587 588
2020-08-21  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grevents.h (grKey): Recode function keys as 0xF1, etc.

	Use bash ANSI-C quoting $'\xF1' to pass them from the command line.

589 590 591 592 593 594 595 596 597
2020-08-21  Werner Lemberg  <wl@gnu.org>

	Improve help for command line option `-d'.

	* src/ftgrid.c, src/ftstring.c, src/ftview.c (usage): Depth value is
	optional.

	* man/ftgrid.1, man/ftstring.1, man/ftview.1: Updated.

598 599 600 601
2020-08-21  Werner Lemberg  <wl@gnu.org>

	* src/ftcommon.c (FTDemo_Version): Correctly call `strbuf_init'.

602 603 604 605 606 607 608 609
2020-07-27  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftdump] Report flagged overlaps.

	* src/ftdump.c (Print_Glyfs): New function to count simple and
	composite glyphs and report flagged overlaps.
	(main): Use it along with glyph count earlier.

610 611 612 613 614 615 616 617 618 619 620
2020-07-24  Werner Lemberg  <wl@gnu.org>

	Make new code from David work.

	* src/strbuf.c (strbuf_value): Fix assertion.
	(strbuf_vformat): Shortcut if no space is available.
	Set `pos'.

	* src/ftcommon.c (FTDemo_Draw_Header): Add missing call to
	`strbuf_skip_over'.

621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637
2020-07-24  David Turner  <david@freetype.org>

	Use new string functions to replace remaining `sprintf' calls.

	This also removes calls to `strncat' and friends.

	* src/ftcommon.c: Include `strbuf.h'.
	(FTDemo_Version, FTDemo_DrawHeader): Do it.

	* src/ftmulti.c: Include `strbuf.h'.
	(main): Do it.

	* src/ttdebug.c: Include `strbuf.h'.
	(tempStr): Increase size to 256 bytes.
	(Cur_U_Line): Do it.
	(RunIns): Make `round_str' static.

638 639 640 641 642 643 644 645 646 647
2020-07-24  David Turner  <david@freetype.org>

	Add functions to safely append strings to fixed-size buffers.

	Not used yet.

	* src/strbuf.c, src/strbuf.h: New files.

	* Makefile: Updated to compile `strbuf.c'.

648 649 650 651
2020-07-24  David Turner  <david@freetype.org>

	* src/ftcommon.c (my_face_requester): Improve code readability.

David Turner's avatar
David Turner committed
652 653 654 655 656 657 658 659 660 661 662 663 664 665
2020-07-24  David Turner  <david@freetype.org>

	Add `ft_strdup' function.

	This simplifies compilation on Windows, which doesn't have this
	function.

	* src/common.c: Include `ftstring.h'.
	(ft_strdup): New function.
	* src/common.h: Updated.

	* src/ftcommon.c (FTDemo_Install_Font), src/ftdiff.c
	(render_state_set_files): Use it.

666 667 668 669 670 671 672
2020-07-24  David Turner  <david@freetype.org>

	* src/*: Replace simple usage of `sprintf' with `snprintf'.

	Recent gcc compiler versions produce warnings for potentially unsafe
	functions like `sprintf'.

673 674 675 676 677 678 679 680
2020-07-06  Werner Lemberg  <wl@gnu.org>

	Synchronize with recent FreeType changes.

	* mac/ftoldmac.c, src/ftbench.c, src/ftchkwd.c, src/ftcommon.c:
	Include `compiler-macros.h', which now contains the definition of
	`FT_UNUSED'.

681 682 683 684
2020-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c (event_color_change): Cycle color by luminance.

685 686 687 688 689
2020-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (grX11Surface): Remove redundant fields.
	(gr_win32_surface_{refresh_rectangle,listen_event}): Updated.

690 691 692 693 694 695 696
2020-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Clean up refresh.

	* graph/win32/grwin32.c (gr_win32_surface_refresh_rectangle): Copy
	only requested rectangle, remove dead code.

697 698 699 700
2020-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_device_init): Fix up 03707489a839.

701 702 703 704 705 706 707 708 709 710
2020-06-24  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Grayscale fixes.

	* graph/win32/grwin32.c (gr_win32_surface_init): Straighten mapping.
	(gr_win32_surface_refresh_rectangle): Use `memcpy'.

	* graph/grobjs.c (grNewBitmap): Add padding to gray required by GDI.

2020-06-24  Alexei Podtelezhnikov  <apodtele@gmail.com>
711 712 713 714

	* graph/grobjs.c (grFindColor): Fortify gray luminance.
	* graph/gblblit.c (GRGB*_TO_GRAY8): Synchronize with `grFindColor'.

715 716 717 718 719 720 721 722
2020-06-24  Jan Alexander Steffens  <jan.steffens@gmail.com>

	* Makefile (COMPILE): Prioritize FreeType path.

	This ensures the includedir for the built FreeType comes first,
	before any flags for a system FreeType which might be pulled in
	through pkg-config for harfbuzz.

723 724 725 726
2020-06-20  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_device_init): Prioritize 32-bit formats.

727 728 729 730 731
2020-06-20  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_convert_*): Clean up `uint32'.
	(gr_x11_device_init): Display logging.

732 733 734 735 736 737 738 739
2020-06-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/x11] Ignore redundant Expose from resizing.

	* graph/x11/grx11.c (gr_x11_surface_init): Enable VisibilityNotify.
	(gr_x11_surface_listen_event): Track recent Expose events and ignore
	redundant ones.

740 741 742 743 744 745 746 747 748
2020-06-16  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/x11] Miscellaneous clean-ups.

	* graph/x11/grx11.c (gr_x11_surface_refresh_rect): Generate Expose
	instead of `XPutImage'.
	(gr_x11_blitter_reset): Signedness.
	(gr_x11_surface_listen_event): Logging.

749 750 751 752 753 754 755 756 757
2020-06-12  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Simplify X11 driver.

	* graph/x11/grx11.c (grX11Surface): Remove redundant fields.
	(gr_x11_blitter_reset, gr_x11_surface_{resize,init}): Work directly
	with `XImage'.
	(gr_x11_surface_listen_event): Make sure resize succeeds.

758 759 760 761 762 763
2020-06-11  David Turner  <david@freetype.org>

	*/*: Include internal headers by their real names.

	The FT_INTERNAL_XXX_H macros are going to disappear.

764 765 766 767
2020-06-09  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_surface_listen_event): No need to flush.

768 769 770 771 772
2020-06-07  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftmulti.c (Process_Event) Handle resizing.
	* src/ftdiff.c (main): Ditto.

773 774 775 776 777 778 779 780 781 782
2020-06-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Fix color management bugs including `ftmulti'.

	* graph/gblblit.c (grSetTargetPenBrush): New function to manage color
	and other parameters required for direct rendering.
	(grBlitGlyphToSurface): Use it here to decode color only.
	* src/ftcommon.h (FTDemo_Sketch_Glyph_Color): Use it here in full.
	* graph/graph.h: Update docs.

783 784 785 786 787 788
2020-06-01  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid,ftstring,ftview] Avoid uninitialized `event.type'.

	* src/ftgrid.c, src/ftstring.c, src/ftview.c (Process_Event): Updated.

789 790 791 792
2020-06-01  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgamma.c (event_gamma_grid): Fix oscure resizing crash.

793 794 795 796
2020-05-31  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c (Process_Event): Process resizing.

797 798 799 800
2020-05-31  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_surface_init): Remove some settings.

801 802 803 804 805 806 807 808 809 810 811 812
2020-05-31  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/win32] Miscellaneous clean-ups.

	* graph/win32/grwin32.c
	(gr_win32_surface_refresh_rect): Don't `UpdateWindow' and move
	`ShowWindow' from here...
	(gr_win32_surface_init): ... to here.
	(gr_win32_surface_listen_event): Make sure size really changes and
	move `SetWindowText' from here...
	(gr_win32_surface_set_title): ...to here.

813 814 815 816
2020-05-29  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftdump.c (Print_Name): Fix timestamps on Windows.

817 818
2020-05-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

819
	* src/ftgamma.c: Center and clip the bitmap to fix resizing.
820

821 822 823 824 825 826 827
2020-05-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph/x11] Stop double-dealing BackSpace, Tab, Return, and Esc.

	* graph/x11/grx11.c (gr_x11_surface_listen_event): Do not reset the
	cursor prematurely.

828 829 830 831 832
2020-05-27  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_surface_init): Register WM_DELETE_WINDOW.
	(gr_x11_surface_listen_event): Handle it to exit gracefully.

833 834 835 836
2020-05-27  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (grX11Surface): Remove unused field.

837 838 839 840 841 842 843 844 845 846
2020-05-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Rework GDI message handling.

	* graph/win32/grwin32.c (WM_RESIZE): New custom message.
	(gr_win32_surface_listen_event): Simplify and handle keystroke events
	and window resizing here.
	(grWin32Surface): Remove no longer neccessary fields.
	(Message_Process): Handle WM_PAINT and post WN_RESIZE as needed.

847 848 849 850 851
2020-05-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grevents.c (grKey): Utilize some ASCII control codes.

2020-05-26  Alexei Podtelezhnikov  <apodtele@gmail.com>
852 853 854 855 856 857 858 859 860

	[graph] Use size_t in memory allocations, handle zero-size bitmap.

	* graph/grblit.c, graph/grdevice.c, graph/grdevice.h,
	graph/x11/grx11.c: s/unsigned long/size_t/
	* graph/grobjs.h: Ditto and inclide <stdlib.h>
	* graph/grobjs.c (grAlloc): Ditto.
	(grNewBitmap): Handle zero height or width.

861 862 863 864
2020-05-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grfill.c (grFillRect): Small bug.

865 866 867 868 869 870 871 872
2020-05-21  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Implement resizable GDI windows.

	* graph/win32/grwin32.c (gr_win32_surface_resize): Implement resizing.
	(Nessage_Process): Add WM_SIZE handling.
	(gr_win32_surface_init): Change window style and streamline.

873 874 875 876
2020-05-21  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Clean up win32 driver.

877
	This removes `BitBlt' and a related bitmap copy. Instead the driver
878 879 880 881 882 883 884 885 886 887 888
	now uses direct `SetDIBitsToDevice' which is similar to `XPutImage'.

	* graph/win32/grwin32.c (grWin32Surface): Remove `hbn'.
	(gr_win32_surface_refresh_rectangle): Do not call `SetDIBits'.
	(Message_Process): Use `SetDIBitsToDevice' in WM_PAINT and do not
	handle WM_CREATE and simplify WM_DESTROY.
	(gr_win32_surface_init): Remove unnecessary code.
	(gr_win32_surface_listen_event): Minor.

	* graph/grobjs.c (grNewBitmap): Add padding to rgb24 required by GDI.

889 890 891 892 893 894 895 896 897 898 899 900
2020-05-19  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph]: Implement resizable X11 windows.

	* graph/grevents.h (gr_event_resize): New event defined.
	* graph/x11/grx11.c (gr_x11_surface_init): Configure window.
	(gr_x11_surface_listen_event): Capture resizing events.
	(gr_x11_surface_resize): Implement resizing.

	* src/ftview.c (Process_Event): Redraw on resizing.
	* src/ftgrid.c (Process_Event): Ditto.

901 902 903 904 905 906 907 908
2020-05-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grobjs.c (grNewBitmap): Implement bitmap resizing.
	* graph/graph.h (grNewBitmap): Document it.

	* graph/grdevice.c (grNewSurface): Prevent accidental resizing.
	* graph/win32/grwin32.c: Ditto.

909 910 911 912
2020-05-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_device_init): Remove one nested cycle.

913 914 915 916 917 918 919 920
2020-05-01  David Turner  <david@freetype.org>

	Remove obsolete Jamfiles from the tree.

	These are not used anymore.

	* Jamrules, src/Jamfile, graph/Jamfile, graph/*/Jamfile: Delete.

921 922 923 924
2020-05-16  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_device_init): Reduce nesting and clean up.

925 926 927 928
2020-05-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftcommon.c (FTDemo_Display_Gamma_Change): Improve readability.

929 930 931 932 933 934 935 936 937
2020-05-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftview,ftstring,ftgrid] Unify gamma adjustments.

	* src/ftcommon.[ch] (FTDemo_Display_Gamma_Change): New function to
	adjust gamma with sRGB between 2.2 and 2.3.
	* src/ftview.c, src/ftstring.c, src/ftgrid.c (Process_Event): Use it.

2020-05-11  Alexei Podtelezhnikov  <apodtele@gmail.com>
938 939 940 941 942 943 944 945

	[ftview] Keep custom LCD filters normalized and balanced.

	Unorthodox filters are still available through the `-L' option.

	* src/ftview.c (event_fw_change): New function with distributed delta.
	(Process_Event): Updated.

946
2020-05-09  Alexei Podtelezhnikov  <apodtele@gmail.com>
947 948 949

	* src/ftcommon.c (FTDemo_Install_Font): Remove unused buffer.

Werner Lemberg's avatar
Werner Lemberg committed
950
2020-05-09  Werner Lemberg  <wl@gnu.org>
Werner Lemberg's avatar
Werner Lemberg committed
951 952 953 954 955 956 957 958 959 960 961

	* Version 2.10.2 released.
	==========================


	Tag sources with `VER-2-10-2.

	* README: Updated.
	* man/*.1: Updated.
	* src/ftinspect/ftinspect.pro: Updated.

962 963 964 965 966
2020-05-08  Werner Lemberg  <wl@gnu.org>

	* src/ftdump.c (main): Fix thinko introduced in commit from
	2020-05-01.

967 968 969 970
2020-05-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* ftcommon.c (FTDemo_Draw_Header): Right-flush filename.

971 972 973 974
2020-05-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Move man pages: src/*.1 -> man/*.1

975 976 977 978
2020-05-03  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* Makefile (unixdev): Do not call pkg-config repeatedly.

979 980 981 982
2020-05-01  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* Makefile (FT_INCLUDES): Remove redundant BUILD_DIR.

983 984 985 986 987 988 989 990 991 992 993 994 995 996
2020-05-01  David Turner  <david@freetype.org>

	Fix compilation warnings (#58257).

	* graph/x11/grx11.c (gr_x11_surface_listen_event): Change return
	type of to match the expected type.

	* src/compos.c, src/ftchkwd.c, src/ftdump.c, src/ftlint.c,
	src/ftmemchk.c, src/ftsbit.c, src/fttimer.c, src/fttry.c (main):
	Remove problematic uses of `strncpy' and replace them with
	`snprintf', which takes the size of the target buffer.

	Remove un-needed uses of the `alt_filename' array.

997 998 999 1000 1001
2020-04-16  Anuj Verma  <anujv@iitbhilai.ac.in>

	* Makefile (FT_INCLUDES): Remove configuration directory since
	its content is included by `ft2build.h'.

1002 1003 1004 1005
2020-04-16  Werner Lemberg  <wl@gnu.org>

	* Makefile (CC) [unix]: Synchronize with recent change in FreeType.

1006 1007 1008 1009
2020-04-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* Makefile (COMPILE): ... and remove defines.

Anuj Verma's avatar
Anuj Verma committed
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021
2020-04-14  Anuj Verma  <anujv@iitbhilai.ac.in>

	Fix compilation under Windows.

	* Makefile (FT_INCLUDES): Add configuration directory.  Without
	that, the file `ftoption.h' that is added to the $(COMPILE) variable
	gets found only if it is located in $(DEVEL_DIR), this is, if we do
	a `make devel' build.

	* graph/win32/rules.mk: s/win32/windows/ to synchronize test for
	Windows platform with FreeType's build system.

1022 1023 1024 1025 1026 1027 1028 1029 1030 1031
2020-03-08  Thomas E. Dickey  <dickey@invisible-island.net>

	[ftdump] Show max-advance width/height and underline info.

	Also reformat output to account for these wider labels.

	* src/ftdump.c (Name_Field): New function.
	(Print_Number_Type): New macro.
	(Print_Name, Print_Type, main): Updated.

1032 1033 1034 1035
2019-12-23  Werner Lemberg  <wl@gnu.org>

	* src/ftcommon.c (FTDemo_Display_Print): Fix compiler warning.

1036 1037
2019-12-23  Noel Benzinger  <noelbenzinger@gmail.com>

Werner Lemberg's avatar
Minor.  
Werner Lemberg committed
1038
	* src/Jamfile (Library): Add `mlgetopt.c' as a dependency (#57466).
1039

1040 1041 1042 1043 1044 1045 1046
2019-09-27  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftstring] Standalone stroker test.

	* src/string.c (dinkus_init): Stroke an open path.
	(main, Render_String): Use it.

1047 1048
2019-09-27  Werner Lemberg  <wl@gnu.org>

1049
	* src/ftdump.c (Print_Programs): Check glyf offset and length.
1050 1051 1052

	Problem reported by Marc Schönefeld <marc.schoenefeld@gmx.org>.

1053 1054 1055 1056 1057
2019-09-23  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftbench.c (test_stroke): Implement stroker test.
	(FT_BENCH_STROKE, bench_desc, main): Register it.

1058 1059 1060 1061 1062 1063 1064 1065
2019-09-20  Werner Lemberg  <wl@gnu.org>

	* graph/x11/grx11.c (gr_x11_surface_init): Initialize `xswa'.

	This removes two valgrind warnings about

	  Conditional jump or move depends on uninitialised value(s)

1066 1067 1068 1069 1070 1071
2019-08-27  Werner Lemberg  <wl@gnu.org>

	* Makefile (PLATFORM==unixdev): Add `libbrotlidec'.

	This is needed for the new WOFF2 support.

Werner Lemberg's avatar
Werner Lemberg committed
1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083
2019-07-01  Werner Lemberg  <wl@gnu.org>

	* Version 2.10.1 released.
	==========================


	Tag sources with `VER-2-10-1.

	* README: Updated.
	* src/*.1: Updated.
	* src/ftinspect/ftinspect.pro: Updated.

1084 1085 1086 1087
2019-07-01  Werner Lemberg  <wl@gnu.org>

	* graph/x11/grx11.c (gr_x11_surface_init): Fix C++ warnings.

1088 1089 1090 1091 1092
2019-06-25  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftgrid.c (bitmap_scale): Gray alternative to LCD bitmap...
	(Process_Event): ... after repeated bitmap toggles.

1093 1094 1095 1096 1097 1098 1099 1100
2019-06-20  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid] Tweak direct rendering.

	* src/ftcommon.c (FT_Demo_Sketch_Glyph_Color): Redefine surface origin
	and clipping box instead of shifting outline.
	* src/ftgrid.c (grid_status_draw_outline): Tweaked.
	* graph/gblspans.h: Simplify.
1101
	* graph/grobjs.h (grSurface): Introduce `origin' byte.
1102 1103
	* graph/gblblit.c: Silence compilation warning.

1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114
2019-06-19  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid] Direct outline drawing.

	Now we can test `FT_RASTER_FLAG_DIRECT' and it is also faster because
	the glyph outline image is extremely sparse.

	* src/ftcommon.[hc] (FTDemo_Sketch_Glyph_Color): Implement rendering
	in direct mode.
	* src/ftgrid.c (grid_status_draw_outline): Use it.

1115 1116 1117 1118 1119
2019-06-19  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Implement and register gray_span function.

	* graph/gblspans.h, graph/gblany.h (_gblender_spans_*): New functions.
1120
	* graph/grobjs.h (grSurface): New fields `gray_spans' and `gcolor'.
1121 1122 1123
	* graph/gblblit.c (grSetSurfaceGamma): Initialize `gray_spans'.
	* graph/rules.mk: Add new file.

1124 1125 1126 1127 1128 1129 1130 1131
2019-06-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Clearly separate two blenders.

	* graph/gblblit.[hc] (grBlitGlyphToSurface): Declare and define it.
	* graph/grblit.c (grBlitGlyphToBitmap): Call `grBlitGlyphToSurface'.
	* graph/gblender.c: Minor.

1132 1133 1134 1135 1136 1137
2019-06-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftmulti.c (bit): Surface bitmap must belong to surface.
	* graph/graph.h (grBlitGlyphToBitmap): Clarify documentation.
	* graph/grdevice.c (grNewSurface): Initialize default blender.

1138 1139 1140 1141
2019-06-17  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/*/rules.mk: Add missing dependency.

1142 1143 1144 1145 1146 1147
2019-06-16  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grblit.c (grBlitGlyphToBitmap): Move code from here...
	* graph/gblblit.c (gblender_blit_init): ... to here.
	* graph/gblblit.h: Updated.

1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160
2019-06-15  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Relocate `gblender' to `grSurface'.

	This will be needed for direct rendering and simplifies gamma setting.

	* graph/grobjs.h (grSurface): Put `bitmap' on top, add `gblender'.
	* graph/graph.h: s/grSetGlyphGamma/grSetTargetGamma/.
	* graph/grblit.c (grSetTargetGamma): Move `gblender_init' here...
	(grBlitGlyphToBitmap): ...from here.
	* src/ftcommon.c (FTDemo_Display_New): Call `grSetTargetGamma'.
	* src/ft{diff,grid,string,view,multi}.c: Updated.

1161 1162 1163 1164 1165 1166
2019-06-14  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/gblblit.c (gblender_blit_init): Switch to lookup table.
	* graph/gblany.h: Updated.

2019-06-12  Alexei Podtelezhnikov  <apodtele@gmail.com>
1167 1168 1169 1170

	* src/ttdebug.c (RunIns): Return error like `TT_RunIns'.
	(Abort): Add error messages.

1171 1172 1173 1174 1175 1176 1177 1178 1179
2019-06-11  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Fix compilation warnings.

	* src/ft{lint,dump}.c (main): Null-terminate `strncpy'.
	* src/ttdebug.c (main): Reluctantly ditto.

	* src/mlgetopt.c (getopt): Suppress the dropped `const' warning.

1180 1181 1182 1183
2019-06-10  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/mlgetopt.c (getopt): Permit merged option-argument pairs.

1184 1185 1186 1187 1188 1189
2019-06-09  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ft{view,grid,string}.c (parse_cmdline): Generalize batch mode...
	(usage): ... and mention it.
	* src/ft{view,grid,string}.1: s/end/contain/.

1190 1191 1192 1193
2019-06-09  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/batch/grbatch.c (gr_batch_surface_refresh_rect): Remove.

1194 1195
2019-06-09  Alexei Podtelezhnikov  <apodtele@gmail.com>

1196
	* src/ftcommon.[hc] (FTDemo_Display_Print): Use `const' qualifier.
1197 1198 1199 1200 1201
	* src/ftdump.c (Print_Bytecode): Ditto.
	* src/ftmulti.c (new_header): Ditto.
	* src/ftstring.c (header): Ditto.
	* src/ft{view,grid,string}.c (Process_Event): Updated.

Werner Lemberg's avatar
Werner Lemberg committed
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211
2019-06-07  Werner Lemberg  <wl@gnu.org>

	Fix compilation warnings.

	Also do some minor formatting.

	* graph/batch/grbatch.c: Suppress warnings about unused variables.

	* src/*: Suppress warnings about dropping `const'.

1212 1213 1214 1215 1216 1217 1218 1219 1220
2019-06-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid,ftview,ftstring] Enable batch mode.

	* src/ftcommon.[hc] (FTDemo_Display_New): Pass `device' argument.
	* src/{ftview,ftstring,ftgrid}.c (status): New `device' field.
	(parse_cmdline): Enable batch mode if keys end with `q'.
	* src/{ftview,ftstring,ftgrid}.1: Document it.

1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231
2019-06-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] New batch device.

	This driver maintains the image in memory without displaying it,
	useful for batch processing without GUI.

	* graph/batch/grbatch.[hc]: New implenetation files.
	* graph/batch/rules.mk: Makefile with unconditinal compilation.
	* graph/grinit.c (GR_INIT_DEVICE_CHAIN): Add the driver at the tail.

1232 1233 1234 1235 1236 1237 1238 1239 1240 1241
2019-06-05  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[graph] Stay true to linked lists.

	* graph/grinit.c (grInitDevices, grDoneDevices): Properly walk and
	delete entries from the linked list `gr_device_chain'.
	* graph/grdevice.c (find_device): Ditto.
	* graph/grdevice.h (gr_num_devices, gr_max_devices): Removed.
	* graph/grconfig.h (GR_MAX_DEVICES): Ditto.

1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252
2019-06-03  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid,ftview,ftstring] Implement PNG printing.

	* src/ftcommon.[hc] (FT_Display_Print): New function.
	* src/{ftgrid,ftview,ftstring}.c (Process_Event): New event.

	* Makefile: Compile with appropriate <ftoption.h> so that
	FT_CONFIG_OPTION_USE_PNG status is inherited from the library build
	and based on the libPNG avalability.

1253 1254 1255 1256 1257 1258 1259
2019-06-01  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftgrid,ftview,ftstring] Consolidate versioning.

	* src/ftcommon.[ch] (FTDemo_Version): New function.
	* src/{ftgrid,ftview,ftstring}.c (parse_cmdline, event_help): Use it.

1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271
2019-05-24  Werner Lemberg  <wl@gnu.org>

	[ttdebug] Add option `-d' to select variation font instance.

	* src/ttdebug.c: Include `ctype.h'.
	(requested_pos, requested_cnt): New global variables.
	(parse_design_coords): New auxiliary function.
	(Usage): Updated.
	(main): Handle option`-d'.

	* src/ttdebug.1: Updated.

1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282
2019-05-22  Werner Lemberg  <wl@gnu.org>

	[ttdebug] New key `O' to show opcode help string.

	Also add key `H' to show help on the formatting of data.

	* src/ttdebug.c (OpStrDoc): New global array.
	(RunIns) <'h'>: Move help on format of value changes to...
	<'H'>: ... this key.  Also describe format of opcode syntax.
	<'O'>: Show opcode help string.

1283 1284 1285 1286 1287 1288 1289 1290 1291
2019-05-22  Werner Lemberg  <wl@gnu.org>

	[ttdebug] Add support for GETVARIATION and GETDATA opcodes.

	* src/ttdebug.c: Include FT_MULTIPLE_MASTERS_H.
	(multimaster): New global variable.
	(OpStr): Updated.
	(main): Call `FT_Get_MM_Var' to initialize MM support.

1292 1293 1294 1295 1296
2019-05-22  Werner Lemberg  <wl@gnu.org>

	* src/ttdebug.c (OpStr): Improve opcode mnemonics.

2019-05-22  Alexei Podtelezhnikov  <apodtele@gmail.com>
1297 1298 1299 1300 1301 1302 1303 1304 1305

	[ftview,ftstring,ftgrid] Add keystroke emulator.

	* src/{ftview,ftstring,ftgrid}.c
	(parse_cmdline): New option to pass keystroke sequence.
	(Process_Event): Consume keystrokes from buffer before listening.
	(usage): Document it.
	* src/{ftview,ftstring,ftgrid}.1: Document it.

1306
2019-05-21  Alexei Podtelezhnikov  <apodtele@gmail.com>
Alexei Podtelezhnikov's avatar
Alexei Podtelezhnikov committed
1307 1308 1309

	Prepare for scripting.

1310
	* src/{ftview.c,ftstring.c,ftgrid.c,ftmulti.c,ftgamma.c}
Alexei Podtelezhnikov's avatar
Alexei Podtelezhnikov committed
1311 1312
	(main, Process_Event): Consolidate event handling.

Werner Lemberg's avatar
Werner Lemberg committed
1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329
2019-04-28  Werner Lemberg  <wl@gnu.org>

	[ftmulti] Add axis grouping.

	If axis grouping (key `A') is active, hidden axes that have the same
	name tag as a visible one are not displayed.  Additionally they
	receive the same values as the corresponding visible axis.

	* src/ftmulti.c (grouping, hidden, shown_axes, num_shown_axes): New
	global variables.
	(set_up_axes): New function to group axes.
	(Render_All, Render_Text, Help): Updated.
	(Process_Event): Handle key `A'.
	Handle grouping of axis values.
	(main): Initialize `shown_axes' and `hidden'; call `set_up_axes'.
	Update code to display axes tags.

1330 1331 1332 1333
2019-04-26  Werner Lemberg  <wl@gnu.org>

	* src/ftmulti.c (Help, main): Mark hidden axes with an asterisk.

1334 1335 1336 1337
2019-04-26  Werner Lemberg  <wl@gnu.org>

	* src/ftmulti.c: Various minor clean-ups.

1338 1339 1340 1341 1342 1343
2019-04-06  Werner Lemberg  <wl@gnu.org>

	For distribution, replace `.tar.bz2' with `.tar.xz' bundles.

	* Makefile (dist): Do it.

Werner Lemberg's avatar
Werner Lemberg committed
1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361
2019-03-15  Werner Lemberg  <wl@gnu.org>

	* Version 2.10.0 released.
	==========================


	Tag sources with `VER-2-10-0.

	* README: Updated.
	* src/*.1: Updated.
	* src/ftinspect/ftinspect.pro: Updated.

	* Makefile (version, winversion): Since the minor version number has
	two digits now, never omit the patch number.  We would get ambiguous
	zip file names otherwise.

	* src/ftdump.c (main): Avoid compiler warning.

1362 1363 1364 1365
2019-03-07  Werner Lemberg  <wl@gnu.org>

	* src/ttdebug.c (RunIns): Fix signature.

1366 1367 1368 1369 1370 1371 1372
2019-02-24  Werner Lemberg  <wl@gnu.org>

	[ftview] Fix LCD rendering of color-layered glyphs.

	* src/ftview.c (Render_All): Always use normal rendering for
	color-layered glyphs.

1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390
2019-02-23  Werner Lemberg  <wl@gnu.org>

	[ftview] Add more control for color-layered glyphs.

	Key `z' toggles color-layered glyph usage.
	Keys `i' and `I' cycle through color palettes.

	* src/ftcommon.h (TFont): Add `palette_index' field.
	(FTDemo_Handle): Add `use_layers' field.
	* src/ftcommon.c (FTDemo_New, FTDemo_Install_Font): Initialize new
	structure elements.

	* src/ftview.c (Render_All): Select palette; use `use_layers'.
	(event_help): Updated.
	(event_palette_change): New function.
	(Process_Event): Handle keys `z', `i', and `I'.
	(write_header): Updated.

Werner Lemberg's avatar
Werner Lemberg committed
1391 1392 1393 1394 1395 1396 1397
2019-02-22  Werner Lemberg  <wl@gnu.org>

	Minor doc string fixes.

	* src/ftgrid.c (usage), src/ftstring.c (usage), src/ftview.c
	(event_help, usage): Improve.

1398 1399 1400 1401 1402 1403 1404 1405 1406 1407
2018-11-18  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftdiff] Tweak adjustment of spacing.

	Align with b82405eda. We want to avoid changing or adjusting usual
	rounding of advances.

	* src/ftdiff.c (render_state_draw): Tweak conditionals.

2018-10-28  Alexei Podtelezhnikov  <apodtele@gmail.com>
1408 1409 1410

	* src/ftdump.c (Print_Name): Ignore exuberant timestamps.

1411 1412 1413 1414
2018-10-28  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftdump.c (Print_Name): Use ISO 8601 datestamps.

1415 1416 1417 1418
2018-10-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftdump.c (Print_Name): Report `head' revision and timestamps.

1419 1420 1421 1422
2018-10-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftdump.c (Print_Charmaps): Rework without \b.

1423 1424 1425 1426 1427
2018-10-06  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftcommon.c (FTDemo_String_Draw): Avoid endless loop.
	* src/ftstring.c (main): Don't disable sbits.

1428 1429 1430 1431 1432
2018-10-04  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c (Render_Waterfall): Color the size marks.
	(event_color_change): Manipulate the warning color.

1433 1434 1435 1436 1437 1438 1439 1440
2018-10-03  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftdump] New compact charmap coverage format.

	* src/ftdump.c (Print_Charmaps): Implement it.
	(main): Change corresponding options.
	* src/ftdump.1, src/ftdump.c (usage): Document it.

1441 1442 1443 1444
2018-10-01  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c: Remove unused fields and function.

1445 1446 1447 1448
2018-10-01  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/x11/grx11.c (gr_x11_surface_init): Clean up window creation.

1449 1450 1451 1452
2018-09-29  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c (Render_Waterfall): Mark the status size.

1453 1454 1455 1456 1457
2018-09-29  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grfill.c (grFillHLine): Fix cropping.
	(grFillVLine): Refactor in line with `grFillHLine'.

1458 1459 1460 1461
2018-09-26  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c (Process_Event, event_help): Implement flushing.

1462 1463 1464 1465
2018-09-14  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* src/ftstring.c: Polished.

1466 1467 1468 1469 1470 1471 1472 1473
2018-09-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftstring] Implement text carpeting mode.

	* src/ftstring.c (main): Add text-carpeting mode implemented in...
	(Render_Text): ... this new function.
	(Render_CmpKern, Render_Waterfall): Minor updates and refactoring.

1474 1475 1476 1477 1478 1479 1480
2018-09-13  Alexei Podtelezhnikov  <apodtele@gmail.com>

	Teach `FT_String_Draw' to recycle glyphs.

	* src/ftcommon.h (FTDemo_String_Context): New fields for offset glyph
	and extent to fill.
	(FTDemo_String_Draw): Return the number of glyphs drawn.
1481
	* src/ftcommon.c (FTDemo_String_Draw): Implement glyph recycling until
1482 1483
	the extent is full.

1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497
2018-09-12  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftstring] Load glyphs and advances explicitly.

	* src/ftcommon.h (FTDemo_Handle): Remove `string_reload' flag.
	(TGlyph): Split `delta' into original `lsb_delta' and `rsb_delta'.
	(FTDemo_String_Load): Declare new function.
	* src/ftcommon.c (string_load, string_render_prepare): Merge into...
	(FTDemo_String_Load): ... this function.
	(FTDemo_String_Draw): Devoid of string loading.

	* src/ftstring.c (main, Process_Event,Render_{Waterfall,KernCmp}):
	Call `FTDemo_String_Load' explicitly.

1498 1499 1500 1501 1502 1503 1504 1505 1506
2018-09-11  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftstring] Keep all advances together.

	* src/ftcommon.h (TGlyph): New `hadvance' field for kerned advance.
	* src/ftcommon.c (string_load): Initialize it here.
	(string_render_prepare): Modify it here.
	(FTDemo_String_Draw): Use it here.

1507 1508 1509 1510 1511 1512 1513 1514 1515
2018-09-09  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftview] Draw warning box for zero-width glyphs.

	* src/ftview.c ({X,Y}_TOO_LONG): Reworked the macros.
	(Render_{Stroke,Fancy,All}): Fill the added space with a warning box
	for zero-width glyphs.
	(Render_{Waterfall,Text}): Updated accordingly.

1516 1517 1518 1519 1520 1521 1522
2018-09-07  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftview] Extra space for zero-width glyphs.

	* src/ftview.c (Render_{Stroke,Fancy,All}): Add half ppem to
	zero-width glyphs.

1523 1524 1525 1526 1527 1528 1529 1530 1531
2018-09-07  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftview] Handle extra space differently.

	* src/ftcommon.c (FTDemo_Draw_{Index,Glyph_Color}): Move extra pixel
	from here...
	* src/ftview.c (Render_{Stroke,Fancy,All}): ... to here.
	(Render_{Waterfall,Text}): Do not compensate.

1532 1533 1534 1535 1536 1537 1538
2018-08-23  Werner Lemberg  <wl@gnu.org>

	[ftdiff] New keys `A' to `E' to select hinting mode directly.

	* src/ftdiff.c (process_event): Handle keys `A' to `E'.
	(event_help): Updated.

Werner Lemberg's avatar
Werner Lemberg committed
1539 1540 1541 1542 1543 1544 1545
2018-08-04  Werner Lemberg  <wl@gnu.org>

	Fix clang warnings.

	* src/ftstring.c (Process_Event), src/ftview.c (Process_Event): Add
	cast.

1546 1547 1548 1549 1550 1551 1552
2018-07-23  Hin-Tak Leung <htl10@users.sourceforge.net>

	[ttdebug] Add option `-f' to access non-first member of TTC.

	* src/ttdebug.1, src/ttdebug.c: Add a `-f face_index' switch to
	access non-first member of a TTC, plus updating the man page.

1553 1554 1555 1556 1557
2018-07-05  Alexei Podtelezhnikov  <apodtele@gmail.com>

	* graph/grfont.c (grGotobitmap): Initialize color here...
	(grWrite): ... instead of here.

1558 1559 1560 1561 1562 1563 1564 1565 1566
2018-07-03  Alexei Podtelezhnikov  <apodtele@gmail.com>

	[ftstring] Implement waterfall as mode 2.

	* src/ftstring.c (Render_String, Render_KernCmp): Extracted from ...
	(main): ... here.
	(Render_Waterfall): New mode function based on ftview.
	(event_help): Updated.

Werner Lemberg's avatar
Werner Lemberg committed
1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578
2018-07-03  Werner Lemberg  <wl@gnu.org>

	Fix some clang warnings.

	* graph/grfill.c (grFillRect): Use `int' for `size'.

	* src/ftstring.c (flower_init): Use `unsigned int' for `i'.
	Simplify some loops.

	* src/ftview.c (parse_cmdline) <'L'>: Use `unsigned char' casts.
	(main): Add `FT_LcdFilter' cast.

Hugh McMaster's avatar
Hugh McMaster committed
1579 1580 1581 1582 1583 1584 1585
2018-07-02  Hugh McMaster  <hugh.mcmaster@outlook.com>

	Fix memory leak (patch #9666).

	* src/ftcommon.c (FTDemo_Install_Font): Always free
	`font->filepathname'.

Werner Lemberg's avatar