Latin_o2i
Posted: Sun Jun 15, 2014 9:17 pm
I present you a simple implementation of the Western Latin font by including a small (3K) file with a precompiled routine.
To print text in Western Latin, the included routine must be called instead of the syscall function 4, using the same parameters.
Please look at the "PrintLatin.asm" example application to see the simplicity of it.
Notes:
- when assembling the example, you must adjust the paths of the includes.
- the file-suffix (o2i) stands for "object to include"
- the routine uses 6K stack space
- the routine is written in Mas (Modern assembly, a language still to be published, black box for now)
- to properly print accents, latin font characters are printed one pixel lower then the system font
I could add the option to use the system font if the user-language is Russian or implement code pages according the country.
Next to implement is a function to get a keyboard key with dead key handling.
Maybe then comes underlined text, Input fields, textbox, ... etc.
I would like your opinion on this approach (while waiting for the implementation of unicode).
To print text in Western Latin, the included routine must be called instead of the syscall function 4, using the same parameters.
Please look at the "PrintLatin.asm" example application to see the simplicity of it.
Notes:
- when assembling the example, you must adjust the paths of the includes.
- the file-suffix (o2i) stands for "object to include"
- the routine uses 6K stack space
- the routine is written in Mas (Modern assembly, a language still to be published, black box for now)
- to properly print accents, latin font characters are printed one pixel lower then the system font
I could add the option to use the system font if the user-language is Russian or implement code pages according the country.
Next to implement is a function to get a keyboard key with dead key handling.
Maybe then comes underlined text, Input fields, textbox, ... etc.
I would like your opinion on this approach (while waiting for the implementation of unicode).