File: ots-idempotent.1

package info (click to toggle)
opentype-sanitizer 8.2.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,164 kB
  • sloc: cpp: 17,010; makefile: 3
file content (43 lines) | stat: -rw-r--r-- 1,026 bytes parent folder | download | duplicates (9)
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)