| .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) |