Git Product home page Git Product logo

Comments (18)

russellallen avatar russellallen commented on July 27, 2024

It has no effect, its just for documentation. You can see it in the UI - specific public methods are bold for example. It isn't used consistently at the moment. It is one of the annotations you can make on objects or slots.

from self.

dram avatar dram commented on July 27, 2024

Do you mean Visibility: public? I did not see any bold method names in Linux X11, is that macOS specific?

from self.

dram avatar dram commented on July 27, 2024

If I define font alias for verdana, verdanaBold and verdanaItalic in X11Globals fontFamily, bold fonts can be displayed correctly.

I'd like to file those new slots out, I already set they to scalableFont module, but that module can not be found in All Modules list, then how can I file it out?

from self.

dram avatar dram commented on July 27, 2024

Found it in "Changed Modules", and here's PR #73.

from self.

russellallen avatar russellallen commented on July 27, 2024

What Linux are you on?

from self.

doublec avatar doublec commented on July 27, 2024

I'm on Ubuntu 15.04 and don't see a difference in font between public and private slots. The patch in PR #73 has no visible effect either but it does stop the warning in the console about verdana not existing.

from self.

dram avatar dram commented on July 27, 2024

I'm on Debian 8.

I double checked PR #73 and confirm that bold font can be shown in slot names. e.g. in shell object, help slot is shown in bold font.

from self.

doublec avatar doublec commented on July 27, 2024

Odd, maybe I don't have the required fonts. Here's a screenshot:

selffonts

from self.

russellallen avatar russellallen commented on July 27, 2024

Linux fonts have been a pain point for a while. We're using the oldest font handling part of X11 and the available fonts are not just limited but vary from distro to distro.

from self.

doublec avatar doublec commented on July 27, 2024

Yes, a solution might be to continue on https://bluishcoder.co.nz/2015/01/08/improving-linux-font-support-in-self.html

from self.

dram avatar dram commented on July 27, 2024

self shell

Here is my screenshot, pay attention to help slot and buttons on top right.

from self.

dram avatar dram commented on July 27, 2024

Hi @doublec, when looking more closely to your screenshot, I found that all texts seem to be displayed with fixed font.

Could you install xfonts-75dpi and xfonts-100dpi and try again? Those two package contains helvetica font.

from self.

Bystroushaak avatar Bystroushaak commented on July 27, 2024

Could you install xfonts-75dpi and xfonts-100dpi and try again? Those two package contains helvetica font.

I've installed the packages, but I don't see the help in bold. But all other fonts are now super weird.

Before:

snimek obrazovky-nepojmenovane okno

After:

screenshot at 2016-10-14 04 31 00

from self.

dram avatar dram commented on July 27, 2024

I would say displaying all UI texts in monospace font is also a bit unusual.

helvetica will look better if in larger size. Following screenshot is run with following configuration:

selfCatOrObjModel moduleSummaryFontSpec size: 16.
selfGeneralSlotModel undeclaredTitleFontSpec size: 14.
selfGeneralSlotModel privateTitleFontSpec size: 14.
selfGeneralSlotModel publicTitleFontSpec size: 14.
generalCategoryModel objectTitleFontSpec size: 16.
generalCategoryModel objectTitleFontSpec style: 'bold'.
generalCategoryModel subcategoryTitleFontSpec size: 14.
ui2_textField fontSpec: globals fontSpec copyName: '9x15bold' Size: 15.
ui2Menu defaultFontSpec: ui2Menu defaultFontSpec copySize: 16.

snapshot2

from self.

dram avatar dram commented on July 27, 2024

BTW, @Bystroushaak, did you apply changes in PR #73? It is needed to show bold font slot names.

from self.

Bystroushaak avatar Bystroushaak commented on July 27, 2024

I would say displaying all UI texts in monospace font is also a bit unusual.

That is the default configuration, I didn't change anything on my system.

BTW, @Bystroushaak, did you apply changes in PR #73? It is needed to show bold font slot names.

Ah, now I get it. I will try that later.

from self.

dram avatar dram commented on July 27, 2024

@Bystroushaak, read screenshots in handbook more closely, you will find that monospace font was not used so heavily there.

http://handbook.selflanguage.org/4.5/howtoprg.html

from self.

dram avatar dram commented on July 27, 2024

With further investigation, I found that changes in #73 is not needed. To show bold slot names, run following code (make sure that you have fonts times installed):

selfGeneralSlotModel publicTitleFontSpec name: 'helvetica'.

from self.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.