Hello,
I have 5 font arrays and I use 5 procedures calls in C++ region to read character set of needed font, is it possible to use one procedure and pass array name or reference instead?
i.e. RunNative(ArrayName, Index)
B4X:
Private Sub GetFontByte(FontType As Byte, Index As UInt) As Byte
'TODO(3) Add #C font array:
Select FontType
Case FontDots5x8
Return RunNative("get5x8data", Index)
Case FontDots8x8
Return RunNative("get8x8data", Index)
Case FontArial8x16
Return RunNative("get8x16data", Index)
Case FontDigital16x16
Return RunNative("get16x16data", Index)
Case FontDigital16x24
Return RunNative("get16x24data", Index)
End Select
End Sub