EA Sequence diagrams: messages font size - formatting

May this is not the right place to ask such a question, but the EA experts are welcome to take the 25 points....
I create a sequence diagram in EA and copy it to power point.
The messages font is too small for comfortable viewing.
F4 sets the lifelines font size, but how can I set the messages size?

I don't think you can.
If you right-click the label you've got some options to play around with, but font typeface and size aren't among them. You can set it bold and change the colour but that seems to be it. This applies to all connectors as far I can see, not just to sequence diagram messages.
Looking in the database I can see a set of key-value pairs in t_connector.PDATA5 which seem to indicate that you could set italic and underline in addition to bold even though there's no way to achieve it through the GUI, but there's nothing that looks like a font size.

You can export the diagram as EMF or WMF and post-process the labels. EA does not offer any settings for the font size.

Unfortunately,as discussed, it's not possible to change the font size for message labels.
According to Sparx support, the only way to change the size of this text is using the "Tools | Options (Ctrl+F9) | Diagram | Appearance: Configure Default Element Fonts" options. These settings will apply to all element and connector labels.

Related

PDF programatically set font without being forced to set font size

According to the PDF syntax given by Adobe here it seems that there is no possibility to set the actual font, without setting at the same time also the font size.
I am in the situation that the font size is already specified and set before together with a different font. I just want to keep the size just alter the font.
Exemplarily looks like this
/F1 12 Tf
where F1 "reprents" the font, the font size being 12.
Did I miss something, or is there a nice workaround for it?
Please note, that I have no access to the current font size and don't want to alter it.
Generally it requires a PDF editor to do font replacement, often with mixed results, as there is no simple means to substitute one font tag for another here I crafted a PDF to show how just simply swapping /F1 /F2 /F3 and /F4 may corrupt the output.
So line 1 and 2 are different styles of Arial font and lines 3 and 4 are Consolas so we can see as I cycle the font tags I might be able to replace one style by another but here only once in each font family and clearly line length will be changed.
So IF you know you want to swap style later it is essential to use proportional / fixed pitch static fonts.
IF you plan ahead it is possible to embed fonts for swapping style but generally not family, OR you could as many do set a generic font and rely on the system replacing those with local default fonts.
Otherwise you need to read the text in one font and rewrite that text block in a different font bearing in mind the need to reflow the line lengths or adjust sizes to suit, hence many a font is found with non uniform units.
For fairly simple font substitution I would normally resort to X-change editor or FlexiPDF editor

Automatic fitting of text content to page with rst2pdf

Does rst2pdf provide automatic adjustment of text size to fit a bullet or numbered list to the page for presentation purposes? Similar to what LaTeX provides.
No, it doesn't have size-to-fit. I use rst2pdf for presentations and I use a consistent font size throughout my slide decks, and I quite like the effect it produces. (Sorry this is probably not the answer you were hoping for!)

How to change the font size of line numbers in IntelliJ IDEA?

I want to increase the font size of the line numbers in IntelliJ IDEA Ultimate(2019.3.1) independently from changing the font of the code itself but I can't find the way of doing so.
I shook the whole Internet and didn't find anything up to date either. Actions search didn't help as well.
How do I do that?
The font size of line numbers automatically changes along with the font size of code in the editor. It uses the same font setting(font, font size, etc).
You can try to adjust font.
https://www.jetbrains.com/help/idea/settings-editor-font.html
And as Improbable mentioned, there is a feature request for it: https://youtrack.jetbrains.com/issue/IDEA-92443

How to convert italic font to normal font in pdf using some library?

Is there any way to convert Italic font, Bold font in my pdf to normal font using some library like Imagemagick or GhostScript etc. ?
Basically the answer is 'no' though there are several levels of caveat in there.
The most common scenario for a PDF file is that it contains an embedded font, and that font is subset. In this case the font will use a custom Encoding, so that when you see 'Hello' on your monitor, the actual character codes might be 'Axtte' or similar gibberish. If the font also contain a ToUnicode table you could, technically, create an embedded subset of the regular font from the same family as the bold or italic and embed that, and it would work. This would be an immense amount of work.
If the font isn't subset then it may not contain a custom Encoding, which would make that task easier, because you wouldn't have to re-encode the replacement.
If the font isn't embedded, then you need only change the font name in the Font object, because the PDF consumer will have to find a substitute anyway.
Note that, because PDF is a binary format, with an index (xref) containing the offset of every object in the file, any changes will mean that the xref table has to be reconstructed, again a considerable task.
I'm not aware of any tools which would do any of this for you automatically, you'd have to write your own, though some things could be done automatically. MuPDF for example will 'fix' a PDF file which has an incorrect xref table for you.
And even after all that, the likelihood is that the spacing would be different for the italic or bold font compared to the regular font anyway, and would look peculiar if you replaced them with a regular font.
So, fundamentally, no.
In low-level PDF you can apply some rendering flags in front of a text stream. Like the "Rendering Mode" Tr operation. For instance, in this scenario you can include the rendering of text outline and increase outline drawing width with the command sequence 0.4 w 2 Tr which will cause Normal text to become more "bold" (There are other better ways to accomplish this using the Font Description dictionary). However, one can also employ this tactic to slim down bold text using a clipped thicker outline, but this may not be ideal.
As for italic, most fonts contain a metric indicating their italic angle, and you can use this to add a faux italic using a shear CTM transformation matrix with the cm operation. Once again, this may work better to add an italic shear, but may also have some success in removing it.
See the PDF Reference.
This will require a library with lower level PDF building and you would have to do it manually, but it is possible technically.

Photoshop: color profiles for web?

color settings --> working space
Usability post tells us
at the “Working Spaces” section and select the sRGB IEC61966-2.1 profile
Smashing magazine tells us to
set the working space for RGB to Monitor RGB.
http://viget.com/ also recommends
changing the top drop-down to Monitor Color.
What should we use?
Second part of the question: saving for web:
Should we always uncheck the 'Convert to sRGB'? There is also contradictory tutorials on this one.
Thank you very much in advance!
Web images should be saved whithout any addition data. No color profiles. Many browsers read color profiles of how they are want.
sRGB IEC61966-2.1 or Monitor RGB is the same profile in color settings.
You doesnt need to check convert to rgb. Try to check but you will nothing to see changes if you work in sRGB colors already.