README.md in podoff-1.2.3 vs README.md in podoff-1.2.4

- old
+ new

@@ -110,10 +110,11 @@ pa2 = d.page(2) st = d.add_stream # open stream... st.font 'MyHelv', 12 # font is an alias to tf + st.color 0, 0, 0 # rgb black st.text 100, 100, data['customer_name'] st.text 100, 80, data['customer_phone'] st.text 100, 60, data['date'] if data['date'] # fill in customer info on page 2 @@ -138,15 +139,17 @@ # def add_fonts fo0 = add_base_font('/Helvetica') fo1 = add_base_font('/ZapfDingbats') + fo2 = add_base_font('/Courier') pages.each { |pa| pa = re_add(pa) pa.insert_font('/MyHelv', fo0) pa.insert_font('/MyZapf', fo1) + pa.insert_font('/MyMono', fo2) } end end class Stream @@ -237,12 +240,22 @@ TODO ```ruby class Podoff::Stream + # set the current font and font size for the stream + # def tf(font_name, font_size) alias :font :tf + # set the current color for the stream + # + def rg(red, green, blue) + alias :rgb :rg + alias :color :rg + + # write a piece of text at a given position + # def bt(x, y, text) alias :text :bt ```