Problem with interrupting Arabic letters

Mohammed Qasim 2 years ago

Greetings to all
Is there a solution to the problem of broken Arabic letters? Note that I made a lot of modifications, especially in the pbf font file
If there is a solution please help me
Link for photo

Anton Tananaev 2 years ago

Do you want to share details on what modification you made so far?

Mohammed Qasim 2 years ago

Details related to programming modifications in JavaScript?

Anton Tananaev 2 years ago

Note that I made a lot of modifications, especially in the pbf font file

I'm talking about this.

Mohammed Qasim 2 years ago

I downloaded a lot of files, for example:
Link name & by "fontnik" in ubuntu ! but I don't have enough experience .

Anton Tananaev 2 years ago

If you just want someone to write you a step by step, it probably won't happen. If you want some help to maybe point you in the right direction, you should share all the details. You downloaded a lot of files and what? What did you modify? What worked / didn't work?

Mohammed Qasim 2 years ago

the first

    r = n.find((i) => i.includes("Regular"));
    if (r) return [r];
    const a = n.find(Boolean);
    return a ? [a] : ["arial-unicode-ms-regular"];
  };

the second

            "text-direction": {
              type: "right-to-left",
              default: "",
              tokens: !0,
              expression: { interpolated: !1, parameters: ["zoom", "feature"] },
              "property-type": "constant",
            },

the third

"text-direction": new Yo(Be.layout_line["text-direction"]),

the fourth

"text-direction": "rtl",

I also did an experiment

      paint: { "text-direction": "rtl" ,"text-halo-color": "white", "text-halo-width": 1 },

Everything didn't work

Mohammed Qasim 2 years ago

?

Mohammed Qasim 2 years ago

I created a lot of font PBF files && I tried to search using ((webgl2 && 2d)) && more . I'm not telling you to explain to me step by step, but just tell me where I work.
You all the appreciation and respect .

Mohammed Qasim 2 years ago
 layout_symbol: {
                    "text-direction": {
                        type: "enum",
                        values: {
                            rtl: "rtl",
                            ltr: "ltr",
                        },
                        requires: ["text-font"],
                    },}

Does this work?

Mohammed Qasim 2 years ago

in console.log(" The name appears correctly in both Arabic and English ")

Mohammed Qasim 2 years ago

how to install setRTLTextPlugin ?

Mohammed Qasim 2 years ago
              const Fc = "deferred",
                  sd = "loading",
                  lc = "loaded";
              let sl = null,
                  fi = "unavailable",
                  Qi = null;
              const cd = function (l) {
                  l && typeof l == "string" && l.indexOf("NetworkError") > -1 && (fi = "error"), sl && sl(l)
              };

???????

Mohammed Qasim 2 years ago

Thank you, the problem with the name appearing in Arabic has been solved
Solve the problem of the name RTL appearing: https://drive.google.com/file/d/1kDp-MBXhmkECKN1czH8Vh5lnv2bRgcTh/view?pli=1

Anton Tananaev 2 years ago

Please share the solution.