log in | register | forums
Show:
Go:
Forums
Username:

Password:

User accounts
Register new account
Forgot password
Forum stats
List of members
Search the forums

Advanced search
Recent discussions
- Archive Edition 27:2 reviewed (News:)
- Rougol May 2024 meeting on monday with Andy Vawer (News:1)
- WROCC May 2024 meeting - Gerph talks games (News:)
- Drag'n'Drop 13i3 edition reviewed (News:1)
- Wakefield Show 2024 in Pictures (News:5)
- April 2024 News Summary (News:2)
- RISC OS 5.30 arrives (News:2)
- Upgrading your RISC OS system to 5.30 (News:2)
- WROCC May 2024 meeting on wednesday - Gerph talks games (News:)
- uniprint upgraded to 4.50 (News:)
Latest postings RSS Feeds
RSS 2.0 | 1.0 | 0.9
Atom 0.3
Misc RDF | CDF
 
View on Mastodon
@www.iconbar.com@rss-parrot.net
Site Search
 
Article archives
Acorn Arcade forums: Programming: Full-justification using Font_Paint
 
  Full-justification using Font_Paint
  Hertzsprung (12:42 14/6/2002)
  james (14:07 15/6/2002)
 
James Shaw Message #133, posted by Hertzsprung at 12:42, 14/6/2002
Hertzsprung
Ghost-like

Posts: 1746
I am having a problem with fully justified text using the Font Manager.

I am using Font_ScanString to break lines at space characters. I pass the returned value into Font_Paint, setting the "Given length" flag. I also wish to fully-justify the text so I set the "Justify" flag also.

This is where the problem arises: The text is cut at the correct place but is not justified correctly. It seems that the Font Manager does not take into consideration the R7 length value when calculating the justification word-spacing.

Can anybody tell me what I am doing wrong?
  ^[ Log in to reply ]
 
James Bursa Message #15585, posted by james at 14:07, 15/6/2002, in reply to message #133
Member
Posts: 2
Which of the methods of justification are you using (bit 0 or bit 5 set)? Can you post the code?
  ^[ Log in to reply ]
 

Acorn Arcade forums: Programming: Full-justification using Font_Paint