[Cuis-dev] TrueType font import problems

Juan Vuletich juan at cuis.st
Thu Sep 14 10:42:56 PDT 2023


Hi Gerald,

On 9/14/2023 10:16 AM, Gerald Klix via Cuis-dev wrote:
> Hi Guys,
>
> this removal of TextFontFamilyAndSize breaks loading persistent Text 
> objects
> that use its instances as a text attribute. I encountered this kind of 
> problem
> with my ToDo-application that stores texts in my PlanF database,
> but I presume it will also happen when one
> uses a ReferenceStream for persistence.
>
> As a stopgap measure I exported TextFontFamilyAndSize from
> an old image and added it directly t by database package.
> I seems to work (but it is ugly).
>
> In a nutshell:
> Some kind of objects, like strings, byte arrays, texts and their
> associated classes, are likely to be persistent in some way.
> These classes should not be removed
> without providing a backward-compatibility package.
>
> In other words:
> There is not much sense in providing
> means for persistence, like ReferenceStream, in the base
> image and than break this very persistence by removing classes.
> (Sorry for my harsh words).
>
>
> Just my 0.01€,
>
> Gerald

I think your words are entirely reasonable, but I also think that such 
level of compatibility may be required by users of applications. Cuis is 
not an end user application, but a platform for pro level developers. I 
do my best to minimize breakage while moving Cuis forward, but some 
hiccups are possible.

You already found a perfectly reasonable solution to your use of PlanF 
database and ReferenceStream with these text attributes. Good on you.

Cheers,

-- 
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich



More information about the Cuis-dev mailing list