Skip to content

Instantly share code, notes, and snippets.

@clafferty-powa
Created January 7, 2016 16:58
Show Gist options
  • Select an option

  • Save clafferty-powa/04c9631566aa62da1d21 to your computer and use it in GitHub Desktop.

Select an option

Save clafferty-powa/04c9631566aa62da1d21 to your computer and use it in GitHub Desktop.
Android PowaPOS Receipt Builder with Portuguese Characters
String portChars = "\nCapital Vowels\n" +
"À ALT0192 À\n" +
"Á ALT0193 Á\n" +
"Â ALT0194 Â\n" +
"Ã ALT0195 Ã\n" +
"É ALT0201 É\n" +
"Ê ALT0202 Ê\n" +
"Í ALT0205 Í\n" +
"Ó ALT0211 Ó\n" +
"Ô ALT0212 Ô\n" +
"Õ ALT0213 Õ\n" +
"Ú ALT0218 Ú\n" +
"Ü ALT0220 Ü\n" +
"\nLowercase Vowels\n" +
"à ALT0224 à\n" +
"á ALT0225 á\n" +
"â ALT0226 â\n" +
"ã ALT0227 ã\n" +
"é ALT0233 é\n" +
"ê ALT0234 ê\n" +
"í ALT0237 í\n" +
"ó ALT0243 ó\n" +
"ô ALT0244 ô\n" +
"õ ALT0245 õ\n" +
"ú ALT0250 ú\n" +
"ü ALT0252 ü\n" +
"\nOther Symbols\n" +
"Ç ALT0199 Ç\n" +
"ç ALT0231 ç\n" +
"º ALT0186 º\n" +
"ª ALT0170 ª\n" +
"« ALT0171 «\n" +
"» ALT0187 »\n" +
"€ ALT0128 €\n\n\n\n";
PowaTextProperties textProp = new PowaTextProperties("Arial", 24);
PowaReceiptBuilder receipt = new PowaReceiptBuilder();
receipt.addText(portChars, PowaPOSEnums.PowaTextAlignment.ALIGN_NORMAL, textProp);
((MainActivity) getActivity()).getPowaPOS().printImage(receipt.getBitmap());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment