Adding a new font for BIRT Reporting - birt

I need to add a new font type for one of my reports, Monotype Corsiva. How do i do that in BIRT? My BIRT version is 3.7.2. I have both the ttf and otf files.

After playing around my localhost, this is what i did:
go to eclipse/plugins/org.eclipse.birt.report.engine.fonts_3.7.2.v20120213/fontsConfig.xml
add in new font path
restart the laptop
But i do not like this way of doing it, cos it is crude, and i need to upload it to the server too. How do i go about doing that?

It is not clear if you are you asking how to add a font to BIRT, or how to have a specic font displayed when the report is deployed.
If when deployed are they PDF, HTML, Excel, etc?
This tip descripes how to make many changes to the font and style at run time http://www.birt-exchange.org/org/devshare/designing-birt-reports/1200-set-fontstyle-information-on-a-report-using-de-api-or-script/
It can be done in the ElementFactory with
dataStyle.setProperty( StyleHandle.FONT_FAMILY_PROP, "Monotype Corsiva"
Or in the beforeFactory with
reportContext.getDesignHandle().findStyle("report").setProperty(StyleHandle.FONT_FAMILY_PROP, "Monotype Corsiva");
Of course for both of these the font would need to be available on the PC running the report.

Related

LibreOffice Writer - captions crop figures

I am creating a report meant to be read/edited by MS Word. To do that I have created it from scratch and saved as .docx.
In this report I am including some images together with captions. All of the captions were added manually. Everything went fine, I have saved the document and closed Writer.
Now I want to put my hands on it again and, upon opening the report, this is what I am seeing:. Previously the figure was showing fine inside the text box (that inserting a caption creates). The text box is in the same position and size, but there appears to be a boundary over which it just displays white. I can reduce the figure's size inside the boundary of visibility, and a glimpse of the captions appears too .
Note that the red arrow disappears too.
Needless to say, I can not work on a 100+ pages document and then check again each picture, delete it and re-create it, check again the cross references and so on. I would much rather work with LaTeX, but I am required to deliver a .docx file.
I am working on Ubuntu 20.04, Libreoffice is updated to version 6.4.6.2 and the only plugins I have equipped it are TexMath and Zotero.
Thank you for your time.
I noticed the same thing. It seems to be an issue already in Libreoffice Writer between Linux and Windows. If you create a document on Linux with a cropped image and then open the file in Libreoffice on Windows the cropping of that image is already messed up. Happens to me with Libreoffice Version 6.3.5.2.

on AIX, BIRT sees a font, rotatedtext control does not

We have and AIX/WebSphere server. We have a BIRT engine set up and running. It has worked for four years...since the initial installation. In the last few months, we don't know exactly when, we have seen an issue with the "rotatedtext" control not being able to use a custom font.
If I create a report that shows the custom font in a text field, the font renders exactly as expected. On that same report, a rotatedtext field using that same font reverts to using Sans Serif.
It's maddening because the code didn't change, and our current production system is generating just fine. This appears to only be happening suddenly in our test systems.
What I need to learn is what settings could be causing the font to work in BIRT but not the rotatedtext control.
Is there a recent patch for AIX? It is a Java thing? We have the same fontConfig.xml in the production system, the jars are identical. The custom font is in the same directory on both systems.

how do you change the default font used by apache nifi

We're doing a proof of concept test on Apache NiFi. The font for the layout screen looks like it's about 10 pt, which is way too small
I can zoom the screen to 140%, but that makes everything bigger, and a lot less useful
How Do I simply change the font used?
To change the font-size for particular areas of Apache NiFi you can simply update the appropriate css files found in:
nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/css/
Then rebuild and restart the application. Most of the time you can tell by the file names where the styles are applied within the application but you can also use your browsers developer tools to inspect the styles of any particular element in the UI and determine the precise file you will need to edit.

Powerpoint Font Family

When I set the output format to 'pptx' on a birt report, it exports to a powerpoint file. Everything looks fine except for the font. It's always set to Lucida Sans. Is there anyway to keep the font family that was set in birt?
I'm using eclipse kepler and birt 4.3.1.
At this Link you can download manual for Actuate BIRT viewer. Your problem is resolved in details at pages 206-208.
In BIRT viewer vulgaris you need to place RenderDefaults.cfg file inside
org.eclipse.birt.runtime_4.3.2.v20140225-1404.jar
under path org\eclipse\birt\report\engine\emitter\config\ppt(x).
I haven't tested this, yet. :)

How do you reliably render Khmer (Indic) fonts on the web (and in PDFs)?

I've been having a world of trouble getting Khmer fonts (an Indic script of Cambodia) to render reliably on the web across platforms (Mac, Windows, Linux).
Google web fonts recently added Khmer, which seems like the best bet. However, I have not been successful getting Khmer fonts to work on any Mac or Linux system. I can get them to work on Windows by installing the Khmer Unicode installer from http://khmeros.info but not by just including Google's font in an HTML file.
For example, see this screenshot of the Google web fonts page on a fresh Windows installation. You can see that the default Windows Khmer font (uuuuugly!) is being used instead of Danh's pretty fonts.
I have another test file here: http://dl.dropbox.com/u/634/khmer_test.html. For the first test, you should see something like this for both the web font and the default system font (assuming you have Hanuman installed). I have yet to find a system where both examples work reliably.
Any help would be greatly appreciated. My primary goal is to get this working on a website; a secondary goal is to get Khmer (and other Indic fonts) working in a PDF generator like iText (although I am aware iText itself does not support Indic fonts -- I'm hoping something similar does).
Every Cambodian Windows users are always delete the font name called: KhmerMool and Khmer Kampot. Then they change the default Khmer font in regedit too. You can check at http://thelifeandwork.blogspot.com/2010/01/changing-default-khmer-font-in-windows.html . I'm not sure about Khmer font and other Indic font in PDF. I always have problem when i copy Khmer unicode from PDF to put in OpenOffice or Office Word or LibreOffice.
Khmer Unicode displays on the web, it will always solve now by Google Webfont, please refer to that.
And if you want to have Khmer display in PDF by converting using iText, you can see following post:
Khmer Unicode in iText
http://ask.osify.com/qa/287
They are currently not yet support the display yet.
But, just today I can get it works by modifying the source code of iText (5.5.4-SNAPSHOT) as I just stated in my post: http://ask.osify.com/qa/613, not yet be able to publish since it's just start in testing around.
Updated 13/01/2016
I have added the source code sample for the rendering: http://ask.osify.com/qa/613
The rendering customization with iText for Khmer Unicode added in github: https://github.com/Seuksa/iTextKhmer

Resources