[squeak-dev] Re: How to compile FreeType Plugin (FT2Plugin)?

Andrew Tween amtween at hotmail.com
Thu Mar 13 08:27:13 UTC 2008


Hi,
"Takashi Yamamiya" <tak at metatoys.org> wrote in message 
news:c57315d40803121825k38b02dedp78b7144a95e2f4ca at mail.gmail.com...
> Hello,
>
> I have a problem to build FT2Plugin by VMMaker. Does someone could
> give me a hint?
>
> In
> FT2Plugin>>primitiveCopyToExternalMemory:
> ...
> rcvr := self primitive: 'primitiveCopyToExternalMemory'
> parameters: #(ByteArray)
> receiver: #FreeTypeExternalMemory.
> ...
>
> When I generated FT2Plugin, SmartSyntaxPluginTMethod complains that
> FreeTypeExternalMemory should be a Behavior, but there is no class
> with such name.
>
> I used Freetype-Base-be.70 and Freetype-Plugin-JMM.53 at
> http://source.impara.de/freetype/. The image was based on
> Squeak3.9alpha #7021 and the OS was Fedora Core 7.
>
> I want to use FreeType for OLPC eToys, and I tested it with FreeType
> Plus 0.4 and FreeType Plus (plugins installer) 0.13 on SqueakMap. It
> worked pretty well with small change. That's a great job! But I want
> to keep all vm source code at one place, so I need to build the plugin
> by myself.  Any help is appreciated.

That's cool.
(try using Freetype-Base-tween.71.mcz  in source.impara.de, just in case you 
didn't see my earlier post)

As well as installing the FT2Plugin, the plugins installer also installs a 
modified BitBlt plugin.
This enables sub-pixel anti-aliasing and gamma (contrast) adjustment.

I haven't merged the BitBlt modifications into any VMMaker  package yet; but 
I've attached them here - FreeTypeBitBltSimulation.1.cs

FreeType Plus 0.4 will work without the BitBlt modifications , but generates 
errors when  displaying underline/strike-through text.
I have attached a patch to fix that problem - 
FreeTypeFont-displayLineGlyphOnfromto.st

So, you should EITHER
    install FreeTypeBitBltSimulation.1.cs when building the VM and/or BitBlt 
plugin.
OR
    build a standard VM, but load FreeTypeBitBltSimulation.1.cs after 
loading FreeType Plus 0.4

Cheers,
Andy


>
> Cheers,
> - Takashi
>


--------------------------------------------------------------------------------


>
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FreeTypeBitBltSimulation.1.cs
Type: application/octet-stream
Size: 27214 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080313/ac9684a9/FreeTypeBitBltSimulation.1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FreeTypeFont-displayLineGlyphOnfromto.st
Type: application/octet-stream
Size: 2195 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20080313/ac9684a9/FreeTypeFont-displayLineGlyphOnfromto.obj


More information about the Squeak-dev mailing list