-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Variable width font support? #121
Comments
BBC/Agon VDU does support the graphics cursor to write text (VDU 5(, so this might be adaptable for use with variable width fonts. |
yeah - nice idea. so a possibility here could be that we only support a variable width font via the graphics cursor the problematic parts are areas that use character-based positioning. for instance VDU 31, which equates to BASIC's (it's curious that VDU 23,0,&83 is using 16-bit values for the text position - that feels like a mistake. perhaps the VDP should adjust the behaviour of this command when VDU 5 has been set to instead accept screen coordinates?) |
currently the underlying text rendering in vdp-gl only has partial support for rendering text in variable width fonts. code to handle variable width fonts is only present in the currently all our text rendering is done using (it may be the case that characters need to align to standard width) |
alternatively agon-vdp could use |
Building on #120 it is possible using vdp-gl to use variable width fonts. We could, therefore, potentially allow their use inside agon-vdp.
NB this would be an advanced feature, and may not be entirely in keeping with agon-vdp functionality. Since the text cursor system in agon-vdp works on a character position, rather than a screen position, and thus relies on fixed width fonts adding this would be difficult and problematic. Were it added, it may need to use a different text cursor system.
The text was updated successfully, but these errors were encountered: