diff options
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | Makefile | 6 | ||||
| -rw-r--r-- | README.md | 12 | ||||
| -rw-r--r-- | output.pdf | bin | 15902 -> 15883 bytes | |||
| -rw-r--r-- | src/calp.c | 5 | ||||
| -rw-r--r-- | src/calp.o | bin | 14008 -> 14008 bytes |
6 files changed, 22 insertions, 5 deletions
@@ -1,5 +1,5 @@ calp -0.pdf -main.o +output.pdf +calp.o draw.o TODO @@ -3,15 +3,17 @@ PREFIX = /usr/local CC = cc DIR = src OBJS = $(DIR)/draw.o $(DIR)/calp.o $(DIR)/date.o -LIBS = -lcairo .PHONY: clean all install +FLAGS = `pkg-config --cflags pangocairo` +LIBS = `pkg-config --libs pangocairo` + CFLAGS = -O2 -g -Wall -Werror -Wextra -Winit-self -Wuninitialized -pedantic all: calp calp: $(OBJS) - $(CC) $(LIBS) -o calp $(OBJS) + $(CC) $(FLAGS) -o calp $(OBJS) $(LIBS) clean: -rm -f $(OBJS) calp @@ -4,6 +4,7 @@ calp attempts to generate dry and attractive calendars that can be printed. It i # Dependencies - `cairo` - `gcc` +- `git` # Install ``` @@ -15,9 +16,20 @@ make clean install # Uninstall - `make uninstall` +# Usage +``` +# BASIC +calp # Generate 12-month calendar with default options +``` + # Planned Features +- Toy Font API --> Pango Backend - Arguments (`getopts`) +- Various International Paper Size Support - Custom layout file parsing (config files) - Holidays (.csv files) - Month Art - Moon Phases + +# Contact +If you have a comment or concern, please contact me through my email [here](https://foswret.com/about/). If you have a change you'd like to make to the code, I can create a mirror GitHub repository to ease collaborative development. Binary files differ@@ -11,6 +11,8 @@ #include <cairo/cairo-pdf.h> #include <cairo/cairo.h> +//#include <pango/pangocairo.h> + /* calp Libraries */ #include "color.h" #include "date.h" @@ -19,6 +21,7 @@ // int main (int argc, char *argv[]) { int main (void) { // Dimension initialization + //PangoLayout *layout; int rows = 6; // Number of weeks in a month int columns = 7; // Number of days in a week int months_in_year = 12; @@ -54,7 +57,7 @@ int main (void) { }; // If year is a leap year, isleap(year) = 1, and will be added to February. - int year = 2028; + int year = 1943; int days_in_month[12] = {31, 28 + isleap(year), 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
