https://github.com/gerph/riscos-gcontext-example
An example of the use of the GContext library
https://github.com/gerph/riscos-gcontext-example
riscos
Last synced: 2 days ago
JSON representation
An example of the use of the GContext library
- Host: GitHub
- URL: https://github.com/gerph/riscos-gcontext-example
- Owner: gerph
- License: mit
- Created: 2026-04-23T22:24:21.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2026-06-21T09:37:17.000Z (12 days ago)
- Last Synced: 2026-06-21T11:23:20.670Z (12 days ago)
- Topics: riscos
- Language: C
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# RISC OS GContext example code
This repository contains some example code showing how you might use
the [GContext library](https://github.com/gerph/riscos-gcontext).
It demonstrates the creation of contexts, the use of font handles
to render font strings (0-terminated and explicitly sized), and the
distinction between the width of text (xoffset + r-bearing) and the
xoffset of the baseline position. It also shows the use of rectangles
to demonstrate how the graphics operations can be used.
The CI for the repository also shows how the GContext library can
be pulled in to build in CI. The Makefile shows how you reference
the C library.