Return-Path: X-Original-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-ooo-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 13A4F95CF for ; Tue, 3 Apr 2012 14:27:13 +0000 (UTC) Received: (qmail 59872 invoked by uid 500); 3 Apr 2012 14:27:12 -0000 Delivered-To: apmail-incubator-ooo-dev-archive@incubator.apache.org Received: (qmail 59793 invoked by uid 500); 3 Apr 2012 14:27:12 -0000 Mailing-List: contact ooo-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ooo-dev@incubator.apache.org Delivered-To: mailing list ooo-dev@incubator.apache.org Received: (qmail 59784 invoked by uid 99); 3 Apr 2012 14:27:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 14:27:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of orwittmann@googlemail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2012 14:27:04 +0000 Received: by bkcjg15 with SMTP id jg15so3517293bkc.6 for ; Tue, 03 Apr 2012 07:26:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=sy0OOM+RIrcVN6PR0oOIBU8DaRjzsIEVaWZGV0es+3U=; b=Nf2JzDSO/FuMnP2kLxSRdTcauJR42sloHJcVoBN5otGWDCI1YHPwQdMSjVx++mgN74 rASjiH0V9TgD3PN0USvNHetEU7V33XQoiQ+Ll8oYmQ4cDI7u4gAViJttxfCjXpN5i1+c nh6AaSGYXV9MBoyTYk2qs4NFVWqqsqRHi1LipAp+7zscYuz6X/ZbGg9vqRS528e5ctok RF0B2PUugvGSFyFkHQLdaCe/5+MhK5J+ORRHsROWXkg+vMH/TYl7sQ9GhWtqgNRfJq/R phYv3Q1XSdyoudHs8W7oPWmpK6Ken66R9VJw9wG7zQDOQ0jcaTxMc8pFJ74RSgXR/Sfu mS6g== Received: by 10.205.137.15 with SMTP id im15mr5513867bkc.54.1333463204552; Tue, 03 Apr 2012 07:26:44 -0700 (PDT) Received: from [9.155.131.21] (deibp9eh1--blueice2n2.emea.ibm.com. [195.212.29.172]) by mx.google.com with ESMTPS id r8sm26704417bki.2.2012.04.03.07.26.42 (version=SSLv3 cipher=OTHER); Tue, 03 Apr 2012 07:26:43 -0700 (PDT) Message-ID: <4F7B089C.9060001@googlemail.com> Date: Tue, 03 Apr 2012 16:26:36 +0200 From: Oliver-Rainer Wittmann User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: ooo-dev@incubator.apache.org Subject: Re: writer: question ad defining a relative font-size for a "character style" that works in all "paragraph styles" References: <4F7AFCBA.5050205@apache.org> In-Reply-To: <4F7AFCBA.5050205@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, On 03.04.2012 15:35, Rony G. Flatscher (Apache) wrote: > If this is the wrong e-mail list for user-questions, then please advise which one would be the > correct one. > > --- > > Maybe someone on this list knows the answer/solution? > > Here is the problem to solve: in a writer file it should become possible to set sections of a text > to a monotype font, where the font size should be 90% of the current font-size (e.g. "Paragraph > Style: Default" or "Paragraph Style: Footnote". The reason for reducing the font size relative to > the Paragraph Style's defined font-size is, that monotyped words tend to be wider than serif fonts; > by reducing the current size by 10% such monotyped text looks nice again. > > To solve the problem I created a "Character Style" named "xyz" and defined it to be: > > * Organizier: name=xyz, Linked with=- None -, Category: Custom Styles > * Font: Western text font: Font=DejaVu Sans Mono, Typeface=Book, Size=90%, Language=German (Austria) > * Background: Yellow 2 > > After saving the changes to this "Character Style" and studying the definition in the > "Organizer" tab of the "xyz" character style gives: Normal position + DejaVu Sans Mono + 90% + > RGB(255,255,153),Not Transparent + RGB(255,255,153),Not Transparent > > Assigning this "Character Style" to text in a "Paragraph Style: Default", works as expected; the > Default's Font size of 12pt, causes the "xyz" character styled text to be set to a font size of 10,8 > (correct: 12*0.9 -> 10.8). > > However if assigning the "xyz" character style to text in a "Paragraph Style: Footnote" also yields > a size of 10.8pt as above: > > the Footnote paragraph style defines the font size to be 10pt, hence expecting the character > styled text to be of size 9pt. However the "xyz" font-size is 10.8pt, making the "xyz" character > styled text larger, not smaller than the surrounding text! > > Is this an expected behaviour? > > If so, is it possible to define character styles somehow to cause its text to be always 90% of the > font size of the current paragraph style? How? > The defined 90% in your Character Style "xyz" is relative to the font size of the parent Character Style of "xyz". You found the parent Character Style in the format dialog on pane "Organizer", field "Linked with". Change the font size of this Character Style and you will see the effect on text which has "xyz" applied. Currently, I have no simple solution at hand. But, you can go to http://http://user.services.openoffice.org/. Here you find a forum, may be in your native language. May be somebody there has a solution. Best regards, Oliver.