GarryP Posted March 14 Posted March 14 In the Help (any application), in the “Expressions for field input” page, there is an xheight variable listed under the “Typographical variables” section which says: Use when setting the size of text. And I was wondering how it can be used and where. I’ve tried using it in various places and in various ways but nothing seems to ‘stick’; the original value in the field I try to use the variable in goes back to what it was. I tried using (in Publisher 2.60 on Windows): xheight=15pt in font size fields; xheight+5 in font size fields; xheight/2 in font size fields; xheight/2 in the Paragraph Space After field; xheight in the Paragraph Leading field; xheight in the Decoration Top field; xheight in the Character Baseline field; xheight in the Character Leading Override field; ...and nothing seems to work. Does anyone know anything about this and how to use it? The same question also applies to the ascent and capheight variables? I found these threads, but there seems to be some confusion as to what they are for, how they work, and even whether they work: Quote
thomaso Posted March 14 Posted March 14 I did not try your specific examples but it reminds me of a related issue with a not working variable, known / logged as AF-891: Quote macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1
GarryP Posted March 14 Author Posted March 14 It seems as though the (possibly related) AF-891 bug has been flagged as fixed by the Serif Info Bot, but maybe it's not been fully fixed. Either way, I’d still like to know how I’m supposed to use it, even if I can’t at the moment. Quote
carl123 Posted March 14 Posted March 14 I can't get it to work either and after getting ChatGPT to show me (where and how) all the places it could be used I finally got ChatGBT to admit to this... "As of now, Affinity Publisher does not support the xHeight variable directly in text fields, expressions, or styles. While Affinity does allow expressions in some numerical fields (such as font size, leading, and spacing), xHeight is not a recognized variable within the software. What Does This Mean? You cannot type xHeight * 2 in the font size or leading field and expect it to work. Affinity Publisher does not have a built-in dynamic x-height measurement system. Possible Workarounds If you want to maintain consistent x-height proportions across different fonts, consider these manual methods: 1. Measure the X-Height Manually Use the Text Ruler or Transform Panel to measure the lowercase "x" height in your chosen font. Then, manually apply values like x-height * 1.5 based on your measurements. 2. Use a Reference Font for Sizing Choose a base font with a well-defined x-height. Set a reference font size and adjust other fonts accordingly. 3. Create a Style Guide Define a set of styles based on x-height proportions. Manually adjust leading, paragraph spacing, and baseline shift to match. Will Affinity Add xHeight Support? There is no official confirmation, but you can request this feature from Serif’s Affinity Forums or their support channels." Maybe Serif should comment on if this is currently a bug or not Quote To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.
Staff stokerg Posted April 30 Staff Posted April 30 Hi @GarryP, Great question! I've been looking into this today and also couldn't get them to work. Quickly checked with QA to see if i was missing something obvious and they also can't get these to work. I've logged it with the Developers and will update here with any information i get from them sfriedberg and GarryP 1 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.