| GNU Unifont 16.0.01
    Pan-Unicode font with complete Unicode Plane 0  coverage and partial coverage of higher planes | 
unicoverage - Show the coverage of Unicode plane scripts for a GNU Unifont hex glyph file More...
#include <stdio.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
| Macros | |
| #define | MAXBUF 256 | 
| Maximum input line length - 1.  More... | |
| Functions | |
| int | main (int argc, char *argv[]) | 
| The main function.  More... | |
| int | nextrange (FILE *coveragefp, int *cstart, int *cend, char *coverstring) | 
| Get next Unicode range.  More... | |
| void | print_subtotal (FILE *outfp, int print_n, int nglyphs, int cstart, int cend, char *coverstring) | 
| Print the subtotal for one Unicode script range.  More... | |
unicoverage - Show the coverage of Unicode plane scripts for a GNU Unifont hex glyph file
Synopsis: unicoverage [-ifont_file.hex] [-ocoverage_file.txt]
This program requires the file "coverage.dat" to be present in the directory from which it is run.
Definition in file unicoverage.c.
| #define MAXBUF 256 | 
Maximum input line length - 1.
Definition at line 60 of file unicoverage.c.
| int main | ( | int | argc, | 
| char * | argv[] | ||
| ) | 
The main function.
| [in] | argc | The count of command line arguments. | 
| [in] | argv | Pointer to array of command line arguments. | 
Definition at line 71 of file unicoverage.c.

| int nextrange | ( | FILE * | coveragefp, | 
| int * | cstart, | ||
| int * | cend, | ||
| char * | coverstring | ||
| ) | 
Get next Unicode range.
This function reads the next Unicode script range to count its glyph coverage.
| [in] | coveragefp | File pointer to Unicode script range data file. | 
| [in] | cstart | Starting code point in current Unicode script range. | 
| [in] | cend | Ending code point in current Unicode script range. | 
| [out] | coverstring | String containing <cstart>-<cend> substring. | 
Definition at line 192 of file unicoverage.c.

| void print_subtotal | ( | FILE * | outfp, | 
| int | print_n, | ||
| int | nglyphs, | ||
| int | cstart, | ||
| int | cend, | ||
| char * | coverstring | ||
| ) | 
Print the subtotal for one Unicode script range.
| [in] | outfp | Pointer to output file. | 
| [in] | print_n | 1 = print number of glyphs, 0 = print percentage. | 
| [in] | nglyphs | Number of glyphs in current range. | 
| [in] | cstart | Starting code point for current range. | 
| [in] | cend | Ending code point for current range. | 
| [in] | coverstring | Character string of "<cstart>-<cend>". | 
Definition at line 233 of file unicoverage.c.
