Bur: https://en.wikipedia.org/wiki/Bur Gers: www.merriam-webster.com/dictionary/gers
Heal they Hooked Seed Grass
Bur: https://en.wikipedia.org/wiki/Bur Gers: www.merriam-webster.com/dictionary/gers
Heal they Hooked Seed Grass
Ed the talking chihuahua?
What now it’s a priority? What about Pitchfords snobbish comments? Did their bottom line hurt?
You could also be happy in Kim Jong Un dies… maybe Putin?
I always wonder where the cut off is, how evil does someone have to be for society to accept their death with gladness?
Free gravel sounds great, but nowhere is the amount specified, if you get a handful of gravel every day for life that’s not helpful.
Teleport 7 inches sounds good, if the effect of the pill isn’t a one time thing. Do you only teleport 7 inches when digesting the pill? Do you keep teleporting? Can you stop teleporting? ;)
That’s shark discrimination! It should have been at least 50% sharks!
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee!
Windows!
laughs quietly in Linux
And when they disable the download because “game is old” or “we want to remake it” or “servers are too expensive” then what?
You don’t own the game and you don’t sell the game. You own a temporary license to play the game and sell that license.
Just like on Steam or any digital store front.
Sure the advantage is that you can resell your license, but let’s see if those cards still do anything in thirty years, like games from thirty years ago do now.
They made a really shitty situation (not owning your games) a little less shitty.
p.s.
Obviously we are also in this mess because convenience trumps ownership, that’s why Steam and business models like these grew so popular.
As an aside, I love the irony of that speech. Musk tells the wannabe Nazis that they can forget about the sins of their (great)grandparents.
The idiots of the AFD want to forget the past simply so they can repeat it.
They want to repeat the sins of their forefathers, they just don’t want to be reminded of the consequences that followed.
No one? Really? That sounds like heaven! is very introverted
The satellite went boing boing?
So you could just use Email in these archaic programs called Thunderbird etc. If you really wanted to use gmail. You know, without adds, without the need for an ad blocker, without AI recommendations and at your leisure.
But hey, you’d have to install something on your computer for that… how horrible.
And who uses computers for work anyway, you can just write your essay on a tablet. (but there are also email apps on those)
It’s a shittier way to work but hey it’s easier.
Chant with me… Indie games… Indie Games! INDIE GAMES!
It’s… it’s dead Jim.
At some point some artist is going to screw with all of us by taking a real photo with a campfire in a tent.
Oh yes it does, I just meant something for you to give directly to other users.
The internet was far more enjoyable 20 years ago, so if content goes back to being user hosted instead of corporation hosted I’ll be happy.
Thing is, it doesn’t have to be ready. It doesn’t have to have everyone here, just enough people to form a healthy community.
This is how it was in the olden days and it worked well.
If there is reddit with its gazillion users and the fediverse only has a few million that’s enough for me.
Enough to have interesting discussions and learn new things.
And who the f**** really cares about celebrities like Nicki Minaj etc.
I’d rather talk to the most unremarkable person I can find than those manufactured personalities.
Here are the things Vicky answered:
So, I want to make a script in PIL that enumerates all the available fonts on my system. Is that something that PIL has an awareness of? Or should I be finding fonts (e.g. are all the gimp fonts available in some directory) and should I then be pointing PIL at that directory? How is the library of available fonts and adding to that library handled in PIL?
Vicky: The Python Imaging Library (PIL) and its fork, Pillow, do have some awareness of available fonts on your system, but they might not have all the fonts that you have installed. To access the fonts available in your system, you can use the fontlist
module in PIL/Pillow.
First, you need to install PIL/Pillow if you haven’t already:
pip install PIL
Then, you can use the following code to list all the available fonts:
from PIL import Image, ImageDraw, ImageFont
import fontlist
def list_fonts(folder=None):
fonts = fontlist.get_fonts(folder)
print("Available fonts:")
for font in fonts:
print(font.name)
# If you want to specify a directory, uncomment the line below and replace the path with the desired folder
# list_fonts("/path/to/your/font/directory")
list_fonts()
This script will print the names of all the available fonts in your system. If you want to use a specific directory containing fonts, you can uncomment the last line and replace the path with the desired folder.
PIL/Pillow doesn’t have an exhaustive list of all fonts, but it does have support for many popular fonts. If you need a font that’s not available by default, you can either install it using fontlist
or manually add the font file (e.g., .ttf
, .otf
) to your Python script’s working directory.
How do I install some fonts on my Mac? I’m wanting to use Google Fonts I downloaded. I’m fine installing them systemwide if it’s hard to point an SVG at specific font files, since this all just needs to work locally on the same machine right now. Vicky: To install Google Fonts on your Mac systemwide, follow these steps:
.ttf
file. To do this, you can use the free Font Book application available on the Mac App Store.Now, you should be able to use these fonts in your projects. Keep in mind that if you’re working with an SVG file, you might need to update the font reference in the SVG file to match the font name you’ve installed.
What are the units on font_size in svgwrite.Drawing.text()?
Vicky: In SVGWrite, the font_size
unit is actually a relative unit called “user units.” These units are relative to the font_size
attribute of the element that the SVGWriter is currently on. By default, SVGWriter starts with a font size of 1.0, so if you set the font_size
in Drawing.text()
, it will use the relative units based on the initial 1.0 value. If you need to use absolute units like pixels, you can set the font_size
attribute on the element itself before calling Drawing.text()
.
How do I get the source for the cairosvg library to see how it’s doing the font rendering along the curved path? Vicky: To view the source code for the Cairosvg library, you can check out the GitHub repository where it is hosted. As of my last knowledge update in September 2021, the library was still under development and not yet publicly released. If it has been released since then, you can find the source code on its GitHub repository.
To access the source code, follow these steps:
Please note that if the library is not yet publicly released, you may need to wait for the official release or reach out to the developers for access to the source code.
How do I compile the modified cairosvg library and use it in my code instead of the existing one I installed with ‘pip3 install’?
Vicky: To compile the modified Cairosvg library and use it in your code instead of the existing one you installed with pip3 install
, follow these steps:
git clone https://github.com/cairo/cairosvg.git
cd cairosvg
pip3 install -r requirements.txt
mkdir build
cd build
path/to/your/font
with the path to your font file:python3 setup.py build --build-type=release --verbose
This step may take some time, depending on your system’s configuration.
pip3 install ../libcairosvg.so
/path/to/your/compiled/libcairosvg.so
with the path to the compiled library:import libcairosvg
import cv2
def convert_svg_to_png(svg_path, png_path):
font_path = "/path/to/your/font"
with open(svg_path, "rb") as f:
svg_data = f.read()
libcairosvg.svg_to_png(svg_data, png_path, font_path)
# Example usage
convert_svg_to_png("example.svg", "example_out.png")
Now you can use the compiled version of the library in your code. Keep in mind that modifying the library and compiling it yourself may introduce new bugs or break existing functionality, so be sure to test your code thoroughly.
You get two in one per guard!