Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - quejebo

Pages: [1]
1
I've tested out the new build and it fixes the background color issue; thanks!  This allowed me to move my cell size from 12x12 to 4x4, but then I encountered another issue -- there's a hard-coded check that window.size < 256, which, with a 4x4 grid, only gives you 1024 pixels to work with.  Is this a constraint that can be relaxed?

Another (I think) bug.  I was messing around with font settings and found that:
size-reference=0x40 works fine but
size-reference=@
gives me:
[error] Failed to set some options: TrueTypeTileset: can't parse 'size-reference' attribute

2
I'm attempting to use a font with a spacing greater than 1x1.  While setting the character works as expected, when attempting to set background color, only the upperleft-most grid square is given the background color information.  See the example image below.

I realize that, in the worst case, I can brute force this by decomposing each print call into two separate print calls (a 1x1 spaced font in layer 1, which only contains background information and my 3x3 spaced font in layer 2, with only the character information),  but it seems like this might be a feature worth baking into the font configuration.

Thanks for the help, and the great library.

https://imgur.com/a/6HF5g

3
Thanks for the response.  That approach works in this example because they have a nice common denominator, but this isn't always the case for how I'm scaling things.  I suppose the more precise use case here is to easily use separate font scales for the UI from the game's grid -- without the requirement for nice integer ratios between them.

4
Hey, I've been enjoying the library but I have a quick question:

I have a square grid, say 12x12, and I'd like to overlay a thinner font for text on it, say 8x12.  I've found that I can do this with put_ext, incrementing my dx by 8 for every character:
Code: [Select]
for (i,char) in enumerate(text):
    terminal.put_ext(x,y,i*8, 0, ord(char))
But this is rather less than ideal: it means lots of slow looping in python, and prevents me from using the nice annotation syntax (e.g., for color) that exists for print.  Is there a way to accomplish this same purpose with the print function?


5
Quote from: Cfyz
Quote from: quejebo
I seem to be having trouble with ttf rendering.  Check the attached image, and note the exclamation mark on the left.  Is there something I might be doing wrong?
That's what hinting changes are about, should be working correctly now.

Yeah, looks better now.  Thanks!

6
Hi, I've been checking out bearlibterminal, and I seem to be having trouble with ttf rendering.  Check the attached image, and note the exclamation mark on the left.  Is there something I might be doing wrong?

Thanks!


Pages: [1]