Bug 2923 - Create font class
Summary: Create font class
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.4
Assignee: Laurentiu Palcu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-08-09 09:28 UTC by Ross Burton
Modified: 2013-03-20 12:30 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2012-08-09 09:28:24 UTC
There should be a font class that registers a trigger to run fc-cache.

At the moment this isn't a real problem as we only ship a very limited number of fonts, but if someone ships more then the fc-cache generation will be replicated for no reason.
Comment 1 Laurentiu Palcu 2012-12-07 13:43:41 UTC
If this is referring to rootfs install time then wouldn't the recent postinstall improvements solve this issue? All there's needed is create an intercept script that will run at the end. The only problem remaining is running fc-cache on host as this is architecture dependent...
Comment 2 Ross Burton 2012-12-07 14:52:21 UTC
Yeah, the motivation was repeated fc-cache calls.  As the fontconfig caches are archicture dependent (!!) then a class that sets up an intercept to call fc-cache is the best that we can do.

(a class so that it's the one true way of handling font installation)
Comment 3 Laurentiu Palcu 2013-02-06 10:06:50 UTC
Created fontcache.bbclass. Patch merged:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=c31bf6514bdda951b315f16aa640f9d46232c060
Comment 4 Stoicescu Cornel 2013-03-20 11:52:51 UTC
Hello,

Can you please give us some more info on how to test this? I see the new class added but I don't see where it's used in.

I see it used in meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb for example.
Comment 5 Ross Burton 2013-03-20 11:54:31 UTC
I think verifying that the file was integrated and is used by a recipe is all you can do.
Comment 6 Stoicescu Cornel 2013-03-20 12:30:32 UTC
fontcache.bbclass is used by meta/recipes-graphics/ttf-fonts/liberation-fonts_1.04.bb which is pulled into core-image-sato-sdk. 

In master:4da406cd50cf02a63ed76810a670aba1eb561c79 core-image-sato-sdk built correctly for all qemu targets.

Verified.