Powerpoint Font Family - powerpoint

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. :)

Related

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 I use Verdana in domPDF?

I'm using WAMP and CodeIgniter. I'm using DomPDF and it works really great. Now I want to change font to Verdana in the PDFs that are created. As I understand from doing som reading Verdana isn't included in the core files of domPDF, but it is possible to add fonts.
I just found this.
https://code.google.com/p/dompdf/source/browse/trunk/dompdf/lib/fonts/Verdana.ufm?r=96
But I want to download som font-files where Verdana is used for domPDF. How do I achieve that? (I'm looking for some download verdanafonts.zip or something like that)
I've tried to copy the contents of verdana.ufm and verdana.afm and saved them into the libs/fonts folder and change def("DOMPDF_DEFAULT_FONT", "serif"); TO def("DOMPDF_DEFAULT_FONT", "verdana"); but then I get an error that says verdana is an undefined index.
I'm using 0.6 version of domPDF.
In order to add a font to dompdf you have to parse it to produce the font metrics file (*.AFM and/or *.UFM). Then you have to tell dompdf about the font by editing lib/fonts/dompdf_font_family_cache.
dompdf has always had a mechanism to help you out with the process. The load_font.php file will take a font and so long as the necessary libraries are available will produce the metrics and update your font family cache. With dompdf v0.6.x the php-font-lib font parsing library is used to produce the font metrics.
You can also use the CSS #font-face declaration to load fonts on-the-fly.

Adding a new font for BIRT Reporting

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.

Cannot extract the embedded font - Code Igniter and dompdf

Following the instruction in this link ( https://github.com/EllisLab/CodeIgniter/wiki/PDF-generation-using-dompdf ), I always encounter an error when opening the pdf file created. The error message is:"Cannot extract embedded font 'TradeGothicLT-CondEighteen'.Some characters may not display or print correctly. " and when i click OK, the pdf displays black background and when i start highlighting the body, it captures the text but text are in black font-color. what should I do to get rid of this error?
There may be something wrong with your font cache, located at dompdf/lib/fonts/dompdf_font_family_cache.php (though the exact file name depends on your release and whether you have loaded fonts). This file tells dompdf what fonts are available for use in the PDF. If this file references a font that isn't actually available you can run into major issues on viewing. You may need to re-load your font files. Take a look at the Unicode how-to for an overview of using embedded fonts. This document hasn't been updated to reflect changes implemented in dompdf 0.6.0 beta 3, but the information is still pertinent.

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