-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathots-idempotent.1
43 lines (43 loc) · 1 KB
/
ots-idempotent.1
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
.TH OTS-IDEMPOTENT "1" "May 2021" "OpenType Sanitizer" "User Commands"
.SH NAME
ots-idempotent \- font transcoder
.SH SYNOPSIS
.B ots-idempotent
\fI\,FONT_FILE\/\fR
.SH DESCRIPTION
.PP
ots-idempotent is a program which validates and transcodes a font file using OTS.
This tool transcodes the original font twice and then verifies that the two
transcoded fonts are identical:
.PP
.RS
.nf
t1\ =\ ValidateAndTranscode(original_font);
if\ (validation_error)
\ \ PrintErrorAndExit;
t2\ =\ ValidateAndTranscode(t1);
if\ (validation_error)
\ \ PrintErrorAndExit;
if\ (t1\ !=\ t2)
\ \ PrintErrorAndExit;
.fi
.RE
.PP
This tool is basically for OTS developers.
.SH EXAMPLES
.RS
.nf
$ ./ots-idempotent sample.otf
$ ./ots-idempotent malformed.ttf
WARNING: bad range shift
ERROR at src/ots.cc:670 (ProcessGeneric)
Failed to sanitize file!
.fi
.RE
.SH "REPORTING BUGS"
Report bugs to <https://github.com/khaledhosny/ots/issues>
.SH "SEE ALSO"
.BR ots-perf (1),
.BR ots-sanitize (1),
.BR ots-side-by-side (1),
.BR ots-validator-checker (1)