Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Basic TTF font printing #10

Closed
seclerp opened this issue Feb 20, 2018 · 3 comments
Closed

Basic TTF font printing #10

seclerp opened this issue Feb 20, 2018 · 3 comments
Assignees
Labels
help wanted Extra attention is needed topic: graphics

Comments

@seclerp
Copy link
Owner

seclerp commented Feb 20, 2018

Also support for default font
Proposal: Verdana

Methods' signature proposal:
Graphics.SetFont(Font font, int size)
Graphics.Print(string text, float x, float y, float r, float sx, float sy)

@seclerp seclerp created this issue from a note in OxyEngine Task Plan (Current release ToDo's) Feb 20, 2018
@seclerp seclerp moved this from Current release ToDo's to In progress in OxyEngine Task Plan Feb 20, 2018
@seclerp seclerp self-assigned this Feb 20, 2018
@seclerp seclerp added this to the 0.1 "Early Aurora" milestone Feb 20, 2018
@seclerp
Copy link
Owner Author

seclerp commented Feb 20, 2018

We will use TextPrinter for the first of engine lifetime, after some additional research we will write something better.

seclerp added a commit that referenced this issue Feb 20, 2018
seclerp added a commit that referenced this issue Feb 20, 2018
seclerp added a commit that referenced this issue Feb 20, 2018
@seclerp
Copy link
Owner Author

seclerp commented Feb 21, 2018

TextPrinter replaced by QuickFont, but with some problems. Working on fixing.

@seclerp seclerp added the help wanted Extra attention is needed label Feb 21, 2018
@seclerp
Copy link
Owner Author

seclerp commented Feb 21, 2018

Task done, but by using object model instead of immediate mode rendering.

New API:
TextObject NewText(Font font, string text) in Graphics module for text object construction
void Draw(IDrawable, float x, float y, float r, float sx, float sy) in Graphics module for text drawing
For Font loading see #9

For other methods in TextObject see sources.

Also there are print-example.py in TextPlayer/scripts folder.

@seclerp seclerp closed this as completed Feb 21, 2018
OxyEngine Task Plan automation moved this from In progress to Done Feb 21, 2018
seclerp added a commit that referenced this issue Feb 21, 2018
@seclerp seclerp removed this from Done in OxyEngine Task Plan Mar 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
help wanted Extra attention is needed topic: graphics
Projects
None yet
Development

No branches or pull requests

1 participant