Skip to content
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

Detail colour support available #4

Open
josephwright opened this issue Apr 17, 2023 · 1 comment
Open

Detail colour support available #4

josephwright opened this issue Apr 17, 2023 · 1 comment

Comments

@josephwright
Copy link

Currently the manual does not specify what form of \special (if any) is supported for colouring the output. This would likely include details of any colour stack system available, whether stroke and non-stroke colour are supported separately, etc.

@ruckertm
Copy link
Owner

The current version 2.0 HINT file format does not support any color.

Color support is planed for future versions. Adding color support to the file format is not the difficult part. The design of primitives, that are flexible and can be integrated without too much effort into TeX and most importantly LaTeX is the challenging part.
Just reproducing the PDF primitives is an option, but possibly not the best.

Here is a proposal for discussion:

\HINTbackground
Changes the background of the enclosing box.
If no background color is given the box is transparent.
The page background can be specified in the page template.
If multiple background colors are specified in the same box the last one wins.
Nested boxes can have different background colors.

\HINTforeground
Changes the color of glyphs and rules.
The effect is limited to the enclosing hbox or paragraph.
The effect extends to sub-boxes or sub-paragraphs.
If no color is given the color black is used.
If multiple colors are specified within the same box or paragraph,
every color is used for all glyphs or rules following the color
specification up to the following color specification or the end of
the box or paragraph that contains the color specification.

Since the HINT file format is designed for displaying pages on a computer screen the ARGB representation of colors should be sufficient, given either as a device dependent 8 digit hexadecimal value like 0xFFA08030 or as four device independent decimal numbers in the range 0.0 to 1.0 separated by spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants