-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChangeLog
6740 lines (4351 loc) · 191 KB
/
ChangeLog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
2017-09-10 Werner Lemberg <wl@gnu.org>
[ftgrid] Key `C' now changes to a different color palette.
This gives better support for color-blind people.
* src/ftgrid.c (GridStatus): New member `do_alt_colors'.
(grid_status_init, event_help): Updated.
(grid_status_display): Move color code to...
(grid_status_colors): ... this new function.
(grof_status_alt_colors): New function.
(Process_Event): Handle key `C'.
(main): Updated.
2017-09-09 Werner Lemberg <wl@gnu.org>
Fix clang compiler warnings.
* src/ftcommon.c (PanicZ): Use `const'.
(FTDemo_Draw_Header): Add a cast.
* src/ftdump.c (PanicZ): Use `const'.
2017-09-09 Werner Lemberg <wl@gnu.org>
[ftgrid] Key `G' now toggles the display of grid lines.
* src/ftgrid.c (GridStatus): New member `do_grid'.
(grid_status_init, event_help): Updated.
(grid_status_draw_outline, main): Use `do_grid'.
(Process_Event): Handle key `G'.
2017-09-09 Werner Lemberg <wl@gnu.org>
[ftgrid] Fix display of segment lines.
`af_glyph_hints_get_segment_offset' now returns values in font
units. Previously, values were scaled to the device resolution but
with x height correction applied, which caused a mismatch to the
displayed unhinted outlines.
* src/ftgrid.c (grid_hint_draw_segment): Add new argument for
`FT_Size' object.
Scale return values of `af_glyph_hints_get_segment_offset' manually.
(grid_status_draw_outline): Updated.
2017-09-06 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/{ftdump.c,ftcommon.c} (PanicZ): Handle error messages.
2017-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftdump.c (Print_Charmaps): Decorate with glyph names.
2017-07-06 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftstring] Tweak adjustment of spacing.
The advance width rounding in light hinting is reflected in
`rsb_delta' and ranges from -31 to 32. These conventional limits
should also define when the spacing adjustment is warranted.
* src/ftcommon.c (string_load): Tweak conditionals.
2017-06-29 Werner Lemberg <wl@gnu.org>
* src/ftview.c (Render_Stroke): Avoid memory leaks.
2017-06-24 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftdump] List SFNT tables.
* src/ftdump.c (Print_Sfnt_Tables): New feature, list SFNT tables with
their first 4 bytes with version for some tables.
(usage, main): Updated.
* src/ftdump.1: Updated
2017-06-22 Werner Lemberg <wl@gnu.org>
[compos] Make it compile.
* src/compos.c (FT2_BUILD_LIBRARY): Define; we need access to
FT_SubGlyphRec.
Include FT_INTERNAL_GLYPH_LOADER_H.
(main): Updated.
2017-06-13 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftcommon.c (FTDemo_Draw_Header): Simplify.
2017-06-10 Werner Lemberg <wl@gnu.org>
* src/ftcommon.c (FTDemo_Draw_Header): Fix compiler warning.
2017-06-10 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (event_encoding_change, main): Minor updates.
2017-06-10 Werner Lemberg <wl@gnu.org>
* src/ftcommon.c (FTDemo_Draw_Header): Show gamma in second line.
Otherwise it clashes with long file names.
2017-06-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Merge gray and color sbits controls.
* src/ftcommon.h (FTDemo_Handle): Merge `color' into `use_sbits'.
* src/ftcommon.c (FTDemo_New, FTDemo_Update_Current_Flags): Updated.
* src/ftview.c (Process_Event, event_help, write_header): Updated.
2017-06-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftgrid] Teach encodings.
* src/ftgrid.c (grid_status_draw_outline): Use encoding.
(parse_cmdline, usage): New option to specify encoding.
(Process_Event): Use hexadecimal steps through index.
2017-06-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftgrid] Minor.
* src/ftgrid.c (grid_status_draw_outline): Move the stroker
initialization from here...
(main): ... to here.
2017-06-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Clean up charmap handling.
* src/ftcommon.h (FT_ENCODING_ORDER): Introduce this special encoding
for glyph order because `FT_ENCODING_NONE' has other meanings.
* src/ftcommon.c (FTDemo_Install_Font): Fall back to
`FT_ENCODING_ORDER' if encoding is not recognized.
(FTDemo_Draw_Header): Updated.
* src/ftview.c (status): Remove redundant `encoding' field and update
all references.
(FT_ENCODING_OTHER): Removed in favor of `FT_ENCODING_NONE'.
2017-06-01 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftgrid, ftstring, ftview] Further top header consolidation.
* src/ftview.c (event_encoding_change): Update `handle'.
(write_header): Move instance, encoding, and the first glyph code
reporting from here...
* src/ftgrid.c (write_header): ... and from here...
* src/ftcommon.c (FTDemo_Draw_Header): ... to here.
* src/ftcommon.h (FTDemo_Draw_Header): Update prototype.
* src/ftstring.c (write_header): Updated.
2017-05-29 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftgrid, ftstring, ftview] Migrate gamma to `FTDemo_Display'.
* src/ftcommon.h (FTDemo_Display): Add new field `gamma'.
* src/ftcommon.c (FTDemo_Display_New): Initialize it.
(FTDemo_Draw_Header): Updated.
* src/ftgrid.c (GridStatusRec): Remove field `gamma'.
(event_gamma_change): Updated.
* src/ftstring.c (status): Remove field `gamma'.
(event_gamma_change): Updated.
* src/ftgrid.c (status): Remove field `gamma'.
(event_gamma_change): Updated.
2017-05-28 Werner Lemberg <wl@gnu.org>
* src/ftbench.c (BENCH_TIME): Use `double' literal.
2017-05-27 Philipp Kerling <pkerling@casix.org>
[ftinspect] Split sources; change face index type to `long'.
* src/ftinspect.cpp, src/ftinspect.h: Split into...
* src/ftinspect/*: ...these new files.
Do face index type change.
* src/ftinspect/.gitignore: New file.
2017-05-24 Werner Lemberg <wl@gnu.org>
Minor `fread' coding issues.
* src/ftbench.c (get_face), src/ftcommon.c (FTDemo_Install_Font):
Make `nmemb' argument of `fread' equal 1; this allows a
simplification of the return value test (you get either 0 or 1).
* src/ftdiff.c (main): Handle `fread' errors.
Problem reported by Kushal K S V S (కుషల్ కే ఎస్ వీ ఎస్)
<kkushal32@gmail.com>.
2017-05-18 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftgrid, ftstring, ftview] Unify top header lines.
* src/ftcommon.[ch] (FTDemo_Draw_Header): New function that displays
information about face, size, resolution, and gamma to be used in...
* src/ftview.c (write_header): ... here.
* src/ftstring.c (write_header): ... here.
* src/ftgrid.c (write_header): ... and here.
(event_gamma_change): Updated.
2017-05-15 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftgrid.c (main): Fix segmentation fault.
2017-05-15 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftdiff, ftgrid, ftview] Make autohint warping NORMAL option.
* src/ftdiff.c (render_state_draw, event_help): Updated.
* src/ftgrid.c (event_help, event_warping_change): Updated.
* src/ftview.c (event_help, event_warping_change, write_header):
Updated.
2017-05-14 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftstring, ftview] Loosely match bitmap font sizes.
* src/ftcommon.c (FTDemo_Set_Current_Size,
FTDemo_Set_Current_Charsize): Round requested size to the closest
available ppem for bitmap fonts.
* src/ftview.c (Render_Waterfall): Simplify accordingly.
(write_header): Highlight ppem that does not match the point size.
* src/ftstring.c (write_header): Report ppem.
2017-05-14 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (Render_Stroke): Fix segmentation fault.
2017-05-13 Werner Lemberg <wl@gnu.org>
* Version 2.8 released.
=======================
Tag sources with `VER-2-8.
* README: Updated.
* src/*.1: Updated.
* src/ftinspect.pro: Updated.
2017-05-11 Werner Lemberg <wl@gnu.org>
* src/ftinspect.cpp: Don't include `cstdint', which is C++11.
Right now, we still want to be able to compile with older C++
compilers.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Check glyph index before discarding sign.
* src/ftinspect.cpp (Engine:glyphName, Engine::loadOutline): Do it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
* src/ftinspect.cpp (GlyphPointNumbers::paint): Fix `ptIdx' type.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Mark float literals as float.
* src/ftinspect.cpp (GlyphPointNumbers::paint): Do it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Insert explicit casts where warranted.
This avoids compiler warnings.
* src/ftinspect.cpp (Engine::numberOfNamedInstances,
Engine::glyphName, Engine::loadOutline, GlyphBitmap::GlyphBitmap,
GlyphBitmap::paint, QGraphicsViewx::resizeEvent): Do it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Replace old-style casts with C++ casts.
* src/ftinspect.cpp (Engine::update, GlyphPointNumbers::paint): Do
it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Make color tables and settings more readable.
* src/ftinspect.cpp (MainGUI::setGraphicsDefaults): Use Qt
constants and `qRgba'.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Use symbolic constant for TrueType interpreter v40.
v40 is implemented meanwhile.
* src/ftinspect.cpp (Engine::Engine, MainGUI::setDefaults): Use
`TT_INTERPRETER_VERSION_40'.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Remove unneeded explicit array sizes.
* src/ftinspect.cpp (Engine::Engine): Do it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Make `ftcFaceID' conversion safe.
* src/ftinspect.cpp: Include `stdint.h'.
(faceRequester): Implement it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Synchronize dpi, target, pxlMode types with FreeType.
* src/ftinspect.h (Engine): Make `dpi' unsigned int.
Make `loadFlags' unsigned long.
(GlyphBitmap): Use `FT_Pixel_Mode' for `pixelMode' and constructor.
* src/ftinspect.c: Include `cstdint', `cmath', `limits',
`stdexcept', needed by forthcoming commits.
(Engine::update, GlyphBitmap::GlyphBitmap, MainGUI::drawGlyph):
Updated.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Change freetype2 include path to system include path.
This avoids warnings.
* src/ftinspect.pro: Do it.
2017-05-11 Philipp Kerling <pkerling@casix.org>
[ftinspect] Remove `const_cast'.
* src/ftinspect.cpp (GlyphBitmap::paint): `const_cast' is
potentially dangerous and should only be used as a last resort.
Here, the mutable data can just be accessed with `.bits()' instead.
2017-05-11 Werner Lemberg <wl@gnu.org>
Fix clang warnings.
* src/ftbench.c (main): Use cast.
* src/ftview.c (N_LCD_IDXS): Cast to `int'.
(usage, parse_cmdline): Updated.
2017-05-09 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Report fractional ppem for scalable fonts.
* src/ftview.c (write_header): Updated, ppem and errors consolidated.
2017-05-08 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (write_header): Revert due to segmentation fault.
2017-05-02 Werner Lemberg <wl@gnu.org>
Remove `slight' auto-hinting mode. Add sub-pixel `light' mode.
* src/ftcommon.h (LCD_MODE_SLIGHT): Replace with...
(LCD_MODE_LIGHT_SUBPIXEL): ...this new enum value.
* src/ftcommon.c (FTDemo_Update_Current_Flags,
FTDemo_Glyph_To_Bitmap): Updated.
(string_load): Handle `LCD_MODE_LIGHT_SUBPIXEL'.
Make integer delta support actually work.
(string_render_prepare): Support `LCD_MODE_LIGHT_SUBPIXEL'.
* src/ftdiff.c (HintMode): Replace HINT_MODE_AUTOHINT_SLIGHT with
HINT_MODE_AUTOHINT_LIGHT_SUBPIXEL.
(render_mode_names, render_state_draw, event_help): Updated.
* src/ftgrid.c (grid_status_draw_outline): Show fractional advance
width.
(event_lcd_mode_change, Process_Event): Updated.
* src/ftstring.c (event_lcdmode_change): Updated.
* src/ftview.c (lcd_modes): New array to map indices (as produced by
key presses) to LCD modes; we omit LCD_MODE_LIGHT_SUBPIXEL, which
doesn't make much sense within ftview.
(N_LCD_IDXS): New macro.
(status): Replace `lcd_mode' with `lcd_idx'.
(event_help): Revert change from 2017-04-19.
(Process_Event): Updated to use `lcd_modes' array.
Remove references to LCD_MODE_LIGHT.
(write_header, usage, parse_cmdline, main): Updated.
* src/ftinspect.h (AntiAliasing): Remove `AntiAliasing_Slight'.
* src/ftinspect.cpp (Engine::update, MainGUI::checkHinting,
MainGUI::checkAutoHinting, MainGUI::checkAntiAliasing,
MainGUI::createLayout): Updated.
2017-04-19 Werner Lemberg <wl@gnu.org>
Support new `slight' auto-hinting mode.
Note that currently only `ftdiff' shows what the new mode really can
do – `ftview' uses integer advance values, which doesn't work well
with the `slight' mode.
* src/ftcommon.h (LCD_MODE_SLIGHT): New enumeration.
* src/ftcommon.c (FTDemo_Update_Current_Flags,
FTDemo_Glyph_To_Bitmap): Handle `LCD_MODE_SLIGHT'.
* src/ftdiff.c (HintMode): Add `HINT_MODE_AUTOHINT_SLIGHT'.
(render_mode_names): Updated.
(render_state_draw): Handle `HINT_MODE_AUTOHINT_SLIGHT'.
* src/ftgrid.c (event_lcd_mode_change): Handle `LCD_MODE_SLIGHT'.
(Process_Event): Updated.
* src/ftstring.c (event_lcdmode_change): Handle `LCD_MODE_SLIGHT'.
* src/ftview.c (event_help): Updated; we now have keys A-H to
directly select rendering modes.
(Process_Event, write_header): Updated.
* src/ftinspect.h (AntiAliasing): Add `AntiAliasing_Light'.
* src/ftinspect.cpp (Engine::update): Handle `AntiAliasing_Light',
update `AntiAliasing_Slight'.
(MainGUI::checkHinting, MainGUI::checkAutoHinting,
MainGUI::checkAntiAliasing, MainGUI::createLayout): Updated.
2014-04-19 Werner Lemberg <wl@gnu.org>
[ftgrid] Fix out-of-array memory access.
* src/ftgrid.c (bitmap_scale) [gr_pixel_mode_lcd]: We handle input
pixel by pixel, not the full line; consequently, we have to use
`width', not `pitch'.
2017-04-17 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (write_header): Report fractional ppem differently.
To convince Werner.
2017-04-16 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (write_header): Report fractional ppem.
2017-04-16 Werner Lemberg <wl@gnu.org>
* src/ftdump.c (Print_Charmaps): Better show synthetic cmaps.
2017-04-09 Werner Lemberg <wl@gnu.org>
* src/ftmulti.c (Render_All, Render_Text): Round advance widths.
Problem spotted by Nikolaus.
2017-03-30 Werner Lemberg <wl@gnu.org>
* src/ftview.c (write_header): Show current instance index.
2017-03-29 Alexei Podtelezhnikov <apodtele@gmail.com>
Use `LCD_MODE_XXX' enum values.
* src/ftcommon.c (FTDemo_New, FTDemo_Update_Current_Flags,
FTDemo_Glyph_To_Bitmap, FTDemo_Index_To_Bitmap): Ditto.
* src/ftgrid.c (event_lcd_filter_change): Ditto.
* src/ftstring.c (event_lcdmode_change): Ditto.
2017-03-29 Werner Lemberg <wl@gnu.org>
* src/ftview.c (INIT_SIZE): Improve vertical start position.
2017-03-27 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Stuff right margin.
* src/ftview.c (X_TOO_LONG): Rely on `horiAdvance' when available.
(Render_All): Use `FTDemo_Draw_Slot' so that updated X_TOO_LONG works.
(Render_Stroke, Render_Fancy): Updated.
2017-03-26 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Hide LCD filter from grayscale modes.
* src/ftview.c (Process_Event, write_header): Check the LCD mode
before adjusting or reporting the LCD filter.
2017-03-26 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview, ftstring, ftgrid] Remove anti-aliasing toggle.
* src/ftcommon.h (FTDemo_Handle): Replace `antialias' field with
`LCD_MODE_MONO' enumerator.
* src/ftcommon.c (FTDemo_Update_Current_Flags, FTDemo_Glyph_To_Bitmap,
FTDemo_Index_To_Bitmap): Updated.
* src/ftgrid.c (Process_Event, event_help, event_lcd_mode_change,
event_lcd_filter_change): Ditto.
* src/ftstring.c (Process_Event, event_help, event_lcdmode_change):
Ditto.
* src/ftview.c (Process_Event, event_help, write_header): Ditto.
2017-03-24 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftview.c (Render_*): Improve readability.
2017-03-24 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Consolidate emboldening and slanting modes.
* src/ftview.c (Render_Slanted, Render_Embolden): Merged into...
(Render_Fancy): ... this new function.
(event_help, Process_Event, write_header, main): Updated.
* src/ftview.1: Updated.
2017-03-23 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftmulti.c (Process_Event, main): Use `FT_RoundFix'.
2017-03-23 Werner Lemberg <wl@gnu.org>
* src/ftmulti.c (Process_Event, main): Fix rounding.
2017-03-23 Werner Lemberg <wl@gnu.org>
[ftmulti] Show PS name.
* src/ftmulti.c (Render_All): Adjust vertical start position.
(Render_Text): Make arguments similar to `Render_All'.
Adjust vertical start position.
(Process_Event): Round non-integer axis values to two decimal
digits.
(main): Updated.
Print PostScript name.
2017-03-20 Brian Nixon <nixonb@yahoo.com>
[ftview] Improve waterfall mode (#50586).
* src/ftview.c (Render_Waterfall): Stop repeating of the default
glyph to the end of each line after the display text.
2017-03-20 Brian Nixon <nixonb@yahoo.com>
* graph/win32/grwin32.c(syskey_translators): Fix F10 key (#50585).
`F10' does not work as advertised in the demos because the
message-handling code expects it to arrive as a `normal' key but
Windows sends it as a `system' key (because it is reserved for
activating the menu bar, per the IBM Common User Access standard).
Fix this by adding `F10' to the ‛syskey_translators’ table.
(We also remove the existing handling of `F1' as a `system' key,
because this does not appear to be necessary. `F1' is sent as a
`normal' key and is correctly handled by the ‛key_translators’
table.)
2017-03-19 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftbench.c (main, usage): Add optional LCD filtering.
2017-03-19 Brian Nixon <nixonb@yahoo.com>
[graph] Make demo windows minimise-able on Win32 (#50582).
* graph/win32/grwin32.c (gr_win32_surface_init): Implement it.
2017-03-13 Werner Lemberg <wl@gnu.org>
[ftdump] Show ID numbers for standard `name' table entries.
* src/ftdump.c (EXPAND, XEXPAND, NAME_ID): New macros.
(name_id): Use new macros.
2017-02-07 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftgamma.c (main): Label images.
2017-02-03 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftgamma] Add box-filtered subpixel pattern.
Two alternative patterns now demonstrate the importance of correct
gamma for both grayscale and subpixel anti-aliasing, where it helps
normalize thickness in the former and remove color fringes in the
latter.
* src/ftgamma.*: Updated.
2017-01-28 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftstring] Improve gamma ramp appearance.
* src/ftstring.c (event_gamma_change, gamma_ramp_draw): Updated.
2017-01-28 Werner Lemberg <wl@gnu.org>
[ftdump] Always finalize FreeType.
* src/ftdump.c (PanicZ, usage): Add `library' argument so that we
can call `FT_Done_FreeType'.
(main): Updated.
2017-01-28 Werner Lemberg <wl@gnu.org>
[ftdump] Sync with current FreeType.
* src/ftdump.c (name_id): Use updated ID macros.
Add new ID macros.
2017-01-27 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Align with current FreeType.
* src/ftview.c (write_header): s/GB2312/PRC/.
(Process_Event): `FT_Library_SetLcdFilterWeights' now enables
filtering without `FT_Library_SetLcdFilter'.
2016-12-30 Werner Lemberg <wl@gnu.org>
* Version 2.7.1 released.
=========================
Tag sources with `VER-2-7-1'.
* README: Updated.
* src/*.1: Updated.
* src/ftinspect.pro: Updated.
2016-12-27 Werner Lemberg <wl@gnu.org>
[ftmulti] Minor.
* src/ftmulti.c (Process_Event, main): If MM, round design
coordinates.
2016-12-25 Werner Lemberg <wl@gnu.org>
Fixes for clang++.
* Makefile (COMPILE): Don't add `-std=c99' if using a C++ compiler.
* src/ftbench.c (_GNU_SOURCE): Declare only if not already defined.
* src/ftcommon.c (_GNU_SOURCE): Declare only if not already defined.
(FTDemo_Install_Font): Use proper case for `FT_Select_Charmap'.
* src/ftmulti.c (main): Use proper case for `FT_Select_Charmap'.
2016-12-20 Werner Lemberg <wl@gnu.org>
* src/ftmulti.c: Minor clang fixes.
2016-12-19 Werner Lemberg <wl@gnu.org>
[ftmulti] Support multiple engines.
Similar to other programs, use the `H' key to cycle through engines
(if available).
* src/ftmulti.c: Include FT_FONT_FORMATS_H, FT_MODULE_H,
FT_TRUETYPE_DRIVER_H, FT_CFF_DRIVER_H.
(N_CFF_HINTING_ENGINES): New macro.
(cff_hinting_engine, tt_interpreter_versions,
num_tt_interpreter_versions, tt_interpreter_version_idx,
font_format): New global variables.
(Help): Updated.
(cff_hinting_engine_change, tt_interpreter_version_change): New
functions.
(Process_Event): Handle key `H'.
(main): Set up selection of CFF and TrueType engine versions.
Display selected engine.
Force redisplay of current font if `H' key was pressed.
2016-11-06 Werner Lemberg <wl@gnu.org>
* src/ftbench.c (main): Adjust size argument for bitmap strikes.
For bitmap-only fonts we enforce the selection of the first bitmap
strike size.
This commit also fixes the `size' value itself.
2016-10-29 Werner Lemberg <wl@gnu.org>
Minor compilation issues.
* Makefile: Use ANSIFLAGS and select C99 for GNU-like compilers.
* src/ftbench.c, src/ftcommon.c (_GNU_SOURCE): Define. We use
functionality not covered by ANSI.
2016-10-29 Werner Lemberg <wl@gnu.org>
Fix clang warnings.
We now have a new `FT_ENCODING_OTHER' tag used for internal
purposes. Since it is not possible to extend an enumeration after
its definition, replace `FT_Encoding' types with `unsigned long'.
* src/ftcommon.c (FTDemo_Make_Encoding_Tag): Updated.
* src/ftcommon.h (FTDemo_Handle): Ditto.
* src/ftmulti.c (encoding): Use `unsigned long'.
(main): Updated.
* src/ftstring.c (Sample): Make array of type `const char*'.
(status): Use `unsigned long' for `encoding' field.
Use `const char*' for `text' field.
* src/ftview.c (status): Use `unsigned long' for `encoding'.
(FT_ENCODING_OTHER): Use `unsigned long'.
2016-10-18 Alexei Podtelezhnikov <apodtele@gmail.com>
[graph] Untested legacy 15/16-bit color fixes.
Our tools do not use the legacy 15/16-bit color modes. This is mostly
for the sake of correctness. We might also remove the code.
* graph/grblit.c (blit_gray{8,}_to_{555,565}): Updated.
* graph/x11/grx11.c (gr_x11_format_{bgr565,rgb555,bgr555}): Updated.
2016-10-13 Alexei Podtelezhnikov <apodtele@gmail.com>
* graph/grblit.c (blit_lcd28_to_24): Typo.
2016-10-10 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftdump.c (Print_Charmaps): Dump format info.
2016-10-09 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Recognize other charmaps.
* src/ftview.c (event_change_encoding): Recognize when
FT_ENCODING_NONE has special other meaning.
(write_header): Default case for `status.encoding'.
2016-10-07 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Fix charmap cycling.
* src/ftview.c (event_change_encoding): Reimplement relying on
`cmap_index' field in TFont structure.
2016-10-05 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftview] Implement cycling through available charmaps.
* src/ftview.c (event_change_encoding): New function.
(Process_Event): New [Tab] event to cycle through available charmaps,
also increase index steps to 16, 256, and 4096.
(event_help): Updated.
2016-10-03 Alexei Podtelezhnikov <apodtele@gmail.com>
* graph/grevents.h (grKey): Typo.
2016-10-01 İsmail Dönmez <idonmez@suse.com>
* src/ftinspect.pro (LIBS): Fix default value.
2016-09-24 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftstring] Add LGC and CJK sample strings.
* src/ftstring.c (event_text_change): New function.
(Process_Event): New [Tab] event to cycle through sample strings.
(event_help): Offer it.
(status, event_font_change, main): Updated.
2016-09-16 Werner Lemberg <wl@gnu.org>
* src/ftbench.1: Improve.
2016-09-08 Werner Lemberg <wl@gnu.org>
* Version 2.7 released.
=======================
Tag sources with `VER-2-7'.
* README: Updated.
* src/*.1: Updated.
* src/ftinspect.pro: Updated.
2016-08-20 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftdump.c (Print_Programs): Use fewer casts.
2018-08-19 Werner Lemberg <wl@gnu.org>
[ftdump] Fix clang compiler warnings.
* src/ftdump.c (Print_Bytecode): Use cast instead of printf length
modifier – we would need `hh', which only glibc offers.
(Print_Programs): Use proper casts for constant strings and 16bit
integer types.
2018-08-19 Werner Lemberg <wl@gnu.org>
[ftgamma] Fix compiler warnings.
* src/ftgamma.c (bit1, bit2, bit): Make them static.
2016-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftdump] Hexdump composite glyf instructions too.
* src/ftdump.c (Print_Programs): Updated.
(Print_Bytecode): Cleaned up.
2016-08-18 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftdump] Implement hexdump of TrueType instructions.
This is useful when searching for interesting instructions. Pushed
values come with underscore prefix to distinguish them from actual
opcodes.
* src/ftdump.c (Print_Bytecode, Print_Programs): Implement this.
(usage): New option `-p' described.
(main): Updated.
* src/ftdump.1: Updated.
2016-08-06 Werner Lemberg <wl@gnu.org>
Move Mark Leisher's `getopt' implementation to a separate file.
We need this since `ftbench.c' now includes `unistd.h', which in
turn declares `getopt'.
* src/common.c, src/common.h: Move `getopt' stuff to...
* src/mlgetopt.c, src/mlgetopt.h: ... these new files.
Update all callers.
* src/common.c, src/common.h: Use standard C only.
Replace `CONST' with `const'.
* Makefile (COMMON_OBJ): Add `mlgetopt'.
2016-08-02 Alexei Podtelezhnikov <apodtele@gmail.com>
* src/ftbench.c (get_time, benchmark): Clean up timers.
2016-08-01 Alexei Podtelezhnikov <apodtele@gmail.com>
[ftbench] Use POSIX timers when available.
* src/ftbench.c (get_time): Use `clock_gettime' instead of obsolete
and less accurate `gettimeofday'.
(benchmark): Updated.
2016-07-14 Werner Lemberg <wl@gnu.org>
[ftgrid] New option `-d' to give start-up design coordinates.
This code is similar to the one from `ftmulti'.
* src/ftgrid.c: Include `stdlib.h'.
(GridStatusRec): Add `requested_pos' and `requested_cnt' to hold the
design coordinate data from the command line.
(event_font_change): Handle them.
(parse_cmdline): Handle option `-d'.
(usage): Document `-d'.
(main): Don't load named instances if we have start-up design
coordinates.
* src/ftgrid.1: Updated.
2016-07-14 Werner Lemberg <wl@gnu.org>
Prepare suppression of named instances.
No functional change.
* src/ftcommon.c (FTDemo_Install_Font): Add boolean parameter to
avoid loading of instances.
* src/ftcommon.h: Updated.
* src/ftgrid.c (main), src/ftstring.c (main), src/ftview.c (main):
Updated.
2016-07-14 Werner Lemberg <wl@gnu.org>
[ftgrid] Properly handle named instances.
* src/ftgrid.c (event_font_change): Properly initialize the design
positions with the named instance's value, if appropriate.
2016-07-12 Werner Lemberg <wl@gnu.org>
* Version 2.6.5 released.
=========================
Tag sources with `VER-2-6-5'.
* README: Updated.
* src/*.1: Updated.
* src/ftinspect.pro: Updated.
2016-07-05 Werner Lemberg <wl@gnu.org>
* Version 2.6.4 released.
=========================
Tag sources with `VER-2-6-4'.
* README: Updated.
* src/*.1: Updated.
* src/ftinspect.pro: Updated.
2016-06-26 Werner Lemberg <wl@gnu.org>
[ftinspect] Fix pixel box drawing.
This commit circumvents a problem with Qt's `QPainter::drawImage'
function; it seems that the alignment of the output becomes
imprecise at high magnification values.
* src/ftinspect.c (GlyphBitmap::paint): Manually draw pixel boxes
with `fillRect'.
2016-05-29 Werner Lemberg <wl@gnu.org>
* src/ftbench.c (main): Add cast to remove compiler warning.
2016-05-29 Werner Lemberg <wl@gnu.org>
[ftinspect] Mark pixel centers in the grid with a cross.
* src/ftinspect.c (Grid::paint): Implement it.
2016-05-29 Werner Lemberg <wl@gnu.org>
[ftinspect] Prepare zoom for drawing pixel center.
This change makes the zoom use only even values larger than a given
threshold; it also implements (kind of) logarithmic zooming.
* src/ftinspect.h (QSpinBoxx): New class, derived from `QSpinBox'.
(MainGUI): Updated.
* src/ftinspect.cpp (MainGUI::createLayout): Updated.
(QSpinBoxx::valueFromText, QSpinBoxx::stepBy): New methods.
2016-05-26 Werner Lemberg <wl@gnu.org>
[ftbench] Add support for third TrueType interpreter version.
Option `-H' now takes an argument to select the CFF hinting engine,
and new option `-I' selects the TT interpreter version.
* src/ftbench.c (default_hinting_engine,
default_interpreter_version): Replaced with...
(tt_interpreter_versions, num_tt_interpreter_versions,
dflt_tt_interpreter_version, cff_hinting_engines,
num_cff_hinting_engines, dflt_cff_hinting_engine,
cff_hinting_engine_names): ... these new global variables.
(main): Expand check for alternative TrueType interpreter versions
and CFF hinting engines.
Add argument to option `-H'.
Add new option `-I'.
(usage): Updated.
* src/ftbench.1: Updated.
2016-05-26 Werner Lemberg <wl@gnu.org>
[ttdebug] Rename option `-H' to `-I'.
This is for consistency with a forthcoming change to `ftbench'.
* src/ttdebug.c (main): Implement it.
(Usage): Updated.
* src/ttdebug.1: Updated.
2016-05-26 Werner Lemberg <wl@gnu.org>
[ttdebug] Add support for third TrueType interpreter version.
Option `-H' now takes an argument.