Hi Richard

> Whilst trying to convert GCM to lcms2, I've come across a snag. I
> can't seem to write MLUC data to new profiles. I used to use
> _cmsAddTextTag(hprofile,icSigDeviceMfgDescTag,manufacturer) in a LCMS1
> era, but can't find equivalent functionality in LCMS2.

It is a little bit more complex than lcms1 because the interface
for v2 and v4 is unified and therefore you can use unicode in your
texts.

Basically you setup a cmsMLU (Multi-localized unicode) structure,
fills it with the strings you wish and then write it to the profile
by using cmsWriteTag(). If the profile version is lower than 4.0,
an ASCII representation is used and the first string in the table
is written. On profiles which version > 4, the whole unicode table
gets written.

See some pseudo-code below

cmsSetProfileVersion(h, 3.4);
cmsMLU mlu = cmsMLUalloc(0, 1);
cmsMLUsetASCII(mlu, "EN", "us", "hello, world");
cmsWriteTag(h, icSigDeviceMfgDescTag, mlu);
cmsMLUfree(mlu);

I have not directly checked this piece of code, but it should work.

Regards
Marti.

P.D. Please keep asking those questions, I think they are very
valuable for the rest of community :-)




------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to