update receipt and oqs font
This commit is contained in:
@@ -29,7 +29,7 @@ class OrderSummaryPdf < Prawn::Document
|
||||
|
||||
# order items
|
||||
if order_items == nil
|
||||
order_items(order)
|
||||
order_items(order, alt_name)
|
||||
else
|
||||
order_items(order_items, alt_name)
|
||||
end
|
||||
@@ -102,7 +102,8 @@ class OrderSummaryPdf < Prawn::Document
|
||||
if alt_name
|
||||
y_position = cursor
|
||||
bounding_box([0,y_position], :width => self.item_width, :height => self.item_height) do
|
||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left
|
||||
font "public/fonts/Chinese.ttf"
|
||||
text "(#{odi.alt_name})", :size => self.item_font_size,:align => :left
|
||||
end
|
||||
end
|
||||
move_down 5
|
||||
|
||||
Reference in New Issue
Block a user