-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathopenTypeFeatures.jsx
6372 lines (5828 loc) · 197 KB
/
openTypeFeatures.jsx
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
/* DESCRIPTION: OpenType Features Dialog */
/*
+ Adobe InDesign Version: CS2020+
+ Autor: Roland Dreger
+ Date: August 30, 2021
+ Last updated: March 6, 2022
+ License (MIT)
Copyright 2022 Roland Dreger
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
//@targetengine "OpenTypeFeatures"
var _global = {
"projectName":"OpenType Features",
"version":"2.2"
};
_global["setups"] = {
"isHelpTipDisplayed":false, /* Display OFT help tips. Values: true or false */
"isStyleAppliedToSelection":true, /* Apply style to selection. Values: true or false */
"textStyleRangeLimit": 20 /* Number of text style ranges of selection that trigger a warning message (Performance) and will be displayed in the list box (extended feature tag). Value: Integer */
};
/* Progressbar */
_global["progressbar"] = __createProgressbar();
/* Dialog texts and error messages */
__defineLocalizeStrings();
/* State Object (SSOT) */
var _otfTagObj = __getOTFTagObject();
/* Show OTF Dialog */
__showOTFWindow(_otfTagObj);
/**
* Show Dialog
* @param {Object} _otfTagObj
* @returns Boolean
*/
function __showOTFWindow(_otfTagObj) {
if(!_global) { return false; }
if(!_otfTagObj || !(_otfTagObj instanceof Object)) { return false; }
const PANEL_MARGINS = [5,10,5,5];
const FEATURE_GROUP_MARGINS = [5,5,5,0];
const FEATURE_GROUP_MARGINS_NARROW = [5,4,4,0];
const FIRST_COLUMN_CHAR_NUM = localize({ en:24, de:24, fr:25, es:24 });
const SECOND_COLUMN_CHAR_NUM = localize({ en:24, de:24, fr:26, es:26 });
const THIRD_COLUMN_CHAR_NUM = localize({ en:18, de:20, fr:15, es:16 });
var _setupObj = _global["setups"];
if(!_setupObj || !(_setupObj instanceof Object)) {
return false;
}
var _fontObj;
var _appliedFontsStatictext;
var _ligaturesGroup;
var _otfDiscretionaryLigatureGroup;
var _otfFractionGroup;
var _otfOrdinalGroup;
var _otfSwashGroup;
var _otfTitlingGroup;
var _otfContextualAlternateGroup;
var _capitalizationGroup;
var _otfSlashedZeroGroup;
var _otfHistoricalGroup;
var _otfRomanItalicsGroup;
var _otfLocaleGroup;
var _otfOverlapSwashGroup;
var _otfMarkGroup;
var _otfProportionalMetricsGroup;
var _otfJustificationAlternateGroup;
var _otfStretchedAlternateGroup;
var _otfStylisticAlternateGroup;
var _otfHVKanaGroup;
var _positionSuperscriptGroup;
var _positionSubscriptGroup;
var _positionNumeratorGroup;
var _positionDenominatorGroup;
var _digitDefaultFigureStyleGroup;
var _digitProportionalOldstyleGroup;
var _digitProportionalLiningGroup;
var _digitTabularOldstyleGroup;
var _digitTabularLiningGroup;
var _positionalFormsGeneralGroup;
var _positionalFormsAutomaticGroup;
var _positionalFormsInitialGroup;
var _positionalFormsMedialGroup;
var _positionalFormsFinalGroup;
var _positionalFormsIsolatedGroup;
var _otfStylisticSet1Group;
var _otfStylisticSet2Group;
var _otfStylisticSet3Group;
var _otfStylisticSet4Group;
var _otfStylisticSet5Group;
var _otfStylisticSet6Group;
var _otfStylisticSet7Group;
var _otfStylisticSet8Group;
var _otfStylisticSet9Group;
var _otfStylisticSet10Group;
var _otfStylisticSet11Group;
var _otfStylisticSet12Group;
var _otfStylisticSet13Group;
var _otfStylisticSet14Group;
var _otfStylisticSet15Group;
var _otfStylisticSet16Group;
var _otfStylisticSet17Group;
var _otfStylisticSet18Group;
var _otfStylisticSet19Group;
var _otfStylisticSet20Group;
var _ligaturesCheckbox;
var _otfDiscretionaryLigatureCheckbox;
var _otfFractionCheckbox;
var _otfOrdinalCheckbox;
var _otfSwashCheckbox;
var _otfTitlingCheckbox;
var _otfContextualAlternateCheckbox;
var _capitalizationCheckbox;
var _otfSlashedZeroCheckbox;
var _otfHistoricalCheckbox;
var _otfRomanItalicsCheckbox;
var _otfLocaleCheckbox;
var _otfOverlapSwashCheckbox;
var _otfMarkCheckbox;
var _otfProportionalMetricsCheckbox;
var _otfJustificationAlternateCheckbox;
var _otfStretchedAlternateCheckbox;
var _otfStylisticAlternateCheckbox;
var _otfHVKanaCheckbox;
var _positionSuperscriptCheckbox;
var _positionSubscriptCheckbox;
var _positionNumeratorCheckbox;
var _positionDenominatorCheckbox;
var _digitTabularLiningCheckbox;
var _digitProportionalOldstyleCheckbox;
var _digitProportionalLiningCheckbox;
var _digitTabularOldstyleCheckbox;
var _digitDefaultFigureStyleCheckbox;
var _otfStylisticSet1Checkbox;
var _otfStylisticSet2Checkbox;
var _otfStylisticSet3Checkbox;
var _otfStylisticSet4Checkbox;
var _otfStylisticSet5Checkbox;
var _otfStylisticSet6Checkbox;
var _otfStylisticSet7Checkbox;
var _otfStylisticSet8Checkbox;
var _otfStylisticSet9Checkbox;
var _otfStylisticSet10Checkbox;
var _otfStylisticSet11Checkbox;
var _otfStylisticSet12Checkbox;
var _otfStylisticSet13Checkbox;
var _otfStylisticSet14Checkbox;
var _otfStylisticSet15Checkbox;
var _otfStylisticSet16Checkbox;
var _otfStylisticSet17Checkbox;
var _otfStylisticSet18Checkbox;
var _otfStylisticSet19Checkbox;
var _otfStylisticSet20Checkbox;
var _positionalFormsGeneralCheckbox;
var _positionalFormsAutomaticCheckbox;
var _positionalFormsInitialCheckbox;
var _positionalFormsMedialCheckbox;
var _positionalFormsFinalCheckbox;
var _positionalFormsIsolatedCheckbox;
var _applyStyleToSelectionCheckbox;
var _displayHelpTipCheckbox;
var _extendedTabTagFilterEdittext;
var _extendedTabLabelFilterEdittext;
var _extendedTabClearButton;
var _extendedTabApplyButton;
var _searchTabTagFilterEdittext;
var _searchTabLabelFilterEdittext
var _searchTabFontNameFilterEdittext;
var _searchTabFontStyleFilterEdittext;
var _searchTabApplyFontButton;
var _closeButton;
var _refreshButton;
var _cStyleNameEdittext;
var _cStyleButton;
var _otfWindow = new Window("palette", localize(_global.uiHeadLabel));
with (_otfWindow) {
alignChildren = ["fill","fill"];
margins = [10,15,10,8];
spacing = 5;
var _headerGroup = add("group");
with(_headerGroup) {
alignChildren = ["fill","fill"];
var _appliedFontsGroup = add("group");
with(_appliedFontsGroup) {
alignChildren = ["center","top"];
margins.bottom = 10;
_appliedFontsStatictext = add('statictext', undefined, "");
with(_appliedFontsStatictext) {
characters = 60;
justify = "center";
} /* END _appliedFontsStatictext */
} /* END _appliedFontsGroup */
} /* END _headerGroup */
/* Tabs */
var _tabPanel = add("tabbedpanel");
with(_tabPanel) {
alignChildren = ["fill","fill"];
margins = [5,5,5,5];
/* Basic Tab */
var _basicTab = add("tab", undefined, localize(_global.basicFeaturesTabLabel));
with(_basicTab) {
alignChildren = ["fill","fill"];
margins = [10,5,10,10];
var _selectionGroup = add("group");
with(_selectionGroup) {
alignChildren = ["fill","fill"];
orientation = "column";
spacing = 8;
var _row1Group = add("group");
with(_row1Group) {
alignChildren = ["fill","fill"];
spacing = 15;
/* ++++++++++++ */
/* + Column 1 + */
/* ++++++++++++ */
var _column1Group = add("group");
with(_column1Group) {
orientation = "column";
alignChildren = ["fill","fill"];
var _otfGeneralFeaturePanel = add("panel", undefined, localize(_global.oftGeneralFeaturePanelLabel));
with(_otfGeneralFeaturePanel) {
alignChildren = ["fill","top"];
margins = PANEL_MARGINS;
spacing = 0;
/* Standard features */
_ligaturesGroup = add("group");
with(_ligaturesGroup) {
margins = FEATURE_GROUP_MARGINS;
_ligaturesCheckbox = add("checkbox", undefined, localize(_global.ligatureLabel));
_ligaturesCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_ligaturesCheckbox["desc"] = localize(_global.ligaturesFeatureDesc);
} /* END _ligaturesGroup */
_otfDiscretionaryLigatureGroup = add("group");
with(_otfDiscretionaryLigatureGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfDiscretionaryLigatureCheckbox = add("checkbox", undefined, localize(_global.otfDiscretionaryLigatureLabel));
_otfDiscretionaryLigatureCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfDiscretionaryLigatureCheckbox["desc"] = localize(_global.otfDiscretionaryLigatureFeatureDesc);
} /* END _otfDiscretionaryLigatureGroup */
_otfFractionGroup = add("group");
with(_otfFractionGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfFractionCheckbox = add("checkbox", undefined, localize(_global.otfFractionLabel));
_otfFractionCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfFractionCheckbox["desc"] = localize(_global.otfFractionFeatureDesc);
} /* END _otfFractionGroup */
_otfOrdinalGroup = add("group");
with(_otfOrdinalGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfOrdinalCheckbox = add("checkbox", undefined, localize(_global.otfOrdinalLabel));
_otfOrdinalCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfOrdinalCheckbox["desc"] = localize(_global.otfOrdinalFeatureDesc);
} /* END _otfOrdinalGroup */
_otfSwashGroup = add("group");
with(_otfSwashGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfSwashCheckbox = add("checkbox", undefined, localize(_global.otfSwashLabel));
_otfSwashCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfSwashCheckbox["desc"] = localize(_global.otfSwashFeatureDesc);
} /* END _otfSwashGroup */
_otfTitlingGroup = add("group");
with(_otfTitlingGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfTitlingCheckbox = add("checkbox", undefined, localize(_global.otfTitlingLabel));
_otfTitlingCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfTitlingCheckbox["desc"] = localize(_global.otfTitlingFeatureDesc);
} /* END _otfTitlingGroup */
_otfContextualAlternateGroup = add("group");
with(_otfContextualAlternateGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfContextualAlternateCheckbox = add("checkbox", undefined, localize(_global.otfContextualAlternateLabel));
_otfContextualAlternateCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfContextualAlternateCheckbox["desc"] = localize(_global.otfContextualAlternateFeatureDesc);
} /* END _otfContextualAlternateGroup */
_capitalizationGroup = add("group");
with(_capitalizationGroup) {
margins = FEATURE_GROUP_MARGINS;
_capitalizationCheckbox = add("checkbox", undefined, localize(_global.capitalizationLabel));
_capitalizationCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_capitalizationCheckbox["desc"] = localize(_global.capitalizationFeatureDesc);
} /* END _capitalizationGroup */
_otfSlashedZeroGroup = add("group");
with(_otfSlashedZeroGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfSlashedZeroCheckbox = add("checkbox", undefined, localize(_global.otfSlashedZeroLabel));
_otfSlashedZeroCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfSlashedZeroCheckbox["desc"] = localize(_global.otfSlashedZeroFeatureDesc);
} /* END _otfSlashedZeroGroup */
/* Special Features */
_otfHistoricalGroup = add("group");
with(_otfHistoricalGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfHistoricalCheckbox = add("checkbox", undefined, localize(_global.otfHistoricalLabel));
_otfHistoricalCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfHistoricalCheckbox["desc"] = localize(_global.otfHistoricalFeatureDesc);
} /* END _otfHistoricalGroup */
_otfRomanItalicsGroup = add("group");
with(_otfRomanItalicsGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfRomanItalicsCheckbox = add("checkbox", undefined, localize(_global.otfRomanItalicsLabel));
_otfRomanItalicsCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfRomanItalicsCheckbox["desc"] = localize(_global.otfRomanItalicsFeatureDesc);
} /* END _otfRomanItalicsGroup */
_otfLocaleGroup = add("group");
with(_otfLocaleGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfLocaleCheckbox = add("checkbox", undefined, localize(_global.otfLocaleLabel));
_otfLocaleCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfLocaleCheckbox["desc"] = localize(_global.otfLocaleFeatureDesc);
} /* END _otfLocaleGroup */
_otfOverlapSwashGroup = add("group");
with(_otfOverlapSwashGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfOverlapSwashCheckbox = add("checkbox", undefined, localize(_global.otfOverlapSwashLabel));
_otfOverlapSwashCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfOverlapSwashCheckbox["desc"] = localize(_global.otfOverlapSwashFeatureDesc);
} /* END _otfOverlapSwashGroup */
_otfMarkGroup = add("group");
with(_otfMarkGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfMarkCheckbox = add("checkbox", undefined, localize(_global.otfMarkLabel));
_otfMarkCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfMarkCheckbox["desc"] = localize(_global.otfMarkFeatureDesc);
} /* END _otfMarkGroup */
_otfProportionalMetricsGroup = add("group");
with(_otfProportionalMetricsGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfProportionalMetricsCheckbox = add("checkbox", undefined, localize(_global.otfProportionalMetricsLabel));
_otfProportionalMetricsCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfProportionalMetricsCheckbox["desc"] = localize(_global.otfProportionalMetricsFeatureDesc);
} /* END _otfProportionalMetricsGroup */
_otfJustificationAlternateGroup = add("group");
with(_otfJustificationAlternateGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfJustificationAlternateCheckbox = add("checkbox", undefined, localize(_global.otfJustificationAlternateLabel));
_otfJustificationAlternateCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfJustificationAlternateCheckbox["desc"] = localize(_global.otfJustificationAlternateFeatureDesc);
} /* END _otfJustificationAlternateGroup */
_otfStretchedAlternateGroup = add("group");
with(_otfStretchedAlternateGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfStretchedAlternateCheckbox = add("checkbox", undefined, localize(_global.otfStretchedAlternateLabel));
_otfStretchedAlternateCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfStretchedAlternateCheckbox["desc"] = localize(_global.otfStretchedAlternateFeatureDesc);
} /* END _otfStretchedAlternateGroup */
_otfStylisticAlternateGroup = add("group");
with(_otfStylisticAlternateGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfStylisticAlternateCheckbox = add("checkbox", undefined, localize(_global.otfStylisticAlternateLabel));
_otfStylisticAlternateCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfStylisticAlternateCheckbox["desc"] = localize(_global.otfStylisticAlternateFeatureDesc);
} /* END _otfStylisticAlternateGroup */
_otfHVKanaGroup = add("group");
with(_otfHVKanaGroup) {
margins = FEATURE_GROUP_MARGINS;
_otfHVKanaCheckbox = add("checkbox", undefined, localize(_global.otfHVKanaLabel));
_otfHVKanaCheckbox.characters = FIRST_COLUMN_CHAR_NUM;
_otfHVKanaCheckbox["desc"] = localize(_global.otfHVKanaFeatureDesc);
} /* END _otfHVKanaGroup */
} /* END _otfSpecialFeaturePanel */
} /* END _column1Group */
/* ++++++++++++ */
/* + Column 2 + */
/* ++++++++++++ */
var _column2Group = add("group");
with(_column2Group) {
orientation = "column";
alignChildren = ["fill","fill"];
spacing = 15;
var _otfPositionPanel = add("panel", undefined,localize(_global.otfPositionPanelLabel));
with(_otfPositionPanel) {
alignChildren = ["fill","top"];
margins = PANEL_MARGINS;
spacing = 0;
_positionSuperscriptGroup = add("group");
with(_positionSuperscriptGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionSuperscriptCheckbox = add("checkbox", undefined, localize(_global.positionSuperscriptLabel));
_positionSuperscriptCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionSuperscriptCheckbox["desc"] = localize(_global.positionSuperscriptFeatureDesc);
} /* END _positionSuperscriptGroup */
_positionSubscriptGroup = add("group");
with(_positionSubscriptGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionSubscriptCheckbox = add("checkbox", undefined, localize(_global.positionSubscriptLabel));
_positionSubscriptCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionSubscriptCheckbox["desc"] = localize(_global.positionSubscriptFeatureDesc);
} /* END _positionSubscriptGroup */
_positionNumeratorGroup = add("group");
with(_positionNumeratorGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionNumeratorCheckbox = add("checkbox", undefined, localize(_global.positionNumeratorLabel));
_positionNumeratorCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionNumeratorCheckbox["desc"] = localize(_global.positionNumeratorFeatureDesc);
} /* END _positionNumeratorGroup */
_positionDenominatorGroup = add("group");
with(_positionDenominatorGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionDenominatorCheckbox = add("checkbox", undefined, localize(_global.positionDenominatorLabel));
_positionDenominatorCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionDenominatorCheckbox["desc"] = localize(_global.positionDenominatorFeatureDesc);
} /* END _positionDenominatorGroup */
} /* END _otfPositionPanel */
var _otfDigitPanel = add("panel", undefined,localize(_global.otfDigitPanelLabel));
with(_otfDigitPanel) {
alignChildren = ["fill","top"];
margins = PANEL_MARGINS;
spacing = 0;
_digitDefaultFigureStyleGroup = add("group");
with(_digitDefaultFigureStyleGroup) {
margins = FEATURE_GROUP_MARGINS;
_digitDefaultFigureStyleCheckbox = add("checkbox", undefined, localize(_global.digitDefaultFigureStyleLabel));
_digitDefaultFigureStyleCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_digitDefaultFigureStyleCheckbox["desc"] = localize(_global.digitDefaultFigureStyleFeatureDesc);
} /* END _digitDefaultFigureStyleGroup */
_digitProportionalOldstyleGroup = add("group");
with(_digitProportionalOldstyleGroup) {
margins = FEATURE_GROUP_MARGINS;
_digitProportionalOldstyleCheckbox = add("checkbox", undefined, localize(_global.digitProportionalOldstyleLabel));
_digitProportionalOldstyleCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_digitProportionalOldstyleCheckbox["desc"] = localize(_global.digitProportionalOldstyleFeatureDesc);
} /* END _digitProportionalOldstyleGroup */
_digitProportionalLiningGroup = add("group");
with(_digitProportionalLiningGroup) {
margins = FEATURE_GROUP_MARGINS;
_digitProportionalLiningCheckbox = add("checkbox", undefined, localize(_global.digitProportionalLiningLabel));
_digitProportionalLiningCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_digitProportionalLiningCheckbox["desc"] = localize(_global.digitProportionalLiningFeatureDesc);
} /* END _digitProportionalLiningGroup */
_digitTabularOldstyleGroup = add("group");
with(_digitTabularOldstyleGroup) {
margins = FEATURE_GROUP_MARGINS;
_digitTabularOldstyleCheckbox = add("checkbox", undefined, localize(_global.digitTabularOldstyleLabel));
_digitTabularOldstyleCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_digitTabularOldstyleCheckbox["desc"] = localize(_global.digitTabularOldstyleFeatureDesc);
} /* END _digitTabularOldstyleGroup */
_digitTabularLiningGroup = add("group");
with(_digitTabularLiningGroup) {
margins = FEATURE_GROUP_MARGINS;
_digitTabularLiningCheckbox = add("checkbox", undefined, localize(_global.digitTabularLiningLabel));
_digitTabularLiningCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_digitTabularLiningCheckbox["desc"] = localize(_global.digitTabularLiningFeatureDesc);
} /* END _digitTabularLiningGroup */
} /* END _otfDigitPanel */
var _positionalFormsPanel = add("panel", undefined,localize(_global.positionalFormsPanelLabel));
with(_positionalFormsPanel) {
alignChildren = ["fill","top"];
margins = PANEL_MARGINS;
spacing = 0;
_positionalFormsGeneralGroup = add("group");
with(_positionalFormsGeneralGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionalFormsGeneralCheckbox = add("checkbox", undefined, localize(_global.positionalFormsGeneralLabel));
_positionalFormsGeneralCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionalFormsGeneralCheckbox["desc"] = localize(_global.positionalFormsGeneralFeatureDesc);
} /* END _positionalFormsGeneralGroup */
_positionalFormsAutomaticGroup = add("group");
with(_positionalFormsAutomaticGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionalFormsAutomaticCheckbox = add("checkbox", undefined, localize(_global.positionalFormsAutomaticLabel));
_positionalFormsAutomaticCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionalFormsAutomaticCheckbox["desc"] = localize(_global.positionalFormsAutomaticFeatureDesc);
} /* END _positionalFormsAutomaticGroup */
_positionalFormsInitialGroup = add("group");
with(_positionalFormsInitialGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionalFormsInitialCheckbox = add("checkbox", undefined, localize(_global.positionalFormsInitialLabel));
_positionalFormsInitialCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionalFormsInitialCheckbox["desc"] = localize(_global.positionalFormsInitialFeatureDesc);
} /* END _positionalFormsInitialGroup */
_positionalFormsMedialGroup = add("group");
with(_positionalFormsMedialGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionalFormsMedialCheckbox = add("checkbox", undefined, localize(_global.positionalFormsMedialLabel));
_positionalFormsMedialCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionalFormsMedialCheckbox["desc"] = localize(_global.positionalFormsMedialFeatureDesc);
} /* END _positionalFormsMedialGroup */
_positionalFormsFinalGroup = add("group");
with(_positionalFormsFinalGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionalFormsFinalCheckbox = add("checkbox", undefined, localize(_global.positionalFormsFinalLabel));
_positionalFormsFinalCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionalFormsFinalCheckbox["desc"] = localize(_global.positionalFormsFinalFeatureDesc);
} /* END _positionalFormsFinalGroup */
_positionalFormsIsolatedGroup = add("group");
with(_positionalFormsIsolatedGroup) {
margins = FEATURE_GROUP_MARGINS;
_positionalFormsIsolatedCheckbox = add("checkbox", undefined, localize(_global.positionalFormsIsolatedLabel));
_positionalFormsIsolatedCheckbox.characters = SECOND_COLUMN_CHAR_NUM;
_positionalFormsIsolatedCheckbox["desc"] = localize(_global.positionalFormsIsolatedFeatureDesc);
} /* END _positionalFormsIsolatedGroup */
} /* END _positionalFormsPanel */
} /* END _column2Group */
/* ++++++++++++ */
/* + Column 3 + */
/* ++++++++++++ */
var _column3Group = add("group");
with(_column3Group) {
orientation = "column";
alignChildren = ["fill","fill"];
var _otfStylisticSetsPanel = add("panel", undefined,localize(_global.otfStylisticSetPanelLabel));
with(_otfStylisticSetsPanel) {
orientation = "column";
alignChildren = ["fill","top"];
margins = PANEL_MARGINS;
spacing = 0;
var _otfStylisticSetColumn1Group = add("group");
with(_otfStylisticSetColumn1Group) {
orientation = "column";
alignChildren = ["fill","top"];
spacing = 0;
_otfStylisticSet1Group = add("group");
with(_otfStylisticSet1Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet1Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "1"));
_otfStylisticSet1Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet1Checkbox.code = 2;
} /* END _otfStylisticSet1Group */
_otfStylisticSet2Group = add("group");
with(_otfStylisticSet2Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet2Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "2"));
_otfStylisticSet2Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet2Checkbox.code = 4;
} /* END _otfStylisticSet2Group */
_otfStylisticSet3Group = add("group");
with(_otfStylisticSet3Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet3Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "3"));
_otfStylisticSet3Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet3Checkbox.code = 8;
} /* END _otfStylisticSet3Group */
_otfStylisticSet4Group = add("group");
with(_otfStylisticSet4Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet4Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "4"));
_otfStylisticSet4Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet4Checkbox.code = 16;
} /* END _otfStylisticSet4Group */
_otfStylisticSet5Group = add("group");
with(_otfStylisticSet5Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet5Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "5"));
_otfStylisticSet5Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet5Checkbox.code = 32;
} /* END _otfStylisticSet5Group */
_otfStylisticSet6Group = add("group");
with(_otfStylisticSet6Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet6Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "6"));
_otfStylisticSet6Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet6Checkbox.code = 64;
} /* END _otfStylisticSet6Group */
_otfStylisticSet7Group = add("group");
with(_otfStylisticSet7Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet7Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "7"));
_otfStylisticSet7Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet7Checkbox.code = 128;
} /* END _otfStylisticSet7Group */
_otfStylisticSet8Group = add("group");
with(_otfStylisticSet8Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet8Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "8"));
_otfStylisticSet8Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet8Checkbox.code = 256;
} /* END _otfStylisticSet8Group */
_otfStylisticSet9Group = add("group");
with(_otfStylisticSet9Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet9Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "9"));
_otfStylisticSet9Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet9Checkbox.code = 512;
} /* END _otfStylisticSet9Group */
_otfStylisticSet10Group = add("group");
with(_otfStylisticSet10Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet10Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "10"));
_otfStylisticSet10Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet10Checkbox.code = 1024;
} /* END _otfStylisticSet10Group */
_otfStylisticSet11Group = add("group");
with(_otfStylisticSet11Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet11Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "11"));
_otfStylisticSet11Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet11Checkbox.code = 2048;
} /* END _otfStylisticSet11Group */
_otfStylisticSet12Group = add("group");
with(_otfStylisticSet12Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet12Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "12"));
_otfStylisticSet12Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet12Checkbox.code = 4096;
} /* END _otfStylisticSet12Group */
_otfStylisticSet13Group = add("group");
with(_otfStylisticSet13Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet13Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "13"));
_otfStylisticSet13Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet13Checkbox.code = 8192;
} /* END _otfStylisticSet13Group */
_otfStylisticSet14Group = add("group");
with(_otfStylisticSet14Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet14Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "14"));
_otfStylisticSet14Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet14Checkbox.code = 16384;
} /* END _otfStylisticSet14Group */
_otfStylisticSet15Group = add("group");
with(_otfStylisticSet15Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet15Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "15"));
_otfStylisticSet15Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet15Checkbox.code = 32768;
} /* END _otfStylisticSet15Group */
_otfStylisticSet16Group = add("group");
with(_otfStylisticSet16Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet16Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "16"));
_otfStylisticSet16Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet16Checkbox.code = 65536;
} /* END _otfStylisticSet16Group */
_otfStylisticSet17Group = add("group");
with(_otfStylisticSet17Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet17Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "17"));
_otfStylisticSet17Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet17Checkbox.code = 131072;
} /* END _otfStylisticSet17Group */
_otfStylisticSet18Group = add("group");
with(_otfStylisticSet18Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet18Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "18"));
_otfStylisticSet18Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet18Checkbox.code = 262144;
} /* END _otfStylisticSet18Group */
_otfStylisticSet19Group = add("group");
with(_otfStylisticSet19Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet19Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "19"));
_otfStylisticSet19Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet19Checkbox.code = 524288;
} /* END _otfStylisticSet19Group */
_otfStylisticSet20Group = add("group");
with(_otfStylisticSet20Group) {
margins = FEATURE_GROUP_MARGINS_NARROW;
_otfStylisticSet20Checkbox = add("checkbox", undefined, localize(_global.otfStylisticSetLabel, "20"));
_otfStylisticSet20Checkbox.characters = THIRD_COLUMN_CHAR_NUM;
_otfStylisticSet20Checkbox.code = 1048576;
} /* END _otfStylisticSet20Group */
} /* END _otfStylisticSetColumn2Group */
} /* END _otfStylisticSetsPanel */
} /* END _column3Group */
} /* END _row1Group */
var _row2Group = add("group");
with(_row2Group) {
alignChildren = ["fill","fill"];
margins = [0,0,0,0];
var _actionsGroup = add('group');
with(_actionsGroup) {
margins = [0,0,0,0];
_cStyleNameEdittext = add("edittext", undefined, "");
with(_cStyleNameEdittext) {
characters = 24;
alignment = ["left","middle"];
} /* END _cStyleNameEdittext */
_cStyleButton = add('button', undefined, ("+ " + localize(_global.cStyleButtonLabel)), { name:"ok" });
with(_cStyleButton) {
alignment = ["left","middle"];
helpTip = localize(_global.cStyleButtonHelpTip);
} /* END _cStyleButton */
_applyStyleToSelectionCheckbox = add("checkbox", undefined, localize(_global.applyStyleToSelectionCheckboxLabel));
with(_applyStyleToSelectionCheckbox) {
alignment = ["left","middle"];
helpTip = localize(_global.applyStyleToSelectionCheckboxHelpTip);
} /* END _applyStyleToSelectionCheckbox */
_refreshButton = add("button", undefined, localize(_global.refreshButtonLabel));
with(_refreshButton) {
alignment = ["right","middle"];
preferredSize.width = 120;
helpTip = localize(_global.refreshButtonHelpTip);
} /* END _refreshButton */
} /* END _actionsGroup */
} /* END _row2Group */
} /* END _selectionGroup */
} /* END _basicTab */
/* extended Tab */
var _extendedTab = add("tab", undefined, localize(_global.extendedFeaturesTabLabel));
with(_extendedTab) {
orientation = "row";
alignChildren = ["fill","fill"];
var _extendedTabC1Group = add("group");
with(_extendedTabC1Group) {
orientation = "column";
alignChildren = ["fill","fill"];
var _extendedTabC1R1Group = add("group");
with(_extendedTabC1R1Group) {
alignChildren = ["fill","fill"];
/* ++++++++++++++++++++++++++ */
/* + Extended – Tag Listbox + */
/* ++++++++++++++++++++++++++ */
} /* END _extendedTabC1R1Group */
var _extendedTabC1R2Group = add("group");
with(_extendedTabC1R2Group) {
var _extendedTabTagFilterGroup = add("group");
with(_extendedTabTagFilterGroup) {
orientation = "column";
spacing = 5;
var _extendedTabTagFilterLabel = add("statictext", undefined, localize(_global.tagFilterLabel));
with(_extendedTabTagFilterLabel) {
alignment = "left";
} /* END _extendedTabTagFilterLabel */
_extendedTabTagFilterEdittext = add("edittext", undefined, "");
with(_extendedTabTagFilterEdittext) {
characters = 17;
helpTip = localize(_global.tagFilterHelpTip);
} /* END _extendedTabTagFilterEdittext */
} /* END _extendedTabTagFilterGroup */
var _extendedTabLabelFilterGroup = add("group");
with(_extendedTabLabelFilterGroup) {
orientation = "column";
spacing = 5;
var _extendedTabLabelFilterLabel = add("statictext", undefined, localize(_global.labelFilterLabel));
with(_extendedTabLabelFilterLabel) {
alignment = "left";
} /* END _extendedTabLabelFilterLabel */
_extendedTabLabelFilterEdittext = add("edittext", undefined, "");
with(_extendedTabLabelFilterEdittext) {
characters = 17;
} /* END _extendedTabLabelFilterEdittext */
} /* END _extendedTabLabelFilterGroup */
} /* END _extendedTabC1R2Group */
} /* END _extendedTabC1Group */
var _extendedTabC2Group = add("group");
with(_extendedTabC2Group) {
orientation = "column";
alignChildren = ["fill","fill"];
var _extendedTabC2R1Group = add("group");
with(_extendedTabC2R1Group) {
alignChildren = ["fill","fill"];
/* +++++++++++++++++++++++++++ */
/* + Selection – Tag Listbox + */
/* +++++++++++++++++++++++++++ */
} /* END _extendedTabC2R1Group */
var _extendedTabC2R2Group = add("group");
with(_extendedTabC2R2Group) {
alignChildren = ["right","bottom"];
var _extendedTabClearButtonGroup = add("group");
with(_extendedTabClearButtonGroup) {
orientation = "column";
margins.bottom = 5;
spacing = 5;
_extendedTabClearButton = add("button", undefined, localize(_global.extendedTabClearButtonLabel));
with(_extendedTabClearButton) {
preferredSize.width = 100;
helpTip = localize(_global.extendedTabClearButtonHelpTip);
} /* END _extendedTabClearButton */
} /* END _extendedTabClearButtonGroup */
var _extendedTabApplyButtonGroup = add("group");
with(_extendedTabApplyButtonGroup) {
orientation = "column";
margins.bottom = 5;
spacing = 5;
_extendedTabApplyButton = add("button", undefined, localize(_global.extendedTabApplyButtonLabel));
with(_extendedTabApplyButton) {
preferredSize.width = 100;
helpTip = localize(_global.extendedTabApplyButtonHelpTip);
} /* END _extendedTabApplyButton */
} /* END _extendedTabApplyButtonGroup */
} /* END _extendedTabC2R2Group */
} /* END _extendedTabC2Group */
} /* END _extendedTab */
/* Search Tab */
var _searchTab = add("tab", undefined, localize(_global.fontSearchTabLabel));
with(_searchTab) {
orientation = "row";
alignChildren = ["fill","fill"];
var _searchTabC1Group = add("group");
with(_searchTabC1Group) {
orientation = "column";
alignChildren = ["fill","fill"];
var _searchTabC1R1Group = add("group");
with(_searchTabC1R1Group) {
alignChildren = ["fill","fill"];
/* ++++++++++++++++++++++++++ */
/* + Search Font – Tag List + */
/* ++++++++++++++++++++++++++ */
} /* END _searchTabC1R1Group */
var _searchTabC1R2Group = add("group");
with(_searchTabC1R2Group) {
var _searchTabTagFilterGroup = add("group");
with(_searchTabTagFilterGroup) {
orientation = "column";
spacing = 5;
var _searchTabTagFilterLabel = add("statictext", undefined, localize(_global.tagFilterLabel));
with(_searchTabTagFilterLabel) {
alignment = "left";
} /* END _searchTabTagFilterLabel */
_searchTabTagFilterEdittext = add("edittext", undefined, "");
with(_searchTabTagFilterEdittext) {
characters = 17;
helpTip = localize(_global.tagFilterHelpTip);
} /* END _searchTabTagFilterEdittext */
} /* END _searchTabTagFilterGroup */
var _searchTabLabelFilterGroup = add("group");
with(_searchTabLabelFilterGroup) {
orientation = "column";
spacing = 5;
var _searchTabLabelFilterLabel = add("statictext", undefined, localize(_global.labelFilterLabel));
with(_searchTabLabelFilterLabel) {
alignment = "left";
} /* END _searchTabLabelFilterLabel */
_searchTabLabelFilterEdittext = add("edittext", undefined, "");
with(_searchTabLabelFilterEdittext) {
characters = 17;
} /* END _searchTabLabelFilterEdittext */
} /* END _searchTabLabelFilterGroup */
} /* END _searchTabC1R2Group */
} /* END _searchTabC1Group */
var _searchTabC2Group = add("group");
with(_searchTabC2Group) {
orientation = "column";
alignChildren = ["fill","fill"];
var _searchTabC2R1Group = add("group");
with(_searchTabC2R1Group) {
alignChildren = ["fill","fill"];
/* ++++++++++++++++++++++++++++++ */
/* + Search Font – Font Listbox + */
/* ++++++++++++++++++++++++++++++ */
} /* END _searchTabC2R1Group */
var _searchTabC2R2Group = add("group");
with(_searchTabC2R2Group) {
alignment = "right";
var _searchTabFontNameFilterGroup = add("group");
with(_searchTabFontNameFilterGroup) {
orientation = "column";
spacing = 5;
var _searchTabFontNameFilterLabel = add("statictext", undefined, localize(_global.fontNameFilterLabel));
with(_searchTabFontNameFilterLabel) {
alignment = "left";
} /* END _searchTabFontNameFilterLabel */
_searchTabFontNameFilterEdittext = add("edittext", undefined, "");
with(_searchTabFontNameFilterEdittext) {
characters = 11;
} /* END _searchTabFontNameFilterEdittext */
} /* END _searchTabFontNameFilterGroup */
var _searchTabFontStyleFilterGroup = add("group");
with(_searchTabFontStyleFilterGroup) {
orientation = "column";
spacing = 5;
var _searchTabFontStyleFilterLabel = add("statictext", undefined, localize(_global.fontStyleFilterLabel));
with(_searchTabFontStyleFilterLabel) {
alignment = "left";
} /* END _searchTabFontStyleFilterLabel */
_searchTabFontStyleFilterEdittext = add("edittext", undefined, "");
with(_searchTabFontStyleFilterEdittext) {
characters = 11;
} /* END _searchTabFontStyleFilterEdittext */
} /* _searchTabFontStyleFilterGroup */
var _searchTabApplyFontButtonGroup = add("group");
with(_searchTabApplyFontButtonGroup) {
orientation = "column";
alignment = "bottom";
margins.bottom = 5;
_searchTabApplyFontButton = add("button", undefined, localize(_global.applyFontButtonLabel));
with(_searchTabApplyFontButton) {
preferredSize.width = 90;
helpTip = localize(_global.applyFontButtonHelpTip);
} /* END _searchTabApplyFontButton */
} /* END _searchTabApplyFontButtonGroup */
} /* END _searchTabC2R2Group */
} /* END _searchTabC2Group */
} /* END _searchTab */
var _prefsTab = add("tab", undefined, localize(_global.preferencesTabLabel));
with(_prefsTab) {
orientation = "row";
alignChildren = ["fill","fill"];
var _prefsTabC1Group = add("group");
with(_prefsTabC1Group) {
orientation = "column";
alignChildren = ["fill","top"];
var _prefsTabTextPreferencesPanel = add("panel", undefined, localize(_global.prefsTabTextPreferencesPanelLabel));
with(_prefsTabTextPreferencesPanel) {
alignChildren = ["fill","fill"];
margins = [15,20,15,15];
var _prefsTabShaperGroup = add("group");
with(_prefsTabShaperGroup) {
alignChildren = ["left","top"];
var _prefsTabShaperLabelGroup = add("group");
with(_prefsTabShaperLabelGroup) {
add("statictext", undefined, (localize(_global.prefsTabShaperLabel) + ":"));
} /* END _prefsTabShaperLabelGroup */
var _prefsTabShaperRadioButtonGroup = add("group");
with(_prefsTabShaperRadioButtonGroup) {
var _prefsTabShaperLipikaRadio = add("radiobutton", undefined, localize(_global.prefsTabShaperLipikaLabel));
with(_prefsTabShaperLipikaRadio) {
helpTip = localize(_global.prefsTabShaperLipikaHelptip);
} /* END _prefsTabShaperLipikaRadio */
var _prefsTabShaperHarfbuzzRadio = add("radiobutton", undefined, localize(_global.prefsTabShaperHarfbuzzLabel));
with(_prefsTabShaperHarfbuzzRadio) {
helpTip = localize(_global.prefsTabShaperHarfbuzzHelptip);
} /* END _prefsTabShaperHarfbuzzRadio */
} /* END _prefsTabShaperRadioButtonGroup */
} /* END _prefsTabShaperGroup */
} /* END _prefsTabTextPreferencesPanel */
} /* END _prefsTabC1Group */
} /* END _prefsTab */
} /* END _tabPanel */
/* General Buttons */
var _buttonGroup = add("group");
with(_buttonGroup) {
margins = [0,8,0,5];
spacing = 140;
_displayHelpTipCheckbox = add("checkbox", undefined, localize(_global.displayHelpTipCheckboxLabel));
with(_displayHelpTipCheckbox) {
alignment = ["center","bottom"];
} /* END _displayHelpTipCheckbox */
_closeButton = add("button", undefined, localize(_global.cancelButtonLabel), { name:"cancel" });
with(_closeButton) {
alignment = ["center","bottom"];
preferredSize.width = 120;
helpTip = localize(_global.closeButtonHelpTip);
} /* END _closeButton */
} /* END _buttonGroup */
} /* END palette _otfWindow */
/* Callbacks */
/* General Features */
_ligaturesCheckbox.onClick = function() {
__setValue("ligatures", this.value, _otfWindow);
__checkInputs("ligatures");
};
_otfDiscretionaryLigatureCheckbox.onClick = function() {
__setValue("otfDiscretionaryLigature", this.value, _otfWindow);
__checkInputs("otfDiscretionaryLigature");
};
_otfFractionCheckbox.onClick = function() {
__setValue("otfFraction", this.value, _otfWindow);
__checkInputs("otfFraction");
};
_otfOrdinalCheckbox.onClick = function() {
__setValue("otfOrdinal", this.value, _otfWindow);
__checkInputs("otfOrdinal");