| 206 | } |
| 207 | |
| 208 | @Override |
| 209 | public void draw(Canvas canvas, int width, int height, float dpi, int xpos, int ypos) { |
| 210 | Point cursor = new Point(xpos, ypos); |
| 211 | canvas.translate(20, 20); |
| 212 | cursor = cursor.offset(-20, -20); |
| 213 | if (_variants[_variantIdx].startsWith("Set 1")) { |
| 214 | cursor = cursor.offset(0, -drawIt(canvas, new String[] { "", "one", "yf", "два", "الخطوط", "🧛", "one yf الخطوط два 🧛" }, inter36, cursor)); |
| 215 | if (zapfino18 != null) |
| 216 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"fiz officiad"}, zapfino18, cursor)); // swashes |
| 217 | // cursor = cursor.offset(0, -drawIt(canvas, "sixستةten", inter36, cursor)); |
| 218 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"الكلب", "sixستةten", "one اثنان 12 واحد two"}, inter36, cursor)); // RTL |
| 219 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"<->", "a<->b", "🧑🏿", "a🧑🏿b"}, inter36, cursor)); // Ligatures |
| 220 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"x̆x̞̊x̃", "c̝̣̱̲͈̝ͨ͐̈ͪͨ̃ͥͅh̙̬̿̂a̯͎͍̜͐͌͂̚o̬s͉̰͊̀"}, inter36, cursor)); // Zero-witdh modifiers |
| 221 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"क्", "क्", "👨👩👧👦", "👨👩👧👦", "a👨👩👧👦b"}, inter36, cursor)); // ZWJ |
| 222 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"میخواهم", "میخواهم"}, inter36, cursor)); // ZWNJ |
| 223 | } else if (_variants[_variantIdx].startsWith("Set 2")) { |
| 224 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"", "🧛", "🧛🧛", "🧛a🧛", "a🧛a🧛a", "🧛 🧛"}, inter36, cursor)); |
| 225 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"☹️", "☹️☹️", "☹️a☹️", "a☹️a☹️a", "☹️ ☹️"}, inter36, cursor)); |
| 226 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"🤵🏽", "👨🏭", "🇦🇱", "*️⃣"}, inter36, cursor)); |
| 227 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"🏴", "🚵🏻♀️"}, inter36, cursor)); |
| 228 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"😮💨", "❤️🔥", "🧔♀", "👨🏻❤️💋👨🏼"}, inter36, cursor)); |
| 229 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"Ǎ", "Ǎ", "x̆x̞̊x̃", "<->"}, inter36, cursor)); |
| 230 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"Z̵̡̢͇͓͎͖͎̪͑͜ͅͅ"}, inter36, cursor)); |
| 231 | } else if (_variants[_variantIdx].startsWith("Set 3")) { |
| 232 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"abcdef"}, inter36, cursor)); |
| 233 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"-><=><->=>"}, inter36, cursor)); |
| 234 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"aăå̞ã dấu hỏi k̟t̠ c̝̣̱̲͈̝ͨ͐̈ͪͨ̃ͥͅh̙̬̿̂a̯͎͍̜͐͌͂̚o̬s͉̰͊̀"}, jbMono36, cursor)); |
| 235 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"☹️🤵🏽👨🏭🇦🇱*️⃣🏴🚵🏻♀️🤦🏼♂"}, inter36, cursor)); |
| 236 | cursor = cursor.offset(0, -drawIt(canvas, new String[] {"🧔♀👨🏻❤️💋👨🏼"}, inter36, cursor)); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | // Furthermore, العربية نص جميل. द क्विक ब्राउन फ़ॉक्स jumps over the lazy 🐕. |
| 241 | // A true 🕵🏽♀️ will spot the tricky selection in this BiDi text: ניפגש ב09:35 בחוף הים |