Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2017-03-15 Thread Tobias Hoffmann

On 15/03/17 18:33, Brian Potkin wrote:
Where are we up to with this report; I am unfamiliar with font 
handling so cannot tell. Is the issue fixed or are there aspects still 
to be dealt with? Cheers, Brian. 


Both types of fonts are fully usable and embedded into the PDF (i.e. the 
PDF is "selfcontained").


But only glyf-type fonts are subsetted, in other words: for CFF-type 
fonts the resulting PDF is not as small as it could be. For most fonts 
the size difference is probably in the lower 10 kB range.


  Tobias



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2017-03-15 Thread Fabian Greffrath
Am Mittwoch, den 15.03.2017, 17:33 + schrieb Brian Potkin:
> Where are we up to with this report; I am unfamiliar with font
> handling so cannot tell. Is the issue fixed or are there aspects
> still to be dealt with?

I just added some fontconfig handling, so I consider my job done.

 - Fabian


signature.asc
Description: This is a digitally signed message part


Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2017-03-15 Thread Brian Potkin
On Fri 16 Mar 2012 at 06:52:43 +0100, Tobias Hoffmann wrote:

> Ok, I've finally managed to push last weekend's work into bzr, for the
> upcoming V1.0.6.
> This means:
> CFF-flavoured OTFs are now supported, but without subsetting, i.e. full
> embedding is done (while glyf-type TTFs are properly subsetted).
> I've done some cleanup/rework of the fontembed internals and fixed some
> bugs, that came along my way;
> The fontconfig selection in texttopdf now accepts both TTF and OTF fonts; I
> also did some minor improvements.
> Due to the rather large amount of touched code, new bugs might have crept in
> -- please report.

Where are we up to with this report; I am unfamiliar with font
handling so cannot tell. Is the issue fixed or are there aspects
still to be dealt with?

Cheers,

Brian.



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2012-03-15 Thread Tobias Hoffmann
Ok, I've finally managed to push last weekend's work into bzr, for the 
upcoming V1.0.6.

This means:
CFF-flavoured OTFs are now supported, but without subsetting, i.e. full 
embedding is done (while glyf-type TTFs are properly subsetted).
I've done some cleanup/rework of the fontembed internals and fixed some 
bugs, that came along my way;
The fontconfig selection in texttopdf now accepts both TTF and OTF 
fonts; I also did some minor improvements.
Due to the rather large amount of touched code, new bugs might have 
crept in -- please report.


 Tobias



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2012-03-12 Thread Fabian Greffrath

Hi Tobias,

first, thanks for your fine work in libfontembed!

Am 09.03.2012 21:41, schrieb Tobias Hoffmann:

My plan definitely is to support CFF eventually, as stated in the
README of my so-called libfontembed.
Are there any time constraints, like ASAP? Or could this wait a few
weeks?


I don't think there are any strict time constraints. It is just that 
we are going to switch to format-independent package names for fonts 
in Debian and thus need to decide for one font format or the other - 
we are not going to ship a font in more than one format anymore unless 
strictly necessary. One of the reasons that might keep us from 
switching the freefonts package to OTF format is that it still is the 
prefered font for the texttopdf filter and that it currently needs 
this font in TTF format.


 - Fabian




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2012-03-09 Thread Till Kamppeter

Patches are welcome.

Can OpenType be embedded in a PDF? Or would we need to convert such a font?

   Till



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2012-03-09 Thread Tobias Hoffmann

Till Kamppeter wrote:

Patches are welcome.

Can OpenType be embedded in a PDF? Or would we need to convert such a 
font?
We can and do embed SFNT-flavoured OTFs. I don't have the code ready to 
subset CFF-flavoured OTFs (but did some initial work some time ago [not 
under version control]). I will look into how we can at least provide 
full embedding for CFF. As I need metrics information from the font for 
texttopdf, this does require me to read at least some of the CFF 
formatted data -- which will need some work/time.
My plan definitely is to support CFF eventually, as stated in the README 
of my so-called libfontembed.

Are there any time constraints, like ASAP? Or could this wait a few weeks?

 Tobias








--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2012-03-09 Thread Till Kamppeter
There are not really time constraints. For Ubuntu Precise 12.04 
cups-filters 1.0.5 with texttopdf being fully fontconfig-based is 
enough. Precise comes with suitable TTF fonts. Currently, the change is 
more thought for upstream to be prepared for the first distros which 
drop TTF fonts.


   Till



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#663192: [Pkg-cups-devel] Bug#663192: cups-filters: Please add support for embedding of Opentype fonts

2012-03-09 Thread Tobias Hoffmann

Till Kamppeter wrote:
There are not really time constraints. For Ubuntu Precise 12.04 
cups-filters 1.0.5 with texttopdf being fully fontconfig-based is 
enough. Precise comes with suitable TTF fonts. Currently, the change 
is more thought for upstream to be prepared for the first distros 
which drop TTF fonts.
Ok. I've looked a bit more into it now; the metrics are actually 
available in the usual form (hmtx-table). The only issue seems to be 
whether to only support PDF 1.6 (native OTF-CFF support), or also 
earlier versions, starting with PDF 1.2, which requires extraction of 
the CFF chunk (haven't looked at the details yet). Actually we currently 
claim PDF 1.3, but I'm not so sure, that I don't already use PDF1.6. 
features (libfontembed is called with EMB_DEST_PDF16 ...).


I think that at least basic (non-subsetting) CFF support can/should be 
available and is easy enough to provide. At least PDF =1.6 support 
seems achievable in a reasonably short timeframe.

Everything else can be added when there is an actual need.

  Tobias

PS: The term SFNT-flavoured OTF in my previous message is rubbish; 
what I meant was glyf-flavoured.




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org