Author Topic: Font size and type of port labels  (Read 2824 times)

McMannus

  • EA User
  • **
  • Posts: 108
  • Karma: +4/-1
    • View Profile
Font size and type of port labels
« on: December 05, 2013, 03:16:24 am »
Hi folks,

I'm developing a mechanism for arbitrarily positioning port labels relative to the port in a diagram. This works quite good within my tests, but in order to be exact, it's necessary to know the exact font type and size of the labels.

I'd appreciate if someone could tell me. In return I'd share the code here ;)

Helmut Ortmann

  • EA User
  • **
  • Posts: 967
  • Karma: +42/-1
    • View Profile
Re: Font size and type of port labels
« Reply #1 on: December 05, 2013, 08:14:04 am »
Hi,

I haven't tried it with ports. I think it's the same procedure as with other diagramobjects. A good source to understand:
  • Make a simple model and explore the setting by SQL
  • Read the book InsideEA from Thomas Kilian
  • EA API of course
  • Search the forum

The position of a label is as far as I remember relative to the port. So there is no need to know font type or font size.

The size of the label: I think simply using an over sized length. EA will will handle it and one line mostly looks good.

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Font size and type of port labels
« Reply #2 on: December 06, 2013, 08:33:20 am »
Tools > Options > Appearance > Configure Default Element Fonts
The Sparx Team
[email protected]