[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Upgrading to beta8 streams
From: |
Gaiser, Jason |
Subject: |
RE: Upgrading to beta8 streams |
Date: |
Thu, 12 Oct 2000 13:13:02 -0700 |
I use:
FT_Face face;
char fixedItalic[] = {font data...};
FT_New_Memory_Face( library, fixedItalic, sizeof(fixedItalic), 0, &face );
and it works wonderfully. The data is simply a ttf file converted to a C
header file.
-jason
> -----Original Message-----
> From: Jacob Gorm Hansen [mailto:address@hidden
> Sent: Thursday, October 12, 2000 8:14 AM
> To: address@hidden
> Subject: Upgrading to beta8 streams
>
>
> Hi,
>
> in an earlier beta I was able to load a font from memory using the
> ft_stream_memory stream_type as described in the tutorial:
>
> My old code:
> m_pData = new unsigned char[lSize];
> LOADFILE(m_sFontFile, m_pData, lSize);
>
> // Open file from Memory
> m_sStream.stream_type = ft_stream_memory;
> m_sStream.memory_base = m_pData;
> m_sStream.memory_size = lSize;
> m_sStream.pathname = 0;
> m_sStream.driver = 0;
>
> FT_Open_Face(m_pFreeTypeLibrary, &m_sStream, 0, &m_pFreeTypeFace);
>
> How do I do this now that the stream_type field is gone?
>
> Please CC reply to me, as I'm currently not subscribed to the list.
>
> Thanks in advance
> Jacob Gorm Hansen
>