• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. How do you right justify multi-line labels?

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 125
  • Views 14918
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do you right justify multi-line labels?

CADcasualty
CADcasualty over 7 years ago

I have a 2-line instance label that I've created by extracting various attributes from the cell via some skill code. I don't want to break the 2-line label up into 2 separate 1-line labels, and each line can be a random length. If I take the label and give it a justification then only the box containing the 2 lines of text receives the justification, but the text inside the label's bounding box is always left justified. I want the text inside the bounding box to be right justified. How do I do this?

  • Cancel
  • CADcasualty
    CADcasualty over 7 years ago

    So while waiting for a response I did end up writing some code to make the string lengths the same by padding the smaller one with leading spaces. Sigh, now it's apparent that the font used by Virtuoso isn't a fixed width thing, so I can't get my text to align vertically like I want once everything is right justified using this technique. Doh!

    I rummaged around in the default font selections for notes and labels and I did find a fixed width font (called "fixed") but it's ridiculously widely spaced between characters to the extent it's effectively unusable. In fact, aside from the normal "stick" font (which isn't fixed width), the rest of the available font choices are all awful and virtually useless (IMHO). Are there any other font selections out there, and if so what happens if you share a schematic with somebody who doesn't have that font installed? 

    Sorry for sounding so grumbly. It's almost 2:30am here and I've been trying to make this work for a few hours already.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 7 years ago in reply to CADcasualty

    Sorry, but:

    1. The justification  of the label does not actually affect how the text is justified. The text itself is left justified, but the origin of the label ends up on the rightmost side of (say) lowerRight is used.
    2. The set of fonts is predefined and not extendable, so there's no problem with portability. This dates from the days when having vector text was a good thing in terms of printer and plotter support, but unfortunately in this day and age it's rather antiquated. Whilst there have been discussions and experiments to make the fonts proper true type fonts (which would improve readability enormously in my opinion), the priority has never quite been high enough to do it.

    I feel your pain. No need to apologise!

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information