-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainform.lfm
More file actions
714 lines (714 loc) · 15.1 KB
/
mainform.lfm
File metadata and controls
714 lines (714 loc) · 15.1 KB
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
object frmMain: TfrmMain
Left = 276
Height = 752
Top = 299
Width = 1057
BorderIcons = [biSystemMenu, biMinimize]
BorderStyle = bsSingle
Caption = 'FON Font Creator'
ClientHeight = 752
ClientWidth = 1057
KeyPreview = True
Menu = MainMenu
OnClose = FormClose
OnCreate = FormCreate
OnDestroy = FormDestroy
OnKeyDown = FormKeyDown
LCLVersion = '3.4.0.0'
object gbFontProps: TGroupBox
Left = 8
Height = 175
Top = 8
Width = 290
Caption = 'Font Properties'
ClientHeight = 155
ClientWidth = 286
TabOrder = 0
object lblFontName: TLabel
Left = 8
Height = 15
Top = 8
Width = 62
Caption = 'Font Name:'
end
object edtFontName: TEdit
Left = 80
Height = 23
Top = 4
Width = 200
TabOrder = 0
end
object lblCopyright: TLabel
Left = 8
Height = 15
Top = 34
Width = 56
Caption = 'Copyright:'
end
object edtCopyright: TEdit
Left = 80
Height = 23
Top = 30
Width = 200
TabOrder = 1
end
object lblPointSize: TLabel
Left = 8
Height = 15
Top = 60
Width = 54
Caption = 'Point Size:'
end
object spnPointSize: TSpinEdit
Left = 80
Height = 23
Top = 56
Width = 55
MaxValue = 72
MinValue = 4
TabOrder = 2
Value = 10
end
object lblHeight: TLabel
Left = 152
Height = 15
Hint = 'Change Height for All Characters in the Font'
Top = 60
Width = 66
Caption = 'Font Height:'
ParentShowHint = False
ShowHint = True
end
object spnHeight: TSpinEdit
Left = 225
Height = 23
Top = 56
Width = 55
MaxValue = 64
MinValue = 4
OnChange = spnHeightChange
TabOrder = 3
Value = 12
end
object cboBold: TCheckBox
Left = 8
Height = 19
Top = 80
Width = 42
Caption = 'Bold'
TabOrder = 4
end
object cboItalic: TCheckBox
Left = 80
Height = 19
Top = 80
Width = 43
Caption = 'Italic'
TabOrder = 5
end
object cboUnderline: TCheckBox
Left = 140
Height = 19
Top = 80
Width = 69
Caption = 'Underline'
TabOrder = 6
end
object lblCharSet: TLabel
Left = 8
Height = 15
Top = 112
Width = 47
Caption = 'Char Set:'
end
object cmbCharSet: TComboBox
Left = 80
Height = 23
Top = 108
Width = 100
ItemHeight = 15
Style = csDropDownList
TabOrder = 7
end
object lblPitchFamily: TLabel
Left = 8
Height = 15
Top = 138
Width = 38
Caption = 'Family:'
end
object cmbPitchFamily: TComboBox
Left = 80
Height = 23
Top = 134
Width = 100
ItemHeight = 15
Style = csDropDownList
TabOrder = 8
end
end
object gbCharList: TGroupBox
Left = 8
Height = 474
Top = 190
Width = 306
Caption = 'Characters'
ClientHeight = 454
ClientWidth = 302
TabOrder = 1
object lblRangeStart: TLabel
Left = 8
Height = 15
Top = 8
Width = 36
Caption = 'Range:'
end
object spnRangeStart: TSpinEdit
Left = 55
Height = 23
Top = 4
Width = 60
MaxValue = 255
TabOrder = 0
Value = 32
end
object lblRangeTo: TLabel
Left = 120
Height = 15
Top = 8
Width = 11
Caption = 'to'
end
object spnRangeEnd: TSpinEdit
Left = 140
Height = 23
Top = 4
Width = 60
MaxValue = 255
TabOrder = 1
Value = 127
end
object btnApplyRange: TButton
Left = 210
Height = 23
Top = 4
Width = 65
Caption = 'Apply'
TabOrder = 2
OnClick = btnApplyRangeClick
end
object lstChars: TListBox
Left = 8
Height = 412
Top = 32
Width = 283
ItemHeight = 0
ScrollWidth = 250
TabOrder = 3
OnClick = lstCharsClick
OnDrawItem = lstCharsDrawItem
end
end
object gbCharEditor: TGroupBox
Left = 322
Height = 462
Top = 8
Width = 418
Caption = 'Character Editor'
ClientHeight = 442
ClientWidth = 414
TabOrder = 2
object lblCurrentChar: TLabel
Left = 8
Height = 17
Top = 4
Width = 87
Caption = 'Editing: 65 ''A'''
Font.Height = -13
Font.Style = [fsBold]
ParentFont = False
end
object lblZoom: TLabel
Left = 200
Height = 15
Top = 4
Width = 35
Caption = 'Zoom:'
end
object cmbZoom: TComboBox
Left = 240
Height = 23
Top = 0
Width = 60
ItemHeight = 15
Style = csDropDownList
TabOrder = 0
OnChange = cmbZoomChange
end
object cboShowGrid: TCheckBox
Left = 310
Height = 19
Top = 2
Width = 40
Caption = 'Grid'
Checked = True
State = cbChecked
TabOrder = 1
OnChange = cboShowGridChange
end
object sbCharEdit: TScrollBox
Left = 0
Height = 360
Top = 28
Width = 406
HorzScrollBar.Increment = 20
HorzScrollBar.Page = 200
HorzScrollBar.Smooth = True
HorzScrollBar.Tracking = True
VertScrollBar.Increment = 20
VertScrollBar.Page = 200
VertScrollBar.Smooth = True
VertScrollBar.Tracking = True
ClientHeight = 356
ClientWidth = 402
TabOrder = 2
object pnlCharEdit: TPaintBox
Left = 0
Height = 200
Top = 0
Width = 200
OnMouseDown = pnlCharEditMouseDown
OnMouseMove = pnlCharEditMouseMove
OnMouseUp = pnlCharEditMouseUp
OnPaint = pnlCharEditPaint
end
end
object lblCharWidth: TLabel
Left = 8
Height = 15
Hint = 'Change Width for this Character'
Top = 396
Width = 63
Caption = 'Char Width:'
ParentShowHint = False
ShowHint = True
end
object spnCharWidth: TSpinEdit
Left = 80
Height = 23
Top = 392
Width = 55
MaxValue = 64
MinValue = 1
OnChange = spnCharWidthChange
TabOrder = 3
Value = 8
end
object btnClearChar: TButton
Left = 145
Height = 25
Top = 392
Width = 70
Caption = 'Clear'
TabOrder = 4
OnClick = btnClearCharClick
end
object btnCopyChar: TButton
Left = 220
Height = 25
Top = 392
Width = 50
Caption = 'Copy'
TabOrder = 5
OnClick = btnCopyCharClick
end
object btnPasteChar: TButton
Left = 275
Height = 25
Top = 392
Width = 50
Caption = 'Paste'
TabOrder = 6
OnClick = btnPasteCharClick
end
object btnClearAll: TButton
Left = 330
Height = 25
Top = 392
Width = 78
Caption = 'Clear All'
TabOrder = 7
OnClick = btnClearAllClick
end
object btnInvert: TButton
Left = 8
Height = 25
Top = 420
Width = 55
Caption = 'Invert'
TabOrder = 8
OnClick = btnInvertClick
end
object btnFlipH: TButton
Left = 68
Height = 25
Top = 420
Width = 55
Caption = 'Flip H'
TabOrder = 9
OnClick = btnFlipHClick
end
object btnFlipV: TButton
Left = 128
Height = 25
Top = 420
Width = 55
Caption = 'Flip V'
TabOrder = 10
OnClick = btnFlipVClick
end
object btnShiftLeft: TButton
Left = 220
Height = 25
Top = 420
Width = 30
Caption = '←'
TabOrder = 11
OnClick = btnShiftLeftClick
end
object btnShiftRight: TButton
Left = 255
Height = 25
Top = 420
Width = 30
Caption = '→'
TabOrder = 12
OnClick = btnShiftRightClick
end
object btnShiftUp: TButton
Left = 290
Height = 25
Top = 420
Width = 30
Caption = '↑'
TabOrder = 14
OnClick = btnShiftUpClick
end
object btnShiftDown: TButton
Left = 325
Height = 25
Top = 420
Width = 30
Caption = '↓'
TabOrder = 13
OnClick = btnShiftDownClick
end
end
object gbPreview: TGroupBox
Left = 320
Height = 160
Top = 504
Width = 420
Caption = 'Preview'
ClientHeight = 140
ClientWidth = 416
TabOrder = 3
object lblPreviewText: TLabel
Left = 8
Height = 15
Top = 4
Width = 24
Caption = 'Text:'
end
object edtPreviewText: TEdit
Left = 40
Height = 23
Top = 0
Width = 370
TabOrder = 0
OnChange = edtPreviewTextChange
end
object pnlPreview: TPaintBox
Left = 2
Height = 96
Top = 32
Width = 408
OnPaint = pnlPreviewPaint
end
end
object gbLineMarkers: TGroupBox
Left = 752
Height = 264
Top = 8
Width = 292
Caption = 'Line Markers'
ClientHeight = 244
ClientWidth = 288
TabOrder = 4
object cboShowBaseline: TCheckBox
Left = 8
Height = 19
Top = 20
Width = 92
Caption = 'Baseline (Red)'
Checked = True
State = cbChecked
TabOrder = 0
OnChange = cboShowBaselineChange
end
object chkShowAscender: TCheckBox
Left = 8
Height = 19
Top = 44
Width = 105
Caption = 'Ascender (Cyan)'
Checked = True
State = cbChecked
TabOrder = 1
OnChange = chkLineMarkerChange
end
object chkShowDescender: TCheckBox
Left = 8
Height = 19
Top = 68
Width = 123
Caption = 'Descender (Orange)'
Checked = True
State = cbChecked
TabOrder = 2
OnChange = chkLineMarkerChange
end
object chkShowXHeight: TCheckBox
Left = 8
Height = 19
Top = 92
Width = 111
Caption = 'X-Height (Purple)'
Checked = True
State = cbChecked
TabOrder = 3
OnChange = chkLineMarkerChange
end
object spnAscenderLine: TSpinEdit
Left = 220
Height = 23
Top = 42
Width = 60
MaxValue = 100
MinValue = -1
OnChange = spnLineMarkerChange
TabOrder = 5
Value = -1
end
object spnDescenderLine: TSpinEdit
Left = 220
Height = 23
Top = 66
Width = 60
MaxValue = 100
MinValue = -1
OnChange = spnLineMarkerChange
TabOrder = 6
Value = -1
end
object spnXHeightLine: TSpinEdit
Left = 220
Height = 23
Top = 90
Width = 60
MaxValue = 100
MinValue = -1
OnChange = spnLineMarkerChange
TabOrder = 7
Value = -1
end
object btnResetLines: TButton
Left = 8
Height = 25
Top = 120
Width = 90
Caption = 'Reset to Auto'
TabOrder = 8
OnClick = btnResetLinesClick
end
object btnScanLines: TButton
Left = 105
Height = 25
Top = 120
Width = 90
Caption = 'Scan Font'
TabOrder = 9
OnClick = btnScanLinesClick
end
object lblLineValues: TLabel
Left = 8
Height = 77
Top = 155
Width = 280
AutoSize = False
Caption = 'Current Values:'
WordWrap = True
end
object spnAscent: TSpinEdit
Left = 220
Height = 23
Top = 16
Width = 60
MaxValue = 64
MinValue = 1
OnChange = spnLineMarkerChange
TabOrder = 4
Value = 10
end
end
object StatusBar: TStatusBar
Left = 0
Height = 23
Top = 729
Width = 1057
Panels = <
item
Width = 300
end
item
Width = 100
end
item
Width = 150
end>
SimplePanel = False
end
object MainMenu: TMainMenu
Left = 64
Top = 664
object mnuFile: TMenuItem
Caption = '&File'
object mnuNew: TMenuItem
Caption = '&New'
ShortCut = 16462
OnClick = mnuNewClick
end
object mnuOpen: TMenuItem
Caption = '&Open...'
ShortCut = 16463
OnClick = btnLoadFontClick
end
object mnuSave: TMenuItem
Caption = '&Save...'
ShortCut = 16467
OnClick = btnSaveFontClick
end
object mnuSep1: TMenuItem
Caption = '-'
end
object mnuExit: TMenuItem
Caption = 'E&xit'
OnClick = mnuExitClick
end
end
object mnuEdit: TMenuItem
Caption = '&Edit'
object mnuUndo: TMenuItem
Caption = '&Undo'
ShortCut = 16474
OnClick = mnuUndoClick
end
object mnuRedo: TMenuItem
Caption = '&Redo'
ShortCut = 16473
OnClick = mnuRedoClick
end
object mnuSep2: TMenuItem
Caption = '-'
end
object mnuCopy: TMenuItem
Caption = '&Copy Character'
ShortCut = 16451
OnClick = btnCopyCharClick
end
object mnuPaste: TMenuItem
Caption = '&Paste Character'
ShortCut = 16470
OnClick = btnPasteCharClick
end
end
object mnuTools: TMenuItem
Caption = '&Tools'
object mnuGenerateFromFont: TMenuItem
Caption = '&Generate from System Font...'
OnClick = mnuGenerateFromFontClick
end
object mnuSep4: TMenuItem
Caption = '-'
end
object mnuFontMetrics: TMenuItem
Caption = 'Font &Metrics...'
OnClick = mnuFontMetricsClick
end
object mnuSep5: TMenuItem
Caption = '-'
end
object mnuIncreaseWidth: TMenuItem
Caption = '&Increase Width of All Characters'
OnClick = mnuIncreaseWidthClick
end
object mnuDecreaseWidth: TMenuItem
Caption = '&Decrease Width of All Characters'
OnClick = mnuDecreaseWidthClick
end
object mnuSep6: TMenuItem
Caption = '-'
end
object mnuShiftLeft: TMenuItem
Caption = 'Shift All Characters &Left'
OnClick = mnuShiftLeftClick
end
object mnuShiftRight: TMenuItem
Caption = 'Shift All Characters &Right'
OnClick = mnuShiftRightClick
end
object mnuSep7: TMenuItem
Caption = '-'
end
object mnuAutoTrim: TMenuItem
Caption = '&Auto Trim All Characters'
OnClick = mnuAutoTrimClick
end
object mnuSep8: TMenuItem
Caption = '-'
end
object mnuScript: TMenuItem
Caption = 'Script Manager'
OnClick = mnuScriptClick
end
end
object mnuHelp: TMenuItem
Caption = '&Help'
object mnuAbout: TMenuItem
Caption = '&About...'
OnClick = mnuAboutClick
end
end
end
object dlgOpen: TOpenDialog
Title = 'Open Font File'
DefaultExt = '.FON'
Filter = 'All Font Files|*.FON;*.FNT;*.ROM|Windows Font Files (*.FON)|*.FON|DOS BIOS Fonts (*.FNT;*.ROM)|*.FNT;*.ROM|All Files (*.*)|*.*'
Left = 104
Top = 664
end
object dlgSave: TSaveDialog
Title = 'Save Font File'
Filter = 'Windows Font Files (*.FON)|*.FON|DOS BIOS Fonts (*.FNT)|*.FNT|ROM Fonts (*.ROM)|*.ROM|All Files (*.*)|*.*'
Options = [ofOverwritePrompt, ofEnableSizing, ofViewDetail]
Left = 152
Top = 664
end
object tmrPreview: TTimer
Enabled = False
Interval = 100
OnTimer = tmrPreviewTimer
Left = 200
Top = 664
end
end