[Thread Prev][Thread Next][Index]
Re: [ferret_users] different fonts through SET TEXT
- To: ferret_users@xxxxxxxx
- Subject: Re: [ferret_users] different fonts through SET TEXT
- From: "Ansley C. Manke" <ansley.b.manke@xxxxxxxx>
- Date: Tue, 2 Apr 2019 09:54:35 -0700
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=Mg1PjN0L; spf=pass (google.com: domain of ansley.b.manke@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=ansley.b.manke@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=Mg1PjN0L; spf=pass (google.com: domain of ansley.b.manke@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=ansley.b.manke@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=oJe+2kaDt+nuXWhaT37ly7YniYe0UjddzMgEfLMa8bk=; b=nKqy72Di0ySB05ImDwAALXGEIRYaUTLMmMUgLxNq2AnRkBgNQKFPCR0X8KM7fzv/ap YPE5e5Rv/dbhgSmIy7O8YDhYHxhh5+FiX0hl0BE8KMElgY2UdVaemLqYs7F7H4jp6nhb vO6ykfjSuLjfpVAV4TyfOj3wELvNEfYAEHY/X3mcUZyxqRPTWvWvE7BZFhtmWVisqAJ5 OXx8HitImFWDu6LejVMtnNZcv7UTGyli1MaQQWSHS+1C5WJstrEjbMub8zfOeH0qIdC4 IVJYtfHTSu2pSWRI2zbfMz+7971WcBsN34ON7Ej8YxjoXRHtvY4rMS7gmDc5HZciZerF 6kfw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=oJe+2kaDt+nuXWhaT37ly7YniYe0UjddzMgEfLMa8bk=; b=Hgvu7Akj3YgrX30ISmP3zhlpkf3Fq3l97rLFbOQG/bHhJzOjZZOD9w9Whf0oeAL491 o9pGNcvoXh5bOKONSEJz/nYC3+G4xWvnu+zoycXJ7G6LoMQNw2sa0zWksH6n72oyVK3I qCvt6nKmi/3TCKbAoCPTpmiNWbpvcw21Yg78+0aHWEVHlkrRkY1zWJzC8y8qIuJZ6sK9 TAvknCtNvh5vKco61E1P3FSzYUsK/bp0aHYNhgtAgbjoMAd1BLJD/N7A9az4AJKlYUsH ELOh6r2bVqi7iw4+htQHSrsxYjoKmpNvuqYztsyTB9tfGUJrfW8l53A7nHOVDoSIfnXf raUQ==
- Arc-seal: i=2; a=rsa-sha256; t=1554224079; cv=pass; d=google.com; s=arc-20160816; b=pdo6BUAi6Q8ZK6ldZLVMfjyV9Ppk23pZhxqO5HglP1yOEH734bBiMcTB6e0jdOvZw/ S1Flzmc6BzbjfN6QbvtnrPEuIVVTHH/2eI8rJx5kw74FxBkfrki1GzFe097TZYLzKDSr UvG3GC6/9V3J+Cin9wimAdPsb51bk2fr//Mm2G/L/b7dj8fdAqWH/3aMoFtKw2tbKZtH pTa13ZfxD1GdS2HK54hFZE9q97LbA9OwFQvgurKVmux1zffZBDs6v19kVJfc1kQruqfC rEtC5EdcIudBxXWrATIJZvI+Nfk4ZNdKgU1WhVQyo9dU/KLjidiiKceTIskOWVGEKqBM rM/w==
- Arc-seal: i=1; a=rsa-sha256; t=1554224078; cv=none; d=google.com; s=arc-20160816; b=0luP9mh9Y8XyHVrV/q3Dk+ALZ8lCggsIegAIM+yJe15xhxAcQ2bGumJgA+X4lMt5Al DdvcjT+P2ErYWzhdEkoEj56SRnYlN5UR13sdXLLJCYAgmqTfkZ0QvB85wjNhNcjeqylg 7oYHp1esYfAeTPlnhV8pWTWXmcRoEO7h/xXborOMPVBWm0U5EyOMXzjbRyM1eUdti1Y5 lB2vqFsAYSGsfWzm10nl3XUokk+NVK2rQjPkPNxn3Q2iGk2K9qkr5Vig3yz5/Jy+oZkh V8bl1JPJosd8MFnMT6S6Cum8DBS2DrD6AWlVbnGwB2GY+WGimqs/Yhynh71ksE1oUkuD tgsQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive; bh=oJe+2kaDt+nuXWhaT37ly7YniYe0UjddzMgEfLMa8bk=; b=l3gmnf+YraVG/F42ALilFT27X2W+2D1tlKwgeqDRMgGJojiG/4w9BPSGk+WLymSAni XPBl3ivobzaZMK9AnfQF/7xIQ4aPgaSXqcyxL+Hn+fzhu3MtqEdavtSyEKnAyTdJKgmz PuDS5yykIuokWk93XY73SIdIufm/0FeMNiMnLdFc8s6J744NstzfuicWoDJp+GGXkUR6 Co5foj/L5frMcd9J2wSBY4cLTofw7nv5MjDwEc+FCIciLL5q/7HM5w1mbnSKhZ3Q4gHx YB8fYpWHkj75IHgbDGzl4lY+CUZnJyYHKSfLgME9yoSfXwWtGx4ijALBDN0cltxbG93E D1FQ==
- In-reply-to: <20190402114912.35ced2f4@gfi063209.klientdrift.uib.no>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <20190402114912.35ced2f4@gfi063209.klientdrift.uib.no>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1
Hi Marco,
Well, the choice at any particular moment is either Hershey or a
PyFerret system font, not a mix of those, so the setting is either "SET
TEXT/FONT=" for system fonts or "CANCEL TEXT" for Hershey. You can turn
the PyFerret fonts on and off as your script draws the plot,, see below.
I'm afraid that much as we'd like to have everything in classic-Ferret
scripts work without changes when taking advantage of the expanded
capabilities of PyFerret, there are a few instances like this that will
need some script re-writing. You could change your labels to use the
subscript and superscript methods for PyFerret fonts,
https://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/SET#pyferret_subscript.
Or I suppose if it makes sense, do a CANCEL TEXT before drawing the
moveable labels, and SET TEXT/FONT= afterwards.
yes? set text/font=serif
yes? set text/font=arial/bold/color=blue vtics
yes? go ptest
! Description: create a simple test line plot
! spirograph picture ...
PLOT/VS/LINE/I=1:314 i*cos(i/20),i*sin(i/20)
yes? ! add a label with a ferret-style superscript, using Hershey font
yes? cancel text
yes? annotate/norm/xpos=0.5/ypos=0.6/halign=0 "super^2"
On 4/2/2019 2:49 AM, Marco van Hulten wrote:
Hi Ferretters—
The command
SET TEXT/FONT=arial VTICS
does not work as expected, using PyFerret v7.44. I am following
https://ferret.pmel.noaa.gov/Ferret/documentation/pyferret/pyferret-quick-start-notes
where it is stated that any SET TEXT may be applied to specific text
groups (like VTICS). Are there groups that don't work like that?
Is this intended?
The rationale for wanting different fonts in the same plot? I'd like to
stick with the classical Ferret HERSHEY font for my MOVEABLE labels as
they translate _ and ^ to sub- and superscripts. But the HERSHEY
font's size cannot be changed through SET TEXT/ISIZ=.
Are these suppositions and observations correct?
—Marco
Attachment:
example.png
Description: PNG image
[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce /
NOAA /
OAR /
PMEL /
Ferret
Privacy Policy | Disclaimer | Accessibility Statement