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
- Upgrading your RISC OS system to 5.30 (News:2)
- WROCC May 2024 meeting on wednesday - Gerph talks games (News:)
- Wakefield Show 2024 in Pictures (News:4)
- RISC OS 5.30 arrives (News:1)
- April 2024 News Summary (News:1)
- uniprint upgraded to 4.50 (News:)
- PhotoDesk 3.23 released (News:)
- R-Comp reveals N.Ex.T Boxes - the successor to the i.MX6 (News:)
- RISCOSbits at Wakefield Show 2024 (News:)
- R-Comp releases Genealogy v2 (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
The Icon Bar: 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 ]
 

The Icon Bar: Programming: Full-justification using Font_Paint