# bdf2c **Repository Path**: gumpyang/bdf2c ## Basic Information - **Project Name**: bdf2c - **Description**: No description available - **Primary Language**: C - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-12-19 - **Last Updated**: 2021-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # bdf2c Convert bdf font file to C array sourcecode, convinient for embedded use. ## Usage: ``` bdf2c [-i] [-r 90|180|270] [-d 1] < font.bdf > font.c options -i Invert -r Rotate -d Array dimension ``` ## Exsamples: * bdf2c < font.bdf > font.c ```C { 0x00 //........ ,0x18 //...##... ,0x24 //..#..#.. ,0x42 //.#....#. ,0x42 //.#....#. ,0x02 //......#. ,0x04 //.....#.. ,0x08 //....#... ,0x10 //...#.... ,0x20 //..#..... ,0x20 //..#..... ,0x40 //.#...... ,0x40 //.#...... ,0x7e //.######. ,0x00 //........ ,0x00 //........ }, ``` * bdf2c -i < font.bdf > font.c ```C { 0x00 //........ ,0x18 //...##... ,0x24 //..#..#.. ,0x42 //.#....#. ,0x42 //.#....#. ,0x40 //.#...... ,0x20 //..#..... ,0x10 //...#.... ,0x08 //....#... ,0x04 //.....#.. ,0x04 //.....#.. ,0x02 //......#. ,0x02 //......#. ,0x7e //.######. ,0x00 //........ ,0x00 //........ }, ``` * bdf2c -r 90 < font.bdf > font.c ```C { 0x0000 //................ ,0x3818 //..###......##... ,0x2604 //..#..##......#.. ,0x2102 //..#....#......#. ,0x2082 //..#.....#.....#. ,0x2044 //..#......#...#.. ,0x2038 //..#.......###... ,0x0000 //................ }, ``` * bdf2c -i -r 270 < font.bdf > font.c ```C { 0x0000 //................ ,0x181c //...##......###.. ,0x2064 //..#......##..#.. ,0x4084 //.#......#....#.. ,0x4104 //.#.....#.....#.. ,0x2204 //..#...#......#.. ,0x1c04 //...###.......#.. ,0x0000 //................ }, ```