- From: Nigel Megitt <nigel.megitt@bbc.co.uk>
- Date: Mon, 19 Aug 2013 11:11:34 +0000
- To: "De Muyter, Yves (Contractor)" <Yves.DeMuyter@eu.sony.com>, "public-tt@w3.org" <public-tt@w3.org>
- Message-ID: <5941EAB8802D6745A7D363D7B37BD1F7483EDEF3@BGB01XUD1012.national.core.bbc.co.uk>
Hi Yves, The draft text for the next edition of the specification, at http://www.w3.org/TR/ttaf1-dfxp/#style-attribute-fontSize includes a note that hopefully answers your question, as well as making clear that when only one length value is specified it applies equally to horizontal and vertical scaling, and is proportional to the cell size when specifed as a percentage. The answer to your first question is yes, the width is 640/32 * 75% = 15. Non-proportional scaling is the expected behaviour to allow font sizes that are 2 rows in height and 1 column in width to be denoted. Nigel ________________________________ From: Nigel Megitt Sent: 19 August 2013 12:02 To: De Muyter, Yves (Contractor); public-tt@w3.org Subject: RE: fontSize and percentages ________________________________ From: De Muyter, Yves (Contractor) [Yves.DeMuyter@eu.sony.com] Sent: 19 August 2013 08:30 To: public-tt@w3.org Subject: fontSize and percentages Hello, I have a question regarding percentages on fontSize and having 1 or 2 values on the tts:fontSize attribute. Given this example (some unneeded attributes are omitted for readability): <tt tts:extent="640px 480px" ttp:cellResolution="32 15"> <head> <layout> <region xml:id="r1" tts:fontFamily="monospace" tts:fontSize="75%"> </layout> </head> <body> <div region="r1"> <p>This is text</p> </div> </body> </tt> It means the height of the fontsize is 480/15 * 75% = 24 Does it also mean the width of the fontsize is 640/32 * 75% = 15 ? Or does it mean we need to use the scaling value of the height and apply that equally to the width to have proportional scaling ? The spec doesnıt clearly say that having a single scaling factor means you need to have proportional scaling, thatıs why Iım hesitating right now for this detail. Yves De Muyter Techsoft Centre Technology and Software Centre Europe (TSCE) Sony Belgium, bijkantoor van Sony Europe Ltd. The Corporate Village Da Vincilaan 7-D1 B-1935 Zaventem Belgium E-mail: Yves.DeMuyter@eu.sony.com<mailto:Vincent.Gaillez@eu.sony.com> Internet: www.sony-europe.com<http://www.sony-europe.com/> Sony Europe Limited. A company registered in England and Wales. Registered Address: The Heights, Brooklands, Weybridge, Surrey, KT13 0XW, United Kingdom. Bank Account Details: Account Name: Sony Europe Limited Account number: 624335508 IBAN: BE63570624335508 BIC: CITIBEBX RPR Brussel / RPM Bruxelles: 0452161045 VAT: BE0452161045 [cid:image001.jpg@01CA1A63.F11B40A0] ************************************************************************ The information contained in this message or any of its attachments may be confidential and is intended for the exclusive use of the addressee(s). Any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited without the express permission of the sender. The views expressed in this email are those of the individual and not necessarily those of Sony or Sony affiliated companies. Sony email is for business use only. This email and any response may be monitored by Sony to be in compliance with Sony's global policies and standards
Attachments
- image/jpeg attachment: image001.jpg
Received on Monday, 19 August 2013 11:12:08 UTC