/srv/irclogs.ubuntu.com/2021/07/21/#ubuntu-desktop.txt

callmepkgood morning03:03
jpnurmigood morning07:11
callmepkhi jpnurmi 07:12
jpnurmihi callmepk07:12
dufluHi jpnurmi and callmepk 07:16
callmepkhi duflu 07:16
jpnurmihi duflu07:16
oSoMoNgood morning desktoppers07:19
dufluMorning oSoMoN 07:19
oSoMoNhey duflu 07:21
callmepkhi oSoMoN 07:21
oSoMoNhey callmepk 07:21
jpnurmihi oSoMoN07:33
oSoMoNhey jpnurmi 07:33
didrocksgood morning07:57
dufluHi didrocks 07:59
jpnurmihi didrocks08:00
didrockshey duflu, jpnurmi!08:01
laney\_O_/08:03
dufluHi laney 08:06
seb128goood morning desktopers08:31
dufluHi seb128 08:32
seb128hey duflu, how are you?08:33
dufluseb128, improving thanks. You?08:33
seb128duflu, I'm alright thanks!08:34
laneyhey duflu seb128 08:42
seb128laney, hey, how are you?08:42
dufluHi laney 08:45
cpaelzerHi, I'm bluntly assuming that Deskop-people will know more than myself about fonts08:57
cpaelzerI ahve a testcase which selects fonts via https://doc.qt.io/qtforpython-5/PySide2/QtGui/QFontDatabase.html?highlight=systemfont#PySide2.QtGui.PySide2.QtGui.QFontDatabase.systemFont08:57
cpaelzerit asks for a fixed-with and gets "monospace" as identifier08:57
cpaelzerlater on it checks what it is effectively using and gets  "Bitstream Vera Sans Mono"08:57
cpaelzerthat sounds like another abstraction layer for the default-monospace-font08:58
cpaelzeris there a common config which does set the "Bitstream Vera Sans Mono"08:58
cpaelzeror alternatively is there a general python way to translate this 'monospace' selection into the final "Bitstream Vera Sans Mono"08:58
cpaelzerso that the test can use the latter for comparison?08:59
cpaelzerI'm reading myself through /etc/fonts/* now, but even if it is configured there I'd not want to write a new parser for these config files :-)09:00
cpaelzerOk, /etc/fonts/conf.avail/45-latin.conf and /etc/fonts/conf.avail/60-latin.conf really seem to be what maps this font to 'monospace'09:02
cpaelzernow I need a way to derive monospace->"Bitstream Vera Sans Mono" in python ...09:03
seb128cpaelzer, hey, I'm unsure if my IRC timeouted or not, I've some lag at least. We don't have much people familiar with fonts details but GunnarHj knows his way around so he might be able to help you with those questions09:12
cpaelzerthanks seb12809:13
cpaelzerI'm slowly clawing my way into it, but any hint is welcome09:13
cpaelzerI'll mention what I found here and if anyone has input let me know09:14
cpaelzerI can get the object and from there derive some attributes09:14
cpaelzerlike https://doc.qt.io/qtforpython-5/PySide2/QtGui/QFontInfo.html#PySide2.QtGui.PySide2.QtGui.QFontInfo.family09:14
cpaelzergiving me "Bitstream Vera Sans Mono"09:14
cpaelzerand styleName() of the same object gives me "Roman"09:15
cpaelzerbut so far I lack a reliable way to get "back to monospace"09:15
dufluGunnarHj, seems DING has changed to whole version numbers and there's a version 20 now09:21
cpaelzermonospace is the alias and Bitstream is the the font it selected, but do not try to search for alias/unalias - all you get is if rendering the font should be aliased :-/09:22
cpaelzeralias-meaning-overload09:23
laneycpaelzer: I dunno exactly what you're testing, but fontconfig is the component that handles those configs you were looking into09:23
laneye.g. $ fc-match monospace09:23
GunnarHjcpaelzer: What does this command return:09:24
GunnarHjfc-match monospace -a | head -1009:24
cpaelzerhttps://paste.ubuntu.com/p/r4gcqXQvJ5/09:24
cpaelzerthat is the same direction that python already does from "monospace" -> "Bitstream Vera Sans Mono"09:24
cpaelzerFor the test (trying to fix an autopkgtest atm) to work I need the way back09:24
cpaelzer"Bitstream Vera Sans Mono" -> "monospace"09:25
GunnarHjcpaelzer: That's it, isn't it? Looks like you are on a machine without DejaVu.09:25
cpaelzerI got it working, I needed to stop thinking to reverse it09:30
cpaelzerinstead I instantiated the "expected" result and can use that for the comparions09:30
cpaelzerthanks GunnarHj, laney and seb12809:30
GunnarHjcpaelzer: A test which relies on Bitstream being the preferred monospace font sounds fragile to me. On e.g. standard Ubuntu you'd see "DejaVu Sans Mono".09:32
cpaelzerGunnarHj: that isn't what it is doing09:32
cpaelzerit was selecting the default "fixed-font" which gave it "monospace"09:32
cpaelzerthen it used "monospace" to initialize its app09:32
cpaelzerand eventually it tested if the effective font being used matched that "monospace"09:33
cpaelzerbut since "monospace" was only an alias it might select Bitream, DejaVu or others depending on what is configured and installed09:33
cpaelzerI had to make the commands that define the "expected font" also to "instantiate" the monospace font09:34
cpaelzerthat way it gets whatever is currently configured for that alias09:34
cpaelzerand that it can compare the applications behavior against09:34
cpaelzerI hope I explained it using the right terms, does it make sense to you now GunnarHj ?09:35
GunnarHjcpaelzer: So if I understand it correctly, you need a way to confirm that the actually used font is a "monospace" one.09:35
cpaelzeryeah, sort of09:36
cpaelzerand that in Qt for python if possible :-)09:36
cpaelzerbut as I said, I think I'm good now09:37
cpaelzerthat seems to do it and does not seem too crazy to me https://paste.ubuntu.com/p/B9MQd8pzhx/09:37
cpaelzerIt is at least enough to open an upstram issue and PR - if they prefer to do it different that is fine09:38
GunnarHjcpaelzer: Ok, great. I fear that my skill level doesn't suffice to suggest a different way. ;)09:40
GunnarHjduflu: Hey, 20 came fast, we are effectively on 19 on impish. Would it help to update to 20?09:49
dufluGunnarHj, no hurry. If the fix I'm working on ends up in the extension then it won't be till at least 2109:52
GunnarHjduflu: Ack. Btw, do you have an opinion about those clutter dependencies which was added and then dropped? Do you agree they are redundant?09:54
GunnarHjduflu: https://gitlab.com/rastersoft/desktop-icons-ng/-/commit/c3afe69609:59
ubottuCommit c3afe69 in rastersoft/desktop-icons-ng "Remove clutter dependency"09:59
dufluGunnarHj, I am not familiar with the changes but generally speaking it's the right thing to do10:03
GunnarHjduflu: Ok. The day before yesterday I made an upload only to add such deps:10:13
GunnarHjhttps://launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons-ng/0.18.0-0ubuntu310:13
GunnarHjBut I can drop them again when doing the next update... :/10:13
dufluGunnarHj, I know it's annoying10:17
bittinhttps://www.youtube.com/watch?v=o9z8a9loDoc GUADEC is on13:52
KGB-2pango tags a4e4364 Marco Trevisan upstream/1.48.7+ds1 * Upstream version 1.48.7+ds1 * https://deb.li/323fG19:21
KGB-2pango upstream/latest af0197f Marco Trevisan * pushed 145 commits (first 5 follow) * https://deb.li/NCr119:22
KGB-2pango upstream/latest 39e3fc3 Matthias Clasen pango/pangofc-fontmap.c * Clarify docs of pango_fc_fontmap_get_config * https://deb.li/igyTN19:22
KGB-2pango upstream/latest b7313d6 Matthias Clasen pango/pangofc-fontmap.c * Merge branch 'get-config-docs' into 'master' * https://deb.li/2CcR19:22
KGB-2pango upstream/latest bf4050c Matthias Clasen pango/pangofc-fontmap.c * fc: Drop a broken optimization * https://deb.li/3h54v19:22
KGB-2pango upstream/latest f4d37b8 Matthias Clasen pango/pangofc-fontmap.c * Merge branch 'drop-broken-optimization' into 'master' * https://deb.li/81yz19:22
KGB-2pango upstream/latest a492afd Jan Alexander Steffens (heftig) tests/test-common.c * tests: In attribute_from_string, parse offsets as long long * https://deb.li/3N3Ds19:22
KGB-2pango pristine-tar 77ca723 Marco Trevisan (TreviƱo) pango1.0_1.48.7+ds1.orig.tar.xz.delta pango1.0_1.48.7+ds1.orig.tar.xz.id * pristine-tar data for pango1.0_1.48.7+ds1.orig.tar.xz * https://deb.li/R3GI19:22
Trevinhoseb128: when you've a sec please sync pango (fixes i386) ^19:23
seb128Trevinho, yes19:29
Trevinhonot sure if it's already available for syncing, but well...19:29
ricotzhey, another candidate for syncing might be meson 0.59.0-1 :)20:42

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!