Forum Discussion
It's a bit of work. Do you need to use the font everywhere? Or just in some specific locations?
I once did something similar to integrate the Roboto font support into an early I12. Innovator included the font already but it wasn´t "used" yet.
You have a "fonts" folder in the codetree where you can add your custom fonts. Than you need to customize the stylesheets to ensure the font is used.
In my case I only needed to customize common.min.css
For this mod I have just thrown my custom stylesheet behind the minified code. This ensured the custom code is still some kind of readable.
If you want to use the font for all Innovator elements you might also need to modify other stylesheets like main.css. Don´t forget to document the codetree mod for upgrade.
And if you really want to surprise your users: Use "Comic Sans"! [emoticon:44a8a53ad3364ea78a16c5a3229f75bb]
The pdfPublishingRule, used for converting TechDocs into PDFs, is not found in main.css so I may need to look elsewhere or send in a ticket to Aras to ask how I can navigate to that installed module's css folders.
Also, thank you, your response was quite helpful for me to come to this conclusion and it also gave me light in determining the conventional way of applying new styles to Aras. Seems like it is not too hard after all, maybe one day dark mode can come along (if they don't configure that for us in a release one day :) )
Edit: Actually I take back some of what I said - I just now navigated to the converter module, and imported the font face that I wanted. The font still isn't coming through, but this is good progress, hopefully I can find where I really need to apply it within the style's folder. With your response I should be able to deduce what place needs it. Hopefully the rendering of the font family will be a success!
- AngelaIp7 months agoIdeator I
OMG, why don´t we have a dark mode? I never questioned that this one was missing. Thumps up for this idea!!
Quote: "how I can navigate to that installed module's css folders"
Well, basically you navigate to the modules css folders :). There are modules folders and they have stylesheets.
But for PDF publishing you specify the style sheet inside Innovator itself. See "Document Types" in TOC.Regarding my example with the font you also need to customize your Forms to actually use the new font or customize default.css.
- Frank_Guarino7 months agoIdeator I
Right, I was able to navigate to the Conversion Server css. Although, when it comes to using the font-style: 'Helvetica' in the Document Type css it still is not a valid property value.
Here's what I've done so far:
Added a font-face to fonts referring to the local file of the font .otf file
Added in reference to the css in the Document Type's css file
Edit: Font-family:'Helvetica' seems to be a valid property, but the rendering does not happen. I am unsure whether this is where the styling is needed or not.
- AngelaIp7 months agoIdeator I
Hope you document everything for the upgrade team!
Regarding TechDocs maybe have to differentiate the Viewer from the actual printed result?