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
- Elsear brings super-fast Networking to Risc PC/A7000/A7000+ (News:)
- Latest hardware upgrade from RISCOSbits (News:)
- Announcing the TIB 2024 Advent Calendar (News:1)
- Code GCC produces that makes you cry #12684 (Prog:39)
- RISCOSbits releases a new laptop solution (News:)
- Rougol November 2024 meeting on monday (News:)
- Drag'n'Drop 14i1 edition reviewed (News:)
- WROCC November 2024 talk o...ay - Andrew Rawnsley (ROD) (News:2)
- October 2024 News Summary (News:3)
- RISC OS London Show Report 2024 (News:1)
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 (11:42 14/6/2002)
  james (13:07 15/6/2002)
 
James Shaw Message #133, posted by Hertzsprung at 11: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 13: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