|
Post by bencooper on Jan 1, 2020 15:09:02 GMT -5
I am writing an educational app which requires the use of mathematical symbols, mainly Greek but also the integration symbol ∫ (stylised S)? I had in mind to "hotkey" some basic symbols for use in the Liberty Basic program Is there a Character Set in LB (as there is in Windows, for example). Any ideas on the best way to simplify this task?
|
|
|
Post by sarossell on Jan 1, 2020 16:04:10 GMT -5
I'm not sure if this helps, but Windows comes standard with the font called "Cambria Math" which has all the symbols you would need. You should be able to use the Liberty BASIC font command like in the following code:
'Draw in a graphics window using the font Arial 14 point italic
open "Font example" for graphics as #fontExample print #fontExample, "trapclose [quit]" print #fontExample, "down" print #fontExample, "font cambria math 14 italic" print #fontExample, "\\This is Cambria Math 14 point italic" wait
[quit] close #fontExample end
I'm not quite sure where to go from there though.
Best of luck! :@)
|
|
|
Post by Rod on Jan 2, 2020 4:38:35 GMT -5
I don't think fonts will work. I am not sure exactly why but I think it is because Liberty uses a code table with a fixed set of symbols. Wingdings has never worked on Liberty. So while the font changes basic symbols, you cannot access the extended range. Things will change with Liberty BASIC 5. Here you will be able to use html or extended characters.
All that said formula presentation on a computer has always been problematic. If you want a wide range of easily amended formula you might be better getting a dedicated tool / editor. If it is just a few formula with a limited symbol set and presentation placement you might consider grabbing some symbols and making a sprite set. Then you can simply place your sprites to create the formula image. As it is a graphic it can be printed at any size.
Would need to see the formula range we are discussing.
|
|
|
Post by honkytonk on Jan 4, 2020 7:03:58 GMT -5
You can make your symbols in BMP (fixed background) or in sprites (indifferent background) from symbols taken on the net; and write with.
|
|